public final class Activity 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 |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
Activity |
clone() |
ActivityContentDetails |
getContentDetails()
The contentDetails object contains information about the content associated with the activity.
|
String |
getEtag()
The ETag of the activity resource.
|
String |
getId()
The ID that YouTube uses to uniquely identify the activity.
|
String |
getKind()
The type of the API resource.
|
ActivitySnippet |
getSnippet()
The snippet object contains basic details about the activity, including the activity's type and
group ID.
|
Activity |
set(String fieldName,
Object value) |
Activity |
setContentDetails(ActivityContentDetails contentDetails)
The contentDetails object contains information about the content associated with the activity.
|
Activity |
setEtag(String etag)
The ETag of the activity resource.
|
Activity |
setId(String id)
The ID that YouTube uses to uniquely identify the activity.
|
Activity |
setKind(String kind)
The type of the API resource.
|
Activity |
setSnippet(ActivitySnippet snippet)
The snippet object contains basic details about the activity, including the activity's type and
group ID.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public ActivityContentDetails getContentDetails()
null
for nonepublic Activity setContentDetails(ActivityContentDetails contentDetails)
contentDetails
- contentDetails or null
for nonepublic String getEtag()
null
for nonepublic Activity setEtag(String etag)
etag
- etag or null
for nonepublic String getId()
null
for nonepublic Activity setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Activity setKind(String kind)
kind
- kind or null
for nonepublic ActivitySnippet getSnippet()
null
for nonepublic Activity setSnippet(ActivitySnippet snippet)
snippet
- snippet or null
for nonepublic Activity set(String fieldName, Object value)
set
in class GenericJson
public Activity clone()
clone
in class GenericJson