#include <room_leave_request.h>
This is a JSON template for a leave room request.
◆ RoomLeaveRequest() [1/2]
google_games_api::RoomLeaveRequest::RoomLeaveRequest |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ RoomLeaveRequest() [2/2]
google_games_api::RoomLeaveRequest::RoomLeaveRequest |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~RoomLeaveRequest()
google_games_api::RoomLeaveRequest::~RoomLeaveRequest |
( |
| ) |
|
|
virtual |
◆ clear_kind()
void google_games_api::RoomLeaveRequest::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ clear_leave_diagnostics()
void google_games_api::RoomLeaveRequest::clear_leave_diagnostics |
( |
| ) |
|
|
inline |
Clears the 'leaveDiagnostics
' attribute.
◆ clear_reason()
void google_games_api::RoomLeaveRequest::clear_reason |
( |
| ) |
|
|
inline |
Clears the 'reason
' attribute.
◆ get_kind()
const StringPiece google_games_api::RoomLeaveRequest::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ get_leave_diagnostics()
Get a reference to the value of the 'leaveDiagnostics
' attribute.
◆ get_reason()
const StringPiece google_games_api::RoomLeaveRequest::get_reason |
( |
| ) |
const |
|
inline |
Get the value of the 'reason
' attribute.
◆ GetTypeName()
const StringPiece google_games_api::RoomLeaveRequest::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_kind()
bool google_games_api::RoomLeaveRequest::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind
' attribute was set.
- Returns
- true if the '
kind
' attribute was set.
◆ has_leave_diagnostics()
bool google_games_api::RoomLeaveRequest::has_leave_diagnostics |
( |
| ) |
const |
|
inline |
Determine if the 'leaveDiagnostics
' attribute was set.
- Returns
- true if the '
leaveDiagnostics
' attribute was set.
◆ has_reason()
bool google_games_api::RoomLeaveRequest::has_reason |
( |
| ) |
const |
|
inline |
Determine if the 'reason
' attribute was set.
- Returns
- true if the '
reason
' attribute was set.
◆ mutable_leaveDiagnostics()
Gets a reference to a mutable value of the 'leaveDiagnostics
' property.
Diagnostics for a player leaving the room.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_kind()
void google_games_api::RoomLeaveRequest::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
Uniquely identifies the type of this resource. Value is always the fixed string games::roomLeaveRequest.
- Parameters
-
◆ set_reason()
void google_games_api::RoomLeaveRequest::set_reason |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'reason
' attribute.
Reason for leaving the match. Possible values are:
- "PLAYER_LEFT"
- The player chose to leave the room..
- "GAME_LEFT"
- The game chose to remove the player from the room.
- "REALTIME_ABANDONED"
- The player switched to another application and abandoned the room.
- "REALTIME_PEER_CONNECTION_FAILURE"
- The client was unable to establish a connection to other peer(s).
- "REALTIME_SERVER_CONNECTION_FAILURE"
- The client was unable to communicate with the server.
- "REALTIME_SERVER_ERROR"
- The client received an error response when it tried to communicate with the server.
- "REALTIME_TIMEOUT"
- The client timed out while waiting for a room.
- "REALTIME_CLIENT_DISCONNECTING"
- The client disconnects without first calling Leave.
- "REALTIME_SIGN_OUT"
- The user signed out of G+ while in the room.
- "REALTIME_GAME_CRASHED"
- The game crashed.
- "REALTIME_ROOM_SERVICE_CRASHED"
- RoomAndroidService crashed.
- "REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION"
- Another client is trying to enter a room.
- "REALTIME_SAME_CLIENT_ROOM_OPERATION"
- The same client is trying to enter a new room.
- Parameters
-
The documentation for this class was generated from the following files: