public final class Subscription 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. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
SubscriptionContentDetails |
getContentDetails()
The contentDetails object contains basic statistics about the subscription.
|
String |
getEtag()
Etag of this resource.
|
String |
getId()
The ID that YouTube uses to uniquely identify the subscription.
|
String |
getKind()
The kind, fixed to "youtube#subscription".
|
SubscriptionSnippet |
getSnippet()
The snippet object contains basic details about the subscription, including its title and the
channel that the user subscribed to.
|
SubscriptionSubscriberSnippet |
getSubscriberSnippet()
The subscriberSnippet object contains basic details about the sbuscriber.
|
Subscription |
setContentDetails(SubscriptionContentDetails contentDetails)
The contentDetails object contains basic statistics about the subscription.
|
Subscription |
setEtag(String etag)
Etag of this resource.
|
Subscription |
setId(String id)
The ID that YouTube uses to uniquely identify the subscription.
|
Subscription |
setKind(String kind)
The kind, fixed to "youtube#subscription".
|
Subscription |
setSnippet(SubscriptionSnippet snippet)
The snippet object contains basic details about the subscription, including its title and the
channel that the user subscribed to.
|
Subscription |
setSubscriberSnippet(SubscriptionSubscriberSnippet subscriberSnippet)
The subscriberSnippet object contains basic details about the sbuscriber.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public SubscriptionContentDetails getContentDetails()
null
.public Subscription setContentDetails(SubscriptionContentDetails contentDetails)
null
.public String getEtag()
null
.public Subscription setEtag(String etag)
null
.public String getId()
null
.public Subscription setId(String id)
null
.public String getKind()
null
.public Subscription setKind(String kind)
null
.public SubscriptionSnippet getSnippet()
null
.public Subscription setSnippet(SubscriptionSnippet snippet)
null
.public SubscriptionSubscriberSnippet getSubscriberSnippet()
null
.public Subscription setSubscriberSnippet(SubscriptionSubscriberSnippet subscriberSnippet)
null
.