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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Parameters | |
---|---|
obj |
Object
|
Returns | |
---|---|
boolean |
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.
Returns | |
---|---|
Quest |
A concrete implementation of the data object. |
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()
Returns | |
---|---|
long |
Timestamp at which this quest was accepted. |
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
.
Returns | |
---|---|
Uri |
The image URI for the quest's banner image, or null if the quest has no banner image. |
Retrieves the latest milestone information associated with this quest.
Returns | |
---|---|
Milestone |
The latest milestone associated with this quest. |
Retrieves the description for this quest.
Returns | |
---|---|
String |
The quest description. |
Loads the quest description into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
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.
Returns | |
---|---|
long |
Timestamp at which this quest will end. |
Retrieves the game metadata associated with this quest.
Returns | |
---|---|
Game |
The game associated with the 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
.
Returns | |
---|---|
Uri |
The image URI for the quest's icon image, or null if the quest has no icon image. |
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
.
Returns | |
---|---|
long |
Timestamp at which this quest was last updated. |
Loads the quest name into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Retrieves the name of this quest.
Returns | |
---|---|
String |
The quest name. |
Retrieves the ID of this quest.
Returns | |
---|---|
String |
The quest ID. |
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()
Returns | |
---|---|
long |
Timestamp at which this quest will begin. |
Retrieves the state of the quest - one of STATE_UPCOMING
,
STATE_OPEN
, STATE_COMPLETED
, STATE_EXPIRED
,
STATE_FAILED
, STATE_ACCEPTED
.
Returns | |
---|---|
int |
The state of this quest. |
Returns | |
---|---|
int |
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.
Returns | |
---|---|
boolean |
whether or not the object is valid for use. |
Indicates whether the quest will be expiring soon
Returns | |
---|---|
boolean |
Is the quest expiring soon. |
Returns | |
---|---|
String |
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|