Package live.crowdcontrol.cc4j
Class CCEventType<T>
java.lang.Object
live.crowdcontrol.cc4j.CCEventType<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CCEventType<Void> Called when a player's authentication token expires.static final CCEventType<Void> Called when a player's WebSocket becomes authenticated.static final CCEventType<Void> Called when a player's WebSocket initially establishes its connection.static final CCEventType<CloseData> Called when a player's WebSocket is closed.static final CCEventType<PublicEffectPayload> static final CCEventType<PublicEffectPayload> Called when aneffect-requestcomes in from the player.static final CCEventType<CCEffectResponse> Called whenCCPlayer.sendResponse(CCEffectResponse)has been called.static final CCEventType<ApplicationAuthCodeErrorPayload> Called when an auth code has an error.static final CCEventType<ApplicationAuthCodePayload> Called when an auth code is generated.static final CCEventType<CCMessage> Called when a notification message may be displayed to the player.static final CCEventType<ApplicationAuthCodeRedeemedPayload> Called when an auth code is redeemed.static final CCEventType<GameSessionStartPayload> Called when a session has started.static final CCEventType<GameSessionStopPayload> Called when a session has stopped.static final CCEventType<SubscriptionResultPayload> Called when a connection has attempted to subscribe to some topics.static final CCEventType<Void> Called when a player's auth token is removed for any reason. -
Constructor Summary
ConstructorsConstructorDescriptionCCEventType(@NotNull String listenerId, @NotNull io.leangen.geantyref.TypeToken<T> typeToken) CCEventType(@NotNull String listenerId, @NotNull Class<T> clazz) -
Method Summary
-
Field Details
-
MESSAGE
Called when a notification message may be displayed to the player. -
CONNECTED
Called when a player's WebSocket initially establishes its connection. The connectionID will be unavailable at this point. -
DISCONNECTED
Called when a player's WebSocket is closed. -
GENERATED_AUTH_CODE
Called when an auth code is generated. -
REDEEMED_AUTH_CODE
Called when an auth code is redeemed. -
ERRORED_AUTH_CODE
Called when an auth code has an error. -
AUTHENTICATED
Called when a player's WebSocket becomes authenticated. The connectionID may be unavailable at this point. -
AUTH_EXPIRED
Called when a player's authentication token expires. This will happen 24 hours after creation. -
UNAUTHENTICATED
Called when a player's auth token is removed for any reason. Shares overlap withAUTH_EXPIRED. -
EFFECT_REQUEST
Called when aneffect-requestcomes in from the player. Note that the traditional way to receive this information is viaCCEffect.onTrigger(PublicEffectPayload, CCPlayer). -
EFFECT_FAILURE
-
SUBSCRIBED
Called when a connection has attempted to subscribe to some topics. -
EFFECT_RESPONSE
Called whenCCPlayer.sendResponse(CCEffectResponse)has been called. -
SESSION_STARTED
Called when a session has started. -
SESSION_STOPPED
Called when a session has stopped.
-
-
Constructor Details
-
CCEventType
-
CCEventType
-
-
Method Details