Class: Google::Apis::GamesV1::LeaveRoomRequest
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::LeaveRoomRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
This is a JSON template for a leave room request.
Instance Attribute Summary collapse
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#leave_diagnostics ⇒ Google::Apis::GamesV1::RoomLeaveDiagnostics
This is a JSON template for room leave diagnostics.
-
#reason ⇒ String
Reason for leaving the match.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LeaveRoomRequest
constructor
A new instance of LeaveRoomRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LeaveRoomRequest
Returns a new instance of LeaveRoomRequest
3527 3528 3529 |
# File 'generated/google/apis/games_v1/classes.rb', line 3527 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#roomLeaveRequest.
Corresponds to the JSON property kind
3494 3495 3496 |
# File 'generated/google/apis/games_v1/classes.rb', line 3494 def kind @kind end |
#leave_diagnostics ⇒ Google::Apis::GamesV1::RoomLeaveDiagnostics
This is a JSON template for room leave diagnostics.
Corresponds to the JSON property leaveDiagnostics
3499 3500 3501 |
# File 'generated/google/apis/games_v1/classes.rb', line 3499 def leave_diagnostics @leave_diagnostics end |
#reason ⇒ String
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.
Corresponds to the JSON property
reason
3525 3526 3527 |
# File 'generated/google/apis/games_v1/classes.rb', line 3525 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3532 3533 3534 3535 3536 |
# File 'generated/google/apis/games_v1/classes.rb', line 3532 def update!(**args) @kind = args[:kind] if args.key?(:kind) @leave_diagnostics = args[:leave_diagnostics] if args.key?(:leave_diagnostics) @reason = args[:reason] if args.key?(:reason) end |