public final class SubscriptionSnippet 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-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SubscriptionSnippet() |
Modifier and Type | Method and Description |
---|---|
SubscriptionSnippet |
clone() |
String |
getChannelId()
The ID that YouTube uses to uniquely identify the subscriber's channel.
|
String |
getChannelTitle()
Channel title for the channel that the subscription belongs to.
|
String |
getDescription()
The subscription's details.
|
DateTime |
getPublishedAt()
The date and time that the subscription was created.
|
ResourceId |
getResourceId()
The id object contains information about the channel that the user subscribed to.
|
ThumbnailDetails |
getThumbnails()
A map of thumbnail images associated with the video.
|
String |
getTitle()
The subscription's title.
|
SubscriptionSnippet |
set(String fieldName,
Object value) |
SubscriptionSnippet |
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the subscriber's channel.
|
SubscriptionSnippet |
setChannelTitle(String channelTitle)
Channel title for the channel that the subscription belongs to.
|
SubscriptionSnippet |
setDescription(String description)
The subscription's details.
|
SubscriptionSnippet |
setPublishedAt(DateTime publishedAt)
The date and time that the subscription was created.
|
SubscriptionSnippet |
setResourceId(ResourceId resourceId)
The id object contains information about the channel that the user subscribed to.
|
SubscriptionSnippet |
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the video.
|
SubscriptionSnippet |
setTitle(String title)
The subscription's title.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getChannelId()
null
for nonepublic SubscriptionSnippet setChannelId(String channelId)
channelId
- channelId or null
for nonepublic String getChannelTitle()
null
for nonepublic SubscriptionSnippet setChannelTitle(String channelTitle)
channelTitle
- channelTitle or null
for nonepublic String getDescription()
null
for nonepublic SubscriptionSnippet setDescription(String description)
description
- description or null
for nonepublic DateTime getPublishedAt()
null
for nonepublic SubscriptionSnippet setPublishedAt(DateTime publishedAt)
publishedAt
- publishedAt or null
for nonepublic ResourceId getResourceId()
null
for nonepublic SubscriptionSnippet setResourceId(ResourceId resourceId)
resourceId
- resourceId or null
for nonepublic ThumbnailDetails getThumbnails()
null
for nonepublic SubscriptionSnippet setThumbnails(ThumbnailDetails thumbnails)
thumbnails
- thumbnails or null
for nonepublic String getTitle()
null
for nonepublic SubscriptionSnippet setTitle(String title)
title
- title or null
for nonepublic SubscriptionSnippet set(String fieldName, Object value)
set
in class GenericJson
public SubscriptionSnippet clone()
clone
in class GenericJson