public final class SubscriptionContentDetails 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 v3. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SubscriptionContentDetails() |
Modifier and Type | Method and Description |
---|---|
SubscriptionContentDetails |
clone() |
String |
getActivityType()
The type of activity this subscription is for (only uploads, everything).
|
Long |
getNewItemCount()
The number of new items in the subscription since its content was last read.
|
Long |
getTotalItemCount()
The approximate number of items that the subscription points to.
|
SubscriptionContentDetails |
set(String fieldName,
Object value) |
SubscriptionContentDetails |
setActivityType(String activityType)
The type of activity this subscription is for (only uploads, everything).
|
SubscriptionContentDetails |
setNewItemCount(Long newItemCount)
The number of new items in the subscription since its content was last read.
|
SubscriptionContentDetails |
setTotalItemCount(Long totalItemCount)
The approximate number of items that the subscription points to.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getActivityType()
null
for nonepublic SubscriptionContentDetails setActivityType(String activityType)
activityType
- activityType or null
for nonepublic Long getNewItemCount()
null
for nonepublic SubscriptionContentDetails setNewItemCount(Long newItemCount)
newItemCount
- newItemCount or null
for nonepublic Long getTotalItemCount()
null
for nonepublic SubscriptionContentDetails setTotalItemCount(Long totalItemCount)
totalItemCount
- totalItemCount or null
for nonepublic SubscriptionContentDetails set(String fieldName, Object value)
set
in class GenericJson
public SubscriptionContentDetails clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.