Class LoginData
java.lang.Object
live.crowdcontrol.cc4j.websocket.data.LoginData
Defines an attempt to subscribe to channels of information on the WebSocket.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetAppID()Gets the ID of the application.@NotNull StringgetCode()Gets the code to log in with, typically conforming toCODE_PATTERN.
-
Field Details
-
CODE_PATTERN
- See Also:
-
-
Constructor Details
-
LoginData
public LoginData(@NotNull @NotNull String appID, @Pattern("^[BCDFGHJKLMNPQRTW6789]{6}$") @NotNull @NotNull String code) Creates a login body.- Parameters:
appID- the ID of the applicationcode- the code to log in with, typically conforming toCODE_PATTERN
-
-
Method Details
-
getAppID
Gets the ID of the application.- Returns:
- application ID
-
getCode
Gets the code to log in with, typically conforming toCODE_PATTERN.- Returns:
- login code
-