java.lang.Object
dev.vernite.vernite.integration.git.github.model.Installation

@Entity(name="github_installation") public class Installation extends Object
Entity for representing GitHub installation.
  • Constructor Details

    • Installation

      public Installation()
  • Method Details

    • update

      public void update(GitHubInstallation installation)
      Updates installation with new data.
      Parameters:
      installation - response from GitHub api
    • refreshToken

      public void refreshToken(AppToken appToken)
      Refreshes token with response from GitHub.
      Parameters:
      appToken - response from GitHub
    • shouldRefreshToken

      public boolean shouldRefreshToken()
      Returns:
      true if token should be refreshed