public final class SuperChatEventSnippet
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the YouTube Data API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
SuperChatEventSnippet() |
Modifier and Type | Method and Description |
---|---|
SuperChatEventSnippet |
clone() |
java.math.BigInteger |
getAmountMicros()
The purchase amount, in micros of the purchase currency.
|
java.lang.String |
getChannelId()
Channel id where the event occurred.
|
java.lang.String |
getCommentText()
The text contents of the comment left by the user.
|
com.google.api.client.util.DateTime |
getCreatedAt()
The date and time when the event occurred.
|
java.lang.String |
getCurrency()
The currency in which the purchase was made.
|
java.lang.String |
getDisplayString()
A rendered string that displays the purchase amount and currency (e.g., "$1.00").
|
java.lang.Boolean |
getIsSuperChatForGood()
True if this event is a Super Chat for Good purchase.
|
java.lang.Boolean |
getIsSuperStickerEvent()
True if this event is a Super Sticker event.
|
java.lang.Long |
getMessageType()
The tier for the paid message, which is based on the amount of money spent to purchase the
message.
|
Nonprofit |
getNonprofit()
If this event is a Super Chat for Good purchase, this field will contain information about the
charity the purchase is donated to.
|
SuperStickerMetadata |
getSuperStickerMetadata()
If this event is a Super Sticker event, this field will contain metadata about the Super
Sticker.
|
ChannelProfileDetails |
getSupporterDetails()
Details about the supporter.
|
SuperChatEventSnippet |
set(java.lang.String fieldName,
java.lang.Object value) |
SuperChatEventSnippet |
setAmountMicros(java.math.BigInteger amountMicros)
The purchase amount, in micros of the purchase currency.
|
SuperChatEventSnippet |
setChannelId(java.lang.String channelId)
Channel id where the event occurred.
|
SuperChatEventSnippet |
setCommentText(java.lang.String commentText)
The text contents of the comment left by the user.
|
SuperChatEventSnippet |
setCreatedAt(com.google.api.client.util.DateTime createdAt)
The date and time when the event occurred.
|
SuperChatEventSnippet |
setCurrency(java.lang.String currency)
The currency in which the purchase was made.
|
SuperChatEventSnippet |
setDisplayString(java.lang.String displayString)
A rendered string that displays the purchase amount and currency (e.g., "$1.00").
|
SuperChatEventSnippet |
setIsSuperChatForGood(java.lang.Boolean isSuperChatForGood)
True if this event is a Super Chat for Good purchase.
|
SuperChatEventSnippet |
setIsSuperStickerEvent(java.lang.Boolean isSuperStickerEvent)
True if this event is a Super Sticker event.
|
SuperChatEventSnippet |
setMessageType(java.lang.Long messageType)
The tier for the paid message, which is based on the amount of money spent to purchase the
message.
|
SuperChatEventSnippet |
setNonprofit(Nonprofit nonprofit)
If this event is a Super Chat for Good purchase, this field will contain information about the
charity the purchase is donated to.
|
SuperChatEventSnippet |
setSuperStickerMetadata(SuperStickerMetadata superStickerMetadata)
If this event is a Super Sticker event, this field will contain metadata about the Super
Sticker.
|
SuperChatEventSnippet |
setSupporterDetails(ChannelProfileDetails supporterDetails)
Details about the supporter.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.math.BigInteger getAmountMicros()
null
for nonepublic SuperChatEventSnippet setAmountMicros(java.math.BigInteger amountMicros)
amountMicros
- amountMicros or null
for nonepublic java.lang.String getChannelId()
null
for nonepublic SuperChatEventSnippet setChannelId(java.lang.String channelId)
channelId
- channelId or null
for nonepublic java.lang.String getCommentText()
null
for nonepublic SuperChatEventSnippet setCommentText(java.lang.String commentText)
commentText
- commentText or null
for nonepublic com.google.api.client.util.DateTime getCreatedAt()
null
for nonepublic SuperChatEventSnippet setCreatedAt(com.google.api.client.util.DateTime createdAt)
createdAt
- createdAt or null
for nonepublic java.lang.String getCurrency()
null
for nonepublic SuperChatEventSnippet setCurrency(java.lang.String currency)
currency
- currency or null
for nonepublic java.lang.String getDisplayString()
null
for nonepublic SuperChatEventSnippet setDisplayString(java.lang.String displayString)
displayString
- displayString or null
for nonepublic java.lang.Boolean getIsSuperChatForGood()
null
for nonepublic SuperChatEventSnippet setIsSuperChatForGood(java.lang.Boolean isSuperChatForGood)
isSuperChatForGood
- isSuperChatForGood or null
for nonepublic java.lang.Boolean getIsSuperStickerEvent()
null
for nonepublic SuperChatEventSnippet setIsSuperStickerEvent(java.lang.Boolean isSuperStickerEvent)
isSuperStickerEvent
- isSuperStickerEvent or null
for nonepublic java.lang.Long getMessageType()
null
for nonepublic SuperChatEventSnippet setMessageType(java.lang.Long messageType)
messageType
- messageType or null
for nonepublic Nonprofit getNonprofit()
null
for nonepublic SuperChatEventSnippet setNonprofit(Nonprofit nonprofit)
nonprofit
- nonprofit or null
for nonepublic SuperStickerMetadata getSuperStickerMetadata()
null
for nonepublic SuperChatEventSnippet setSuperStickerMetadata(SuperStickerMetadata superStickerMetadata)
superStickerMetadata
- superStickerMetadata or null
for nonepublic ChannelProfileDetails getSupporterDetails()
null
for nonepublic SuperChatEventSnippet setSupporterDetails(ChannelProfileDetails supporterDetails)
supporterDetails
- supporterDetails or null
for nonepublic SuperChatEventSnippet set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SuperChatEventSnippet clone()
clone
in class com.google.api.client.json.GenericJson