Class CustomOAuth2Util

java.lang.Object
de.presti.ree6.utils.data.CustomOAuth2Util

public class CustomOAuth2Util extends Object
Class used to convert a OAuth2Credential to a CustomOAuth2Credential.
  • Constructor Details

    • CustomOAuth2Util

      public CustomOAuth2Util()
  • Method Details

    • convert

      public static CustomOAuth2Credential convert(CustomOAuth2Credential customOAuth2Credential)
      A bridge method to convert a CustomOAuth2Credential to an enriched CustomOAuth2Credential.
      Parameters:
      customOAuth2Credential - The CustomOAuth2Credential to convert.
      Returns:
      The converted CustomOAuth2Credential.
    • convert

      public static CustomOAuth2Credential convert(long discordId, com.github.philippheuer.credentialmanager.domain.OAuth2Credential oAuth2Credential)
      Converts a OAuth2Credential to a CustomOAuth2Credential.
      Parameters:
      discordId - The Discord ID of the owner.
      oAuth2Credential - The OAuth2Credential to convert.
      Returns:
      The converted CustomOAuth2Credential.
    • convert

      public static CustomOAuth2Credential convert(de.presti.ree6.sql.entities.TwitchIntegration twitchIntegration)
      Converts a TwitchIntegration to a CustomOAuth2Credential.
      Parameters:
      twitchIntegration - The TwitchIntegration to convert.
      Returns:
      The converted CustomOAuth2Credential.