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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetChannelId()The id for the channel where the commerce event took placejava.lang.StringgetChannelName()The name for the channel where the commerce event took placejava.lang.StringgetDisplayName()The display name for the user making the purchasejava.lang.StringgetItemDescription()Description for the purchased itemjava.lang.StringgetItemImageUrl()HTTP(S) URL for the image associated with the purchased itemCommerceMessagegetPurchaseMessage()The message accompanying this purchasejava.lang.BooleangetSupportsChannel()Whether this purchase supports the channeljava.lang.StringgetTime()RFC 3339 timestamp of when the commerce event occurredjava.lang.StringgetUserId()The id for the user making the purchasejava.lang.StringgetUserName()The login name for the user making the purchaseinthashCode()voidsetChannelId(java.lang.String channelId)The id for the channel where the commerce event took placevoidsetChannelName(java.lang.String channelName)The name for the channel where the commerce event took placevoidsetDisplayName(java.lang.String displayName)The display name for the user making the purchasevoidsetItemDescription(java.lang.String itemDescription)Description for the purchased itemvoidsetItemImageUrl(java.lang.String itemImageUrl)HTTP(S) URL for the image associated with the purchased itemvoidsetPurchaseMessage(CommerceMessage purchaseMessage)The message accompanying this purchasevoidsetSupportsChannel(java.lang.Boolean supportsChannel)Whether this purchase supports the channelvoidsetTime(java.lang.String time)RFC 3339 timestamp of when the commerce event occurredvoidsetUserId(java.lang.String userId)The id for the user making the purchasevoidsetUserName(java.lang.String userName)The login name for the user making the purchasejava.lang.StringtoString()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
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
The message accompanying this purchase -
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
-