java.lang.Object | |
↳ | com.google.android.gms.games.quest.QuestEntity |
Data object representing the data for a quest. This is immutable, and therefore safe to cache or store. Note, however, that the data it represents may grow stale.
This class exists solely to support parceling these objects and should not be used directly.
[Expand]
Inherited Constants | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
| ||||||||||||||||||||||||||||||||
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
[Expand]
Inherited Fields | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Freeze a volatile representation into an immutable representation.
| |||||||||||
Retrieves the timestamp (in milliseconds since epoch) at which this quest was accepted
by the player.
| |||||||||||
Retrieves a URI that can be used to load the quest's banner image.
| |||||||||||
Retrieves the latest milestone information associated with this quest.
| |||||||||||
Retrieves the description for this quest.
| |||||||||||
Loads the quest description into the given
CharArrayBuffer .
| |||||||||||
Timestamp at which this quest will change to STATE_EXPIRED if not accepted,
or change to STATE_FAILED if accepted but not completed.
| |||||||||||
Retrieves the game metadata associated with this quest.
| |||||||||||
Retrieves a URI that can be used to load the quest's icon image.
| |||||||||||
Retrieves the timestamp (in milliseconds since epoch) at which this quest was last
updated.
| |||||||||||
Loads the quest name into the given
CharArrayBuffer .
| |||||||||||
Retrieves the name of this quest.
| |||||||||||
Retrieves the ID of this quest.
| |||||||||||
Retrieves the timestamp (in milliseconds since epoch) at which this quest will be available
for players to accept.
| |||||||||||
Retrieves the state of the quest - one of
STATE_UPCOMING ,
STATE_OPEN , STATE_COMPLETED , STATE_EXPIRED ,
STATE_FAILED , STATE_ACCEPTED .
| |||||||||||
Check to see if this object is valid for use.
| |||||||||||
Indicates whether the quest will be expiring soon
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||
![]()
| |||||||||||||||||||||||||||||||||||||||||
![]()
|
Freeze a volatile representation into an immutable representation. Objects returned from this call are safe to cache.
Note that the output of freeze
may not be identical to the parent object, but should
be equal. In other words:
Freezable f1 = new Freezable();
Freezable f2 = f1.freeze();
f1 == f2 may not be true.
f1.equals(f2) will be true.
Retrieves the timestamp (in milliseconds since epoch) at which this quest was accepted
by the player. If the quest has never been accepted, this will return
UNSET_QUEST_TIMESTAMP
. If you are looking for the time that a quest is available
to be accepted, see getStartTimestamp()
. This value should always be greater
than getStartTimestamp()
and less than getEndTimestamp()
Retrieves a URI that can be used to load the quest's banner image. Returns null if the quest has no banner image.
To retrieve the Image from theUri
, use
ImageManager
.Retrieves the latest milestone information associated with this quest.
Retrieves the description for this quest.
Loads the quest description into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Timestamp at which this quest will change to STATE_EXPIRED if not accepted, or change to STATE_FAILED if accepted but not completed.
Retrieves the game metadata associated with this quest.
Retrieves a URI that can be used to load the quest's icon image. Returns null if the quest has no icon image.
To retrieve the Image from theUri
, use
ImageManager
.Retrieves the timestamp (in milliseconds since epoch) at which this quest was last
updated. If the quest has never been updated, this will return
UNSET_QUEST_TIMESTAMP
.
Loads the quest name into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves the name of this quest.
Retrieves the ID of this quest.
Retrieves the timestamp (in milliseconds since epoch) at which this quest will be available
for players to accept. If you are looking for the time that a quest was accepted by the
player, see getAcceptedTimestamp()
Retrieves the state of the quest - one of STATE_UPCOMING
,
STATE_OPEN
, STATE_COMPLETED
, STATE_EXPIRED
,
STATE_FAILED
, STATE_ACCEPTED
.
Check to see if this object is valid for use. If the object is still volatile, this method
will indicate whether or not the object can be safely used. The output of a call to
freeze()
will always be valid.
Indicates whether the quest will be expiring soon