public final class Quest 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 Google Play Game Services API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Quest() |
| Modifier and Type | Method and Description |
|---|---|
Quest |
clone() |
Long |
getAcceptedTimestampMillis()
The timestamp at which the user accepted the quest in milliseconds since the epoch in UTC.
|
String |
getApplicationId()
The ID of the application this quest is part of.
|
String |
getBannerUrl()
The banner image URL for the quest.
|
String |
getDescription()
The description of the quest.
|
Long |
getEndTimestampMillis()
The timestamp at which the quest ceases to be active in milliseconds since the epoch in UTC.
|
String |
getIconUrl()
The icon image URL for the quest.
|
String |
getId()
The ID of the quest.
|
Boolean |
getIsDefaultBannerUrl()
Indicates whether the banner image being returned is a default image, or is game-provided.
|
Boolean |
getIsDefaultIconUrl()
Indicates whether the icon image being returned is a default image, or is game-provided.
|
String |
getKind()
Uniquely identifies the type of this resource.
|
Long |
getLastUpdatedTimestampMillis()
The timestamp at which the quest was last updated by the user in milliseconds since the epoch
in UTC.
|
List<QuestMilestone> |
getMilestones()
The quest milestones.
|
String |
getName()
The name of the quest.
|
Long |
getNotifyTimestampMillis()
The timestamp at which the user should be notified that the quest will end soon in milliseconds
since the epoch in UTC.
|
Long |
getStartTimestampMillis()
The timestamp at which the quest becomes active in milliseconds since the epoch in UTC.
|
String |
getState()
The state of the quest.
|
Quest |
set(String fieldName,
Object value) |
Quest |
setAcceptedTimestampMillis(Long acceptedTimestampMillis)
The timestamp at which the user accepted the quest in milliseconds since the epoch in UTC.
|
Quest |
setApplicationId(String applicationId)
The ID of the application this quest is part of.
|
Quest |
setBannerUrl(String bannerUrl)
The banner image URL for the quest.
|
Quest |
setDescription(String description)
The description of the quest.
|
Quest |
setEndTimestampMillis(Long endTimestampMillis)
The timestamp at which the quest ceases to be active in milliseconds since the epoch in UTC.
|
Quest |
setIconUrl(String iconUrl)
The icon image URL for the quest.
|
Quest |
setId(String id)
The ID of the quest.
|
Quest |
setIsDefaultBannerUrl(Boolean isDefaultBannerUrl)
Indicates whether the banner image being returned is a default image, or is game-provided.
|
Quest |
setIsDefaultIconUrl(Boolean isDefaultIconUrl)
Indicates whether the icon image being returned is a default image, or is game-provided.
|
Quest |
setKind(String kind)
Uniquely identifies the type of this resource.
|
Quest |
setLastUpdatedTimestampMillis(Long lastUpdatedTimestampMillis)
The timestamp at which the quest was last updated by the user in milliseconds since the epoch
in UTC.
|
Quest |
setMilestones(List<QuestMilestone> milestones)
The quest milestones.
|
Quest |
setName(String name)
The name of the quest.
|
Quest |
setNotifyTimestampMillis(Long notifyTimestampMillis)
The timestamp at which the user should be notified that the quest will end soon in milliseconds
since the epoch in UTC.
|
Quest |
setStartTimestampMillis(Long startTimestampMillis)
The timestamp at which the quest becomes active in milliseconds since the epoch in UTC.
|
Quest |
setState(String state)
The state of the quest.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic Long getAcceptedTimestampMillis()
null for nonepublic Quest setAcceptedTimestampMillis(Long acceptedTimestampMillis)
acceptedTimestampMillis - acceptedTimestampMillis or null for nonepublic String getApplicationId()
null for nonepublic Quest setApplicationId(String applicationId)
applicationId - applicationId or null for nonepublic String getBannerUrl()
null for nonepublic Quest setBannerUrl(String bannerUrl)
bannerUrl - bannerUrl or null for nonepublic String getDescription()
null for nonepublic Quest setDescription(String description)
description - description or null for nonepublic Long getEndTimestampMillis()
null for nonepublic Quest setEndTimestampMillis(Long endTimestampMillis)
endTimestampMillis - endTimestampMillis or null for nonepublic String getIconUrl()
null for nonepublic Quest setIconUrl(String iconUrl)
iconUrl - iconUrl or null for nonepublic String getId()
null for nonepublic Boolean getIsDefaultBannerUrl()
null for nonepublic Quest setIsDefaultBannerUrl(Boolean isDefaultBannerUrl)
isDefaultBannerUrl - isDefaultBannerUrl or null for nonepublic Boolean getIsDefaultIconUrl()
null for nonepublic Quest setIsDefaultIconUrl(Boolean isDefaultIconUrl)
isDefaultIconUrl - isDefaultIconUrl or null for nonepublic String getKind()
null for nonepublic Quest setKind(String kind)
kind - kind or null for nonepublic Long getLastUpdatedTimestampMillis()
null for nonepublic Quest setLastUpdatedTimestampMillis(Long lastUpdatedTimestampMillis)
lastUpdatedTimestampMillis - lastUpdatedTimestampMillis or null for nonepublic List<QuestMilestone> getMilestones()
null for nonepublic Quest setMilestones(List<QuestMilestone> milestones)
milestones - milestones or null for nonepublic String getName()
null for nonepublic Quest setName(String name)
name - name or null for nonepublic Long getNotifyTimestampMillis()
null for nonepublic Quest setNotifyTimestampMillis(Long notifyTimestampMillis)
notifyTimestampMillis - notifyTimestampMillis or null for nonepublic Long getStartTimestampMillis()
null for nonepublic Quest setStartTimestampMillis(Long startTimestampMillis)
startTimestampMillis - startTimestampMillis or null for nonepublic String getState()
null for nonepublic Quest setState(String state)
state - state or null for nonepublic Quest set(String fieldName, Object value)
set in class GenericJsonpublic Quest clone()
clone in class GenericJson