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) Deprecated.void
setBadgeEntitlement
(ChannelBitsData.BadgeEntitlement badgeEntitlement) Deprecated.void
setBitsUsed
(Integer bitsUsed) Deprecated.void
setChannelId
(String channelId) Deprecated.void
setChannelName
(String channelName) Deprecated.void
setChatMessage
(String chatMessage) Deprecated.void
setContext
(String context) Deprecated.void
Deprecated.void
setTotalBitsUsed
(Integer totalBitsUsed) Deprecated.void
Deprecated.void
setUserName
(@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
.
-