Class ActivitySecrets

java.lang.Object
de.jcm.discordgamesdk.activity.ActivitySecrets

public class ActivitySecrets extends Object
A structure containing secrets used to handle and display join and spectate options.
See Also:
  • Constructor Details

    • ActivitySecrets

      public ActivitySecrets()
  • Method Details

    • setMatchSecret

      public void setMatchSecret(String secret)
      Sets the unique secret for the match context (whatever that is).
      Parameters:
      secret - A unique secret,
    • getMatchSecret

      public String getMatchSecret()
      Gets the unique secret for the match context (whatever that is).
      Returns:
      The unique secret or an empty string if it is not set
    • setJoinSecret

      public void setJoinSecret(String secret)
      Sets a unique secret for join request and invites.
      Parameters:
      secret - A unique secret
    • getJoinSecret

      public String getJoinSecret()
      Gets the unique join secret.
      Returns:
      The unique secret or an empty string if it is not set
    • setSpectateSecret

      public void setSpectateSecret(String secret)
      Sets a unique secret for spectate option and invites.
      Parameters:
      secret - A unique secret
    • getSpectateSecret

      public String getSpectateSecret()
      Gets the unique spectate secret.
      Returns:
      The unique secret or an empty string if it is not set