Class ChannelBitsData
java.lang.Object
com.github.twitch4j.pubsub.domain.ChannelBitsData
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If 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 String
The id for the user that cheered@Nullable String
The login name for the user that cheeredint
hashCode()
Whether or not the event was anonymousisAnonymous
(Boolean isAnonymous) Whether or not the event was anonymousvoid
setBadgeEntitlement
(ChannelBitsData.BadgeEntitlement badgeEntitlement) If a non-anonymous user reached a new badge level with this cheer, this object will contain more information regarding the new levelvoid
setBitsUsed
(Integer bitsUsed) The number of bits usedvoid
setChannelId
(String channelId) The id for the channel where the bits were usedvoid
setChannelName
(String channelName) The login name of the channel where the bits were usedvoid
setChatMessage
(String chatMessage) The message sent with the cheervoid
setContext
(String context) The event type for this bits usage (e.g.void
RFC 3339 timestamp of when the bits were usedvoid
setTotalBitsUsed
(Integer totalBitsUsed) A cumulative total of all bits this user has cheered in this channelvoid
The id for the user that cheeredvoid
setUserName
(@Nullable String userName) The login name for the user that cheeredtoString()
-
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 -
setUserId
The id for the user that cheered -
setUserName
The login name for the user that cheered -
setChannelId
The id for the channel where the bits were used -
setChannelName
The login name of the channel where the bits were used -
setTime
RFC 3339 timestamp of when the bits were used -
setChatMessage
The message sent with the cheer -
setBitsUsed
The number of bits used -
setTotalBitsUsed
A cumulative total of all bits this user has cheered in this channel -
setContext
The event type for this bits usage (e.g. "cheer") -
setBadgeEntitlement
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- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-