Class CommerceData

java.lang.Object
com.github.twitch4j.pubsub.domain.CommerceData

public class CommerceData
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    CommerceData()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.String getChannelId()
    The id for the channel where the commerce event took place
    java.lang.String getChannelName()
    The name for the channel where the commerce event took place
    java.lang.String getDisplayName()
    The display name for the user making the purchase
    java.lang.String getItemDescription()
    Description for the purchased item
    java.lang.String getItemImageUrl()
    HTTP(S) URL for the image associated with the purchased item
    CommerceMessage getPurchaseMessage()
    The message accompanying this purchase
    java.lang.Boolean getSupportsChannel()
    Whether this purchase supports the channel
    java.lang.String getTime()
    RFC 3339 timestamp of when the commerce event occurred
    java.lang.String getUserId()
    The id for the user making the purchase
    java.lang.String getUserName()
    The login name for the user making the purchase
    int hashCode()  
    void setChannelId​(java.lang.String channelId)
    The id for the channel where the commerce event took place
    void setChannelName​(java.lang.String channelName)
    The name for the channel where the commerce event took place
    void setDisplayName​(java.lang.String displayName)
    The display name for the user making the purchase
    void setItemDescription​(java.lang.String itemDescription)
    Description for the purchased item
    void setItemImageUrl​(java.lang.String itemImageUrl)
    HTTP(S) URL for the image associated with the purchased item
    void setPurchaseMessage​(CommerceMessage purchaseMessage)
    The message accompanying this purchase
    void setSupportsChannel​(java.lang.Boolean supportsChannel)
    Whether this purchase supports the channel
    void setTime​(java.lang.String time)
    RFC 3339 timestamp of when the commerce event occurred
    void setUserId​(java.lang.String userId)
    The id for the user making the purchase
    void setUserName​(java.lang.String userName)
    The login name for the user making the purchase
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CommerceData

      public CommerceData()
  • Method Details

    • getUserName

      public java.lang.String getUserName()
      The login name for the user making the purchase
    • getDisplayName

      public java.lang.String getDisplayName()
      The display name for the user making the purchase
    • getChannelName

      public java.lang.String getChannelName()
      The name for the channel where the commerce event took place
    • getUserId

      public java.lang.String getUserId()
      The id for the user making the purchase
    • getChannelId

      public java.lang.String getChannelId()
      The id for the channel where the commerce event took place
    • getTime

      public java.lang.String getTime()
      RFC 3339 timestamp of when the commerce event occurred
    • getItemImageUrl

      public java.lang.String getItemImageUrl()
      HTTP(S) URL for the image associated with the purchased item
    • getItemDescription

      public java.lang.String getItemDescription()
      Description for the purchased item
    • getSupportsChannel

      public java.lang.Boolean getSupportsChannel()
      Whether this purchase supports the channel
    • getPurchaseMessage

      public CommerceMessage getPurchaseMessage()
      The message accompanying this purchase
    • setUserName

      public void setUserName​(java.lang.String userName)
      The login name for the user making the purchase
    • setDisplayName

      public void setDisplayName​(java.lang.String displayName)
      The display name for the user making the purchase
    • setChannelName

      public void setChannelName​(java.lang.String channelName)
      The name for the channel where the commerce event took place
    • setUserId

      public void setUserId​(java.lang.String userId)
      The id for the user making the purchase
    • setChannelId

      public void setChannelId​(java.lang.String channelId)
      The id for the channel where the commerce event took place
    • setTime

      public void setTime​(java.lang.String time)
      RFC 3339 timestamp of when the commerce event occurred
    • setItemImageUrl

      public void setItemImageUrl​(java.lang.String itemImageUrl)
      HTTP(S) URL for the image associated with the purchased item
    • setItemDescription

      public void setItemDescription​(java.lang.String itemDescription)
      Description for the purchased item
    • setSupportsChannel

      public void setSupportsChannel​(java.lang.Boolean supportsChannel)
      Whether this purchase supports the channel
    • setPurchaseMessage

      public void setPurchaseMessage​(CommerceMessage purchaseMessage)
      The message accompanying this purchase
    • 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