java.lang.Object | |
↳ | com.google.android.gms.games.event.EventEntity |
Data object representing the data for a event. This is immutable, and therefore safe to cache or store. Note, however, that the data it represents may grow stale.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Freeze a volatile representation into an immutable representation.
| |||||||||||
Retrieves the description for this event.
| |||||||||||
Loads the event description into the given
CharArrayBuffer .
| |||||||||||
Retrieves the ID of this event.
| |||||||||||
Retrieves the sum of increments have been made to this event (formatted for the user's
locale).
| |||||||||||
Retrieves the sum of increments have been made to this event (formatted
for the user's locale).
| |||||||||||
Retrieves a URI that can be used to load the event's image icon.
| |||||||||||
Loads the event name into the given
CharArrayBuffer .
| |||||||||||
Retrieves the name of this event.
| |||||||||||
Retrieves the player information associated with this event.
| |||||||||||
Retrieves the number of increments this user has made to this event.
| |||||||||||
Check to see if this object is valid for use.
| |||||||||||
Retrieves whether the event should be displayed to the user in any event related UIs.
| |||||||||||
[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 description for this event.
Loads the event description into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves the ID of this event.
Retrieves the sum of increments have been made to this event (formatted for the user's locale).
Retrieves the sum of increments have been made to this event (formatted for the user's locale).
dataOut | The buffer to load the data into. |
---|
Retrieves a URI that can be used to load the event's image icon. Returns null if the event has no image.
To retrieve the Image from the Uri
, use ImageManager
.
Loads the event name into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves the name of this event.
Retrieves the player information associated with this event.
Note that this object is a volatile representation, so it is not safe to cache the output of
this directly. Instead, cache the result of freeze()
.
Retrieves the number of increments this user has made to this event.
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.
Retrieves whether the event should be displayed to the user in any event related UIs.