Class CCUserRecord
java.lang.Object
live.crowdcontrol.cc4j.websocket.payload.CCUserRecord
- All Implemented Interfaces:
IUserRecord
A record detailing information about a Crowd Control user.
-
Constructor Summary
ConstructorsConstructorDescriptionCCUserRecord(@NotNull String ccUID, @NotNull String name, @NotNull ProfileType profile, @NotNull String originID, @NotNull String image) Creates a user record. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetId()Gets the user's Crowd Control User ID.@NotNull StringgetImage()Gets the user's profile picture URL.@NotNull StringgetName()Gets the user's display name.@NotNull StringGets the ID of the user on theirhome platform.@NotNull ProfileTypeGets the type of profile the user logged in with.toString()
-
Constructor Details
-
CCUserRecord
public CCUserRecord(@Pattern("^ccuid-[0-7][0-9a-hjkmnp-tv-z]{25}$") @NotNull @NotNull String ccUID, @NotNull @NotNull String name, @NotNull @NotNull ProfileType profile, @NotNull @NotNull String originID, @NotNull @NotNull String image) Creates a user record.- Parameters:
ccUID- user IDname- display nameprofile- profile typeoriginID- profile IDimage- profile picture URL
-
-
Method Details
-
getId
Description copied from interface:IUserRecordGets the user's Crowd Control User ID.- Specified by:
getIdin interfaceIUserRecord- Returns:
- ccUID
-
getName
Description copied from interface:IUserRecordGets the user's display name.- Specified by:
getNamein interfaceIUserRecord- Returns:
- display name
-
getProfile
Description copied from interface:IUserRecordGets the type of profile the user logged in with.- Specified by:
getProfilein interfaceIUserRecord- Returns:
- profile type
-
getOriginId
Description copied from interface:IUserRecordGets the ID of the user on theirhome platform.- Specified by:
getOriginIdin interfaceIUserRecord- Returns:
- origin id
-
getImage
Gets the user's profile picture URL.- Returns:
- profile picture URL
-
toString
-