public final class MembershipsDetails 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: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MembershipsDetails() |
| Modifier and Type | Method and Description |
|---|---|
MembershipsDetails |
clone() |
List<String> |
getAccessibleLevels()
All levels that the user has access to.
|
String |
getMemberSince()
The date and time when the user became a continuous member across all levels.
|
String |
getMemberSinceCurrentLevel()
The date and time when the user started to continuously have access to the currently highest
level.
|
Integer |
getMemberTotalDuration()
The cumulative time the user has been a member across all levels in complete months (the time
is rounded down to the nearest integer).
|
Integer |
getMemberTotalDurationCurrentLevel()
The cumulative time the user has had access to the currently highest level in complete months
(the time is rounded down to the nearest integer).
|
String |
getPurchasedLevel()
The highest level the user has access to at the moment.
|
MembershipsDetails |
set(String fieldName,
Object value) |
MembershipsDetails |
setAccessibleLevels(List<String> accessibleLevels)
All levels that the user has access to.
|
MembershipsDetails |
setMemberSince(String memberSince)
The date and time when the user became a continuous member across all levels.
|
MembershipsDetails |
setMemberSinceCurrentLevel(String memberSinceCurrentLevel)
The date and time when the user started to continuously have access to the currently highest
level.
|
MembershipsDetails |
setMemberTotalDuration(Integer memberTotalDuration)
The cumulative time the user has been a member across all levels in complete months (the time
is rounded down to the nearest integer).
|
MembershipsDetails |
setMemberTotalDurationCurrentLevel(Integer memberTotalDurationCurrentLevel)
The cumulative time the user has had access to the currently highest level in complete months
(the time is rounded down to the nearest integer).
|
MembershipsDetails |
setPurchasedLevel(String purchasedLevel)
The highest level the user has access to at the moment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<String> getAccessibleLevels()
null for nonepublic MembershipsDetails setAccessibleLevels(List<String> accessibleLevels)
accessibleLevels - accessibleLevels or null for nonepublic String getMemberSince()
null for nonepublic MembershipsDetails setMemberSince(String memberSince)
memberSince - memberSince or null for nonepublic String getMemberSinceCurrentLevel()
null for nonepublic MembershipsDetails setMemberSinceCurrentLevel(String memberSinceCurrentLevel)
memberSinceCurrentLevel - memberSinceCurrentLevel or null for nonepublic Integer getMemberTotalDuration()
null for nonepublic MembershipsDetails setMemberTotalDuration(Integer memberTotalDuration)
memberTotalDuration - memberTotalDuration or null for nonepublic Integer getMemberTotalDurationCurrentLevel()
null for nonepublic MembershipsDetails setMemberTotalDurationCurrentLevel(Integer memberTotalDurationCurrentLevel)
memberTotalDurationCurrentLevel - memberTotalDurationCurrentLevel or null for nonepublic String getPurchasedLevel()
null for nonepublic MembershipsDetails setPurchasedLevel(String purchasedLevel)
purchasedLevel - purchasedLevel or null for nonepublic MembershipsDetails set(String fieldName, Object value)
set in class GenericJsonpublic MembershipsDetails clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.