Package com.ultikits.ultitools.websocket
Class CloudPlayerLinks.LinkCompletion
java.lang.Object
com.ultikits.ultitools.websocket.CloudPlayerLinks.LinkCompletion
- Enclosing class:
CloudPlayerLinks
One completed link: how the web user proved the game identity, and what to provision.
- Since:
- 6.3.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinkCompletion(String completionId, String linkId, CloudPlayerLinks.LinkProof proof, UUID playerUuid, String playerName, boolean provisionGameAccount, String webUsername) Creates a completion; a module test may build one directly. -
Method Summary
-
Field Details
-
completionId
-
linkId
-
proof
-
playerUuid
-
playerName
-
provisionGameAccount
private final boolean provisionGameAccount -
webUsername
-
-
Constructor Details
-
LinkCompletion
public LinkCompletion(String completionId, String linkId, CloudPlayerLinks.LinkProof proof, UUID playerUuid, String playerName, boolean provisionGameAccount, String webUsername) Creates a completion; a module test may build one directly.- Parameters:
completionId- the completion message's envelope idlinkId- the id of the link that completedproof- the proof the web user usedplayerUuid- the player's UUIDplayerName- the player's nameprovisionGameAccount- whether the module must create a game accountwebUsername- the UltiKits web username forCloudPlayerLinks.LinkProof.WEB_REGISTRATION, else null
-
-
Method Details
-
completionId
- Returns:
- the completion message's envelope id, used for the persisted receipt
-
linkId
- Returns:
- the id of the link that completed
-
proof
- Returns:
- the proof the web user used
-
playerUuid
- Returns:
- the player's UUID
-
playerName
- Returns:
- the player's name
-
provisionGameAccount
public boolean provisionGameAccount()- Returns:
- whether the module must create a game account for this player
-
webUsername
- Returns:
- the UltiKits web username for
CloudPlayerLinks.LinkProof.WEB_REGISTRATION, otherwise null
-
toString
-