Package de.jcm.discordgamesdk.activity
Class ActivitySecrets
java.lang.Object
de.jcm.discordgamesdk.activity.ActivitySecrets
A structure containing secrets used to handle and display join and spectate options.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the unique join secret.Gets the unique secret for the match context (whatever that is).Gets the unique spectate secret.void
setJoinSecret
(String secret) Sets a unique secret for join request and invites.void
setMatchSecret
(String secret) Sets the unique secret for the match context (whatever that is).void
setSpectateSecret
(String secret) Sets a unique secret for spectate option and invites.
-
Constructor Details
-
ActivitySecrets
public ActivitySecrets()
-
-
Method Details
-
setMatchSecret
Sets the unique secret for the match context (whatever that is).- Parameters:
secret
- A unique secret,
-
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
Sets a unique secret for join request and invites.- Parameters:
secret
- A unique secret
-
getJoinSecret
Gets the unique join secret.- Returns:
- The unique secret or an empty string if it is not set
-
setSpectateSecret
Sets a unique secret for spectate option and invites.- Parameters:
secret
- A unique secret
-
getSpectateSecret
Gets the unique spectate secret.- Returns:
- The unique secret or an empty string if it is not set
-