Class ChannelBitsData
java.lang.Object
com.github.twitch4j.pubsub.domain.ChannelBitsData
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIf a non-anonymous user reached a new badge level with this cheer, this object will contain more information regarding the new levelThe number of bits usedThe id for the channel where the bits were usedThe login name of the channel where the bits were usedThe message sent with the cheerThe event type for this bits usage (e.g.getTime()RFC 3339 timestamp of when the bits were usedA cumulative total of all bits this user has cheered in this channel@Nullable StringThe id for the user that cheered@Nullable StringThe login name for the user that cheeredinthashCode()Whether or not the event was anonymousisAnonymous(Boolean isAnonymous) Deprecated.voidsetBadgeEntitlement(ChannelBitsData.BadgeEntitlement badgeEntitlement) Deprecated.voidsetBitsUsed(Integer bitsUsed) Deprecated.voidsetChannelId(String channelId) Deprecated.voidsetChannelName(String channelName) Deprecated.voidsetChatMessage(String chatMessage) Deprecated.voidsetContext(String context) Deprecated.voidDeprecated.voidsetTotalBitsUsed(Integer totalBitsUsed) Deprecated.voidDeprecated.voidsetUserName(@Nullable String userName) Deprecated.toString()
-
Constructor Details
-
ChannelBitsData
public ChannelBitsData()
-
-
Method Details
-
getTimeAsInstant
- Returns:
- the parsed time in an Instant wrapper
-
getUserId
The id for the user that cheered -
getUserName
The login name for the user that cheered -
getChannelId
The id for the channel where the bits were used -
getChannelName
The login name of the channel where the bits were used -
getTime
RFC 3339 timestamp of when the bits were used -
getChatMessage
The message sent with the cheer -
getBitsUsed
The number of bits used -
getTotalBitsUsed
A cumulative total of all bits this user has cheered in this channel -
getContext
The event type for this bits usage (e.g. "cheer") -
getBadgeEntitlement
If a non-anonymous user reached a new badge level with this cheer, this object will contain more information regarding the new level -
isAnonymous
Whether or not the event was anonymous -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setUserId
Deprecated.The id for the user that cheered -
setUserName
Deprecated.The login name for the user that cheered -
setChannelId
Deprecated.The id for the channel where the bits were used -
setChannelName
Deprecated.The login name of the channel where the bits were used -
setTime
Deprecated.RFC 3339 timestamp of when the bits were used -
setChatMessage
Deprecated.The message sent with the cheer -
setBitsUsed
Deprecated.The number of bits used -
setTotalBitsUsed
Deprecated.A cumulative total of all bits this user has cheered in this channel -
setContext
Deprecated.The event type for this bits usage (e.g. "cheer") -
setBadgeEntitlement
Deprecated.If a non-anonymous user reached a new badge level with this cheer, this object will contain more information regarding the new level -
isAnonymous
Deprecated.Whether or not the event was anonymous- Returns:
this.
-