public final class Subscription
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: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
SubscriptionContentDetails |
getContentDetails()
The contentDetails object contains basic statistics about the subscription.
|
java.lang.String |
getEtag()
Etag of this resource.
|
java.lang.String |
getId()
The ID that YouTube uses to uniquely identify the subscription.
|
java.lang.String |
getKind()
Identifies what kind of resource this is.
|
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 |
set(java.lang.String fieldName,
java.lang.Object value) |
Subscription |
setContentDetails(SubscriptionContentDetails contentDetails)
The contentDetails object contains basic statistics about the subscription.
|
Subscription |
setEtag(java.lang.String etag)
Etag of this resource.
|
Subscription |
setId(java.lang.String id)
The ID that YouTube uses to uniquely identify the subscription.
|
Subscription |
setKind(java.lang.String kind)
Identifies what kind of resource this is.
|
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public SubscriptionContentDetails getContentDetails()
null
for nonepublic Subscription setContentDetails(SubscriptionContentDetails contentDetails)
contentDetails
- contentDetails or null
for nonepublic java.lang.String getEtag()
null
for nonepublic Subscription setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic java.lang.String getId()
null
for nonepublic Subscription setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Subscription setKind(java.lang.String kind)
kind
- kind or null
for nonepublic SubscriptionSnippet getSnippet()
null
for nonepublic Subscription setSnippet(SubscriptionSnippet snippet)
snippet
- snippet or null
for nonepublic SubscriptionSubscriberSnippet getSubscriberSnippet()
null
for nonepublic Subscription setSubscriberSnippet(SubscriptionSubscriberSnippet subscriberSnippet)
subscriberSnippet
- subscriberSnippet or null
for nonepublic Subscription set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Subscription clone()
clone
in class com.google.api.client.json.GenericJson