target.apidocs.com.google.api.services.youtube.model.LiveChatGiftMembershipReceivedDetails.html Maven / Gradle / Ivy
LiveChatGiftMembershipReceivedDetails (YouTube Data API v3 v3-rev20240916-2.0.0)
com.google.api.services.youtube.model
Class LiveChatGiftMembershipReceivedDetails
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.youtube.model.LiveChatGiftMembershipReceivedDetails
-
public final class LiveChatGiftMembershipReceivedDetails
extends com.google.api.client.json.GenericJson
Model definition for LiveChatGiftMembershipReceivedDetails.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
LiveChatGiftMembershipReceivedDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LiveChatGiftMembershipReceivedDetails
clone()
String
getAssociatedMembershipGiftingMessageId()
The ID of the membership gifting message that is related to this gift membership.
String
getGifterChannelId()
The ID of the user that made the membership gifting purchase.
String
getMemberLevelName()
The name of the Level at which the viewer is a member.
LiveChatGiftMembershipReceivedDetails
set(String fieldName,
Object value)
LiveChatGiftMembershipReceivedDetails
setAssociatedMembershipGiftingMessageId(String associatedMembershipGiftingMessageId)
The ID of the membership gifting message that is related to this gift membership.
LiveChatGiftMembershipReceivedDetails
setGifterChannelId(String gifterChannelId)
The ID of the user that made the membership gifting purchase.
LiveChatGiftMembershipReceivedDetails
setMemberLevelName(String memberLevelName)
The name of the Level at which the viewer is a member.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
LiveChatGiftMembershipReceivedDetails
public LiveChatGiftMembershipReceivedDetails()
-
Method Detail
-
getAssociatedMembershipGiftingMessageId
public String getAssociatedMembershipGiftingMessageId()
The ID of the membership gifting message that is related to this gift membership. This ID will
always refer to a message whose type is 'membershipGiftingEvent'.
- Returns:
- value or
null
for none
-
setAssociatedMembershipGiftingMessageId
public LiveChatGiftMembershipReceivedDetails setAssociatedMembershipGiftingMessageId(String associatedMembershipGiftingMessageId)
The ID of the membership gifting message that is related to this gift membership. This ID will
always refer to a message whose type is 'membershipGiftingEvent'.
- Parameters:
associatedMembershipGiftingMessageId
- associatedMembershipGiftingMessageId or null
for none
-
getGifterChannelId
public String getGifterChannelId()
The ID of the user that made the membership gifting purchase. This matches the
`snippet.authorChannelId` of the associated membership gifting message.
- Returns:
- value or
null
for none
-
setGifterChannelId
public LiveChatGiftMembershipReceivedDetails setGifterChannelId(String gifterChannelId)
The ID of the user that made the membership gifting purchase. This matches the
`snippet.authorChannelId` of the associated membership gifting message.
- Parameters:
gifterChannelId
- gifterChannelId or null
for none
-
getMemberLevelName
public String getMemberLevelName()
The name of the Level at which the viewer is a member. This matches the
`snippet.membershipGiftingDetails.giftMembershipsLevelName` of the associated membership
gifting message. The Level names are defined by the YouTube channel offering the Membership. In
some situations this field isn't filled.
- Returns:
- value or
null
for none
-
setMemberLevelName
public LiveChatGiftMembershipReceivedDetails setMemberLevelName(String memberLevelName)
The name of the Level at which the viewer is a member. This matches the
`snippet.membershipGiftingDetails.giftMembershipsLevelName` of the associated membership
gifting message. The Level names are defined by the YouTube channel offering the Membership. In
some situations this field isn't filled.
- Parameters:
memberLevelName
- memberLevelName or null
for none
-
set
public LiveChatGiftMembershipReceivedDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LiveChatGiftMembershipReceivedDetails clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy