Class: Google::Apis::GamesV1::Room
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::Room
 
- 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 room resource object.
Instance Attribute Summary collapse
- 
  
    
      #application_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the application being played. 
- 
  
    
      #auto_matching_criteria  ⇒ Google::Apis::GamesV1::RoomAutoMatchingCriteria 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for a room auto-match criteria object. 
- 
  
    
      #auto_matching_status  ⇒ Google::Apis::GamesV1::RoomAutoMatchStatus 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for status of room automatching that is in progress. 
- 
  
    
      #creation_details  ⇒ Google::Apis::GamesV1::RoomModification 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for room modification metadata. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This short description is generated by our servers and worded relative to the player requesting the room. 
- 
  
    
      #inviter_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the participant that invited the user to the room. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #last_update_details  ⇒ Google::Apis::GamesV1::RoomModification 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for room modification metadata. 
- 
  
    
      #participants  ⇒ Array<Google::Apis::GamesV1::RoomParticipant> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The participants involved in the room, along with their statuses. 
- 
  
    
      #room_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Globally unique ID for a room. 
- 
  
    
      #room_status_version  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The status of the room. 
- 
  
    
      #variant  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The variant / mode of the application being played; can be any integer value, or left blank. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Room 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Room. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Room
Returns a new instance of Room
| 3194 3195 3196 | # File 'generated/google/apis/games_v1/classes.rb', line 3194 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#application_id ⇒ String
The ID of the application being played.
Corresponds to the JSON property applicationId
| 3116 3117 3118 | # File 'generated/google/apis/games_v1/classes.rb', line 3116 def application_id @application_id end | 
#auto_matching_criteria ⇒ Google::Apis::GamesV1::RoomAutoMatchingCriteria
This is a JSON template for a room auto-match criteria object.
Corresponds to the JSON property autoMatchingCriteria
| 3121 3122 3123 | # File 'generated/google/apis/games_v1/classes.rb', line 3121 def auto_matching_criteria @auto_matching_criteria end | 
#auto_matching_status ⇒ Google::Apis::GamesV1::RoomAutoMatchStatus
This is a JSON template for status of room automatching that is in progress.
Corresponds to the JSON property autoMatchingStatus
| 3126 3127 3128 | # File 'generated/google/apis/games_v1/classes.rb', line 3126 def auto_matching_status @auto_matching_status end | 
#creation_details ⇒ Google::Apis::GamesV1::RoomModification
This is a JSON template for room modification metadata.
Corresponds to the JSON property creationDetails
| 3131 3132 3133 | # File 'generated/google/apis/games_v1/classes.rb', line 3131 def creation_details @creation_details end | 
#description ⇒ String
This short description is generated by our servers and worded relative to the
player requesting the room. It is intended to be displayed when the room is
shown in a list (that is, an invitation to a room.)
Corresponds to the JSON property description
| 3138 3139 3140 | # File 'generated/google/apis/games_v1/classes.rb', line 3138 def description @description end | 
#inviter_id ⇒ String
The ID of the participant that invited the user to the room. Not set if the
user was not invited to the room.
Corresponds to the JSON property inviterId
| 3144 3145 3146 | # File 'generated/google/apis/games_v1/classes.rb', line 3144 def inviter_id @inviter_id end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#room.
Corresponds to the JSON property kind
| 3150 3151 3152 | # File 'generated/google/apis/games_v1/classes.rb', line 3150 def kind @kind end | 
#last_update_details ⇒ Google::Apis::GamesV1::RoomModification
This is a JSON template for room modification metadata.
Corresponds to the JSON property lastUpdateDetails
| 3155 3156 3157 | # File 'generated/google/apis/games_v1/classes.rb', line 3155 def last_update_details @last_update_details end | 
#participants ⇒ Array<Google::Apis::GamesV1::RoomParticipant>
The participants involved in the room, along with their statuses. Includes
participants who have left or declined invitations.
Corresponds to the JSON property participants
| 3161 3162 3163 | # File 'generated/google/apis/games_v1/classes.rb', line 3161 def participants @participants end | 
#room_id ⇒ String
Globally unique ID for a room.
Corresponds to the JSON property roomId
| 3166 3167 3168 | # File 'generated/google/apis/games_v1/classes.rb', line 3166 def room_id @room_id end | 
#room_status_version ⇒ Fixnum
The version of the room status: an increasing counter, used by the client to
ignore out-of-order updates to room status.
Corresponds to the JSON property roomStatusVersion
| 3172 3173 3174 | # File 'generated/google/apis/games_v1/classes.rb', line 3172 def room_status_version @room_status_version end | 
#status ⇒ String
The status of the room. Possible values are:
- "ROOM_INVITING" - One or more players have been invited and not responded.
- "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- "ROOM_CONNECTING" - Players have joined and are connecting to each other ( either before or after auto-matching).
- "ROOM_ACTIVE" - All players have joined and connected to each other.
- "ROOM_DELETED" - The room should no longer be shown on the client. Returned
in sync calls when a player joins a room (as a tombstone), or for rooms where
all joined participants have left.
Corresponds to the JSON property status
| 3186 3187 3188 | # File 'generated/google/apis/games_v1/classes.rb', line 3186 def status @status end | 
#variant ⇒ Fixnum
The variant / mode of the application being played; can be any integer value,
or left blank.
Corresponds to the JSON property variant
| 3192 3193 3194 | # File 'generated/google/apis/games_v1/classes.rb', line 3192 def variant @variant end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 | # File 'generated/google/apis/games_v1/classes.rb', line 3199 def update!(**args) @application_id = args[:application_id] if args.key?(:application_id) @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status) @creation_details = args[:creation_details] if args.key?(:creation_details) @description = args[:description] if args.key?(:description) @inviter_id = args[:inviter_id] if args.key?(:inviter_id) @kind = args[:kind] if args.key?(:kind) @last_update_details = args[:last_update_details] if args.key?(:last_update_details) @participants = args[:participants] if args.key?(:participants) @room_id = args[:room_id] if args.key?(:room_id) @room_status_version = args[:room_status_version] if args.key?(:room_status_version) @status = args[:status] if args.key?(:status) @variant = args[:variant] if args.key?(:variant) end |