Class ChannelBitsData
java.lang.Object
com.github.twitch4j.pubsub.domain.ChannelBitsData
public class ChannelBitsData
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannelBitsData.BadgeEntitlement -
Constructor Summary
Constructors Constructor Description ChannelBitsData() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)ChannelBitsData.BadgeEntitlementgetBadgeEntitlement()If a non-anonymous user reached a new badge level with this cheer, this object will contain more information regarding the new leveljava.lang.IntegergetBitsUsed()The number of bits usedjava.lang.StringgetChannelId()The id for the channel where the bits were usedjava.lang.StringgetChannelName()The login name of the channel where the bits were usedjava.lang.StringgetChatMessage()The message sent with the cheerjava.lang.StringgetContext()The event type for this bits usage (e.g.java.lang.StringgetTime()RFC 3339 timestamp of when the bits were usedjava.lang.IntegergetTotalBitsUsed()A cumulative total of all bits this user has cheered in this channeljava.lang.StringgetUserId()The id for the user that cheeredjava.lang.StringgetUserName()The login name for the user that cheeredinthashCode()voidsetBadgeEntitlement(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 levelvoidsetBitsUsed(java.lang.Integer bitsUsed)The number of bits usedvoidsetChannelId(java.lang.String channelId)The id for the channel where the bits were usedvoidsetChannelName(java.lang.String channelName)The login name of the channel where the bits were usedvoidsetChatMessage(java.lang.String chatMessage)The message sent with the cheervoidsetContext(java.lang.String context)The event type for this bits usage (e.g.voidsetTime(java.lang.String time)RFC 3339 timestamp of when the bits were usedvoidsetTotalBitsUsed(java.lang.Integer totalBitsUsed)A cumulative total of all bits this user has cheered in this channelvoidsetUserId(java.lang.String userId)The id for the user that cheeredvoidsetUserName(java.lang.String userName)The login name for the user that cheeredjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelBitsData
public ChannelBitsData()
-
-
Method Details
-
getUserId
public java.lang.String getUserId()The id for the user that cheered -
getUserName
public java.lang.String getUserName()The login name for the user that cheered -
getChannelId
public java.lang.String getChannelId()The id for the channel where the bits were used -
getChannelName
public java.lang.String getChannelName()The login name of the channel where the bits were used -
getTime
public java.lang.String getTime()RFC 3339 timestamp of when the bits were used -
getChatMessage
public java.lang.String getChatMessage()The message sent with the cheer -
getBitsUsed
public java.lang.Integer getBitsUsed()The number of bits used -
getTotalBitsUsed
public java.lang.Integer getTotalBitsUsed()A cumulative total of all bits this user has cheered in this channel -
getContext
public java.lang.String 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 -
setUserId
public void setUserId(java.lang.String userId)The id for the user that cheered -
setUserName
public void setUserName(java.lang.String userName)The login name for the user that cheered -
setChannelId
public void setChannelId(java.lang.String channelId)The id for the channel where the bits were used -
setChannelName
public void setChannelName(java.lang.String channelName)The login name of the channel where the bits were used -
setTime
public void setTime(java.lang.String time)RFC 3339 timestamp of when the bits were used -
setChatMessage
public void setChatMessage(java.lang.String chatMessage)The message sent with the cheer -
setBitsUsed
public void setBitsUsed(java.lang.Integer bitsUsed)The number of bits used -
setTotalBitsUsed
public void setTotalBitsUsed(java.lang.Integer totalBitsUsed)A cumulative total of all bits this user has cheered in this channel -
setContext
public void setContext(java.lang.String context)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 -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-