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 class  ChannelBitsData.BadgeEntitlement  
  • Constructor Summary

    Constructors
    Constructor Description
    ChannelBitsData()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    ChannelBitsData.BadgeEntitlement getBadgeEntitlement()
    If a non-anonymous user reached a new badge level with this cheer, this object will contain more information regarding the new level
    java.lang.Integer getBitsUsed()
    The number of bits used
    java.lang.String getChannelId()
    The id for the channel where the bits were used
    java.lang.String getChannelName()
    The login name of the channel where the bits were used
    java.lang.String getChatMessage()
    The message sent with the cheer
    java.lang.String getContext()
    The event type for this bits usage (e.g.
    java.lang.String getTime()
    RFC 3339 timestamp of when the bits were used
    java.lang.Integer getTotalBitsUsed()
    A cumulative total of all bits this user has cheered in this channel
    java.lang.String getUserId()
    The id for the user that cheered
    java.lang.String getUserName()
    The login name for the user that cheered
    int hashCode()  
    void 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 level
    void setBitsUsed​(java.lang.Integer bitsUsed)
    The number of bits used
    void setChannelId​(java.lang.String channelId)
    The id for the channel where the bits were used
    void setChannelName​(java.lang.String channelName)
    The login name of the channel where the bits were used
    void setChatMessage​(java.lang.String chatMessage)
    The message sent with the cheer
    void setContext​(java.lang.String context)
    The event type for this bits usage (e.g.
    void setTime​(java.lang.String time)
    RFC 3339 timestamp of when the bits were used
    void setTotalBitsUsed​(java.lang.Integer totalBitsUsed)
    A cumulative total of all bits this user has cheered in this channel
    void setUserId​(java.lang.String userId)
    The id for the user that cheered
    void setUserName​(java.lang.String userName)
    The login name for the user that cheered
    java.lang.String toString()  

    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

      public ChannelBitsData.BadgeEntitlement 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

      public void 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 level
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object