Class Installation
java.lang.Object
dev.vernite.vernite.integration.git.github.model.Installation
Entity for representing GitHub installation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
refreshToken
(AppToken appToken) Refreshes token with response from GitHub.boolean
void
update
(GitHubInstallation installation) Updates installation with new data.
-
Constructor Details
-
Installation
public Installation()
-
-
Method Details
-
update
Updates installation with new data.- Parameters:
installation
- response from GitHub api
-
refreshToken
Refreshes token with response from GitHub.- Parameters:
appToken
- response from GitHub
-
shouldRefreshToken
public boolean shouldRefreshToken()- Returns:
- true if token should be refreshed
-