java.lang.Object |
↳ |
com.google.android.gms.games.multiplayer.ParticipantResult |
Class Overview
Data class used to report a participant's result in a match.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Constants
public
static
final
int
MATCH_RESULT_DISAGREED
Constant indicating that this participant had different results reported by different
clients.
Constant Value:
5
(0x00000005)
public
static
final
int
MATCH_RESULT_DISCONNECT
Constant indicating that this participant disconnected or left during the match.
Constant Value:
4
(0x00000004)
public
static
final
int
MATCH_RESULT_LOSS
Constant indicating that this participant lost the match.
Constant Value:
1
(0x00000001)
public
static
final
int
MATCH_RESULT_NONE
Constant indicating that this participant had no result for the match.
Constant Value:
3
(0x00000003)
public
static
final
int
MATCH_RESULT_TIE
Constant indicating that this participant tied the match.
Constant Value:
2
(0x00000002)
public
static
final
int
MATCH_RESULT_UNINITIALIZED
Constant indicating that this participant has not reported a result at all yet. This will
commonly be seen when the match is currently in progress. Note that this is distinct from
MATCH_RESULT_NONE
,
Constant Value:
-1
(0xffffffff)
public
static
final
int
MATCH_RESULT_WIN
Constant indicating that this participant won the match.
Constant Value:
0
(0x00000000)
public
static
final
int
PLACING_UNINITIALIZED
Constant returned by getPlacing()
if the participant has not reported a placing in
the match yet. Usually seen when a match is still in progress.
Constant Value:
-1
(0xffffffff)
Fields
Public Constructors
public
ParticipantResult
(String participantId, int result, int placing)
Public Methods
public
String
getParticipantId
()
Returns |
String |
The ID of the participant this result is for.
|
public
int
getPlacing
()
Returns |
int |
The placing of this participant in the match. PLACING_UNINITIALIZED means
that this result has no placing value to report.
|
public
void
writeToParcel
(Parcel out, int flags)
Parameters |
out |
Parcel
|
flags |
int
|