public final class SuperChatEventSnippet extends 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 v3. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SuperChatEventSnippet() |
| Modifier and Type | Method and Description |
|---|---|
SuperChatEventSnippet |
clone() |
BigInteger |
getAmountMicros()
The purchase amount, in micros of the purchase currency.
|
String |
getChannelId()
Channel id where the event occurred.
|
String |
getCommentText()
The text contents of the comment left by the user.
|
DateTime |
getCreatedAt()
The date and time when the event occurred.
|
String |
getCurrency()
The currency in which the purchase was made.
|
String |
getDisplayString()
A rendered string that displays the purchase amount and currency (e.g., "$1.00").
|
Boolean |
getIsSuperStickerEvent()
True if this event is a Super Sticker event.
|
Long |
getMessageType()
The tier for the paid message, which is based on the amount of money spent to purchase the
message.
|
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(String fieldName,
Object value) |
SuperChatEventSnippet |
setAmountMicros(BigInteger amountMicros)
The purchase amount, in micros of the purchase currency.
|
SuperChatEventSnippet |
setChannelId(String channelId)
Channel id where the event occurred.
|
SuperChatEventSnippet |
setCommentText(String commentText)
The text contents of the comment left by the user.
|
SuperChatEventSnippet |
setCreatedAt(DateTime createdAt)
The date and time when the event occurred.
|
SuperChatEventSnippet |
setCurrency(String currency)
The currency in which the purchase was made.
|
SuperChatEventSnippet |
setDisplayString(String displayString)
A rendered string that displays the purchase amount and currency (e.g., "$1.00").
|
SuperChatEventSnippet |
setIsSuperStickerEvent(Boolean isSuperStickerEvent)
True if this event is a Super Sticker event.
|
SuperChatEventSnippet |
setMessageType(Long messageType)
The tier for the paid message, which is based on the amount of money spent to purchase the
message.
|
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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic BigInteger getAmountMicros()
null for nonepublic SuperChatEventSnippet setAmountMicros(BigInteger amountMicros)
amountMicros - amountMicros or null for nonepublic String getChannelId()
null for nonepublic SuperChatEventSnippet setChannelId(String channelId)
channelId - channelId or null for nonepublic String getCommentText()
null for nonepublic SuperChatEventSnippet setCommentText(String commentText)
commentText - commentText or null for nonepublic DateTime getCreatedAt()
null for nonepublic SuperChatEventSnippet setCreatedAt(DateTime createdAt)
createdAt - createdAt or null for nonepublic String getCurrency()
null for nonepublic SuperChatEventSnippet setCurrency(String currency)
currency - currency or null for nonepublic String getDisplayString()
null for nonepublic SuperChatEventSnippet setDisplayString(String displayString)
displayString - displayString or null for nonepublic Boolean getIsSuperStickerEvent()
null for nonepublic SuperChatEventSnippet setIsSuperStickerEvent(Boolean isSuperStickerEvent)
isSuperStickerEvent - isSuperStickerEvent or null for nonepublic Long getMessageType()
null for nonepublic SuperChatEventSnippet setMessageType(Long messageType)
messageType - messageType 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(String fieldName, Object value)
set in class GenericJsonpublic SuperChatEventSnippet clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.