1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="games_v1.html">Google Play Game Services API</a> . <a href="games_v1.rooms.html">rooms</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#create">create(body, language=None, consistencyToken=None)</a></code></p> 79<p class="firstline">Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p> 80<p class="toc_element"> 81 <code><a href="#decline">decline(roomId, language=None, consistencyToken=None)</a></code></p> 82<p class="firstline">Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p> 83<p class="toc_element"> 84 <code><a href="#dismiss">dismiss(roomId, consistencyToken=None)</a></code></p> 85<p class="firstline">Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(roomId, language=None, consistencyToken=None)</a></code></p> 88<p class="firstline">Get the data for a room.</p> 89<p class="toc_element"> 90 <code><a href="#join">join(roomId, body, language=None, consistencyToken=None)</a></code></p> 91<p class="firstline">Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p> 92<p class="toc_element"> 93 <code><a href="#leave">leave(roomId, body, language=None, consistencyToken=None)</a></code></p> 94<p class="firstline">Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p> 95<p class="toc_element"> 96 <code><a href="#list">list(pageToken=None, language=None, maxResults=None, consistencyToken=None)</a></code></p> 97<p class="firstline">Returns invitations to join rooms.</p> 98<p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100<p class="firstline">Retrieves the next page of results.</p> 101<p class="toc_element"> 102 <code><a href="#reportStatus">reportStatus(roomId, body, language=None, consistencyToken=None)</a></code></p> 103<p class="firstline">Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.</p> 104<h3>Method Details</h3> 105<div class="method"> 106 <code class="details" id="create">create(body, language=None, consistencyToken=None)</code> 107 <pre>Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported. 108 109Args: 110 body: object, The request body. (required) 111 The object takes the form of: 112 113{ # This is a JSON template for a room creation request. 114 "kind": "games#roomCreateRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomCreateRequest. 115 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 116 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 117 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 118 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 119 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 120 }, 121 "invitedPlayerIds": [ # The player IDs to invite to the room. 122 "A String", 123 ], 124 "variant": 42, # The variant / mode of the application to be played. This can be any integer value, or left blank. You should use a small number of variants to keep the auto-matching pool as large as possible. 125 "capabilities": [ # The capabilities that this client supports for realtime communication. 126 "A String", 127 ], 128 "networkDiagnostics": { # This is a JSON template for network diagnostics reported for a client. # Network diagnostics for the client creating the room. 129 "kind": "games#networkDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#networkDiagnostics. 130 "iosNetworkType": 42, # iOS network type as defined in Reachability.h. 131 "networkOperatorCode": "A String", # The MCC+MNC code for the client's network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html 132 "androidNetworkSubtype": 42, # The Android network subtype. 133 "networkOperatorName": "A String", # The name of the carrier of the client's network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName 134 "registrationLatencyMillis": 42, # The amount of time in milliseconds it took for the client to establish a connection with the XMPP server. 135 "androidNetworkType": 42, # The Android network type. 136 }, 137 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the player creating the room. 138 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 139 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 140 }, 141 "requestId": "A String", # A randomly generated numeric ID. This number is used at the server to ensure that the request is handled correctly across retries. 142 } 143 144 language: string, The preferred language to use for strings returned by this method. 145 consistencyToken: string, The last-seen mutation timestamp. 146 147Returns: 148 An object of the form: 149 150 { # This is a JSON template for a room resource object. 151 "status": "A String", # The status of the room. 152 # Possible values are: 153 # - "ROOM_INVITING" - One or more players have been invited and not responded. 154 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 155 # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). 156 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 157 # - "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. 158 "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room. 159 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 160 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 161 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 162 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 163 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 164 }, 165 "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation. 166 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 167 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 168 "participantId": "A String", # The ID of the participant that modified the room. 169 }, 170 "description": "A 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.) 171 "roomId": "A String", # Globally unique ID for a room. 172 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue. 173 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 174 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 175 }, 176 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 177 { # This is a JSON template for a participant in a room. 178 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 179 "status": "A String", # The status of the participant with respect to the room. 180 # Possible values are: 181 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 182 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 183 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 184 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 185 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 186 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 187 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 188 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 189 "displayName": "A String", # The name to display for the anonymous player. 190 }, 191 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 192 # Possible values are: 193 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 194 # - "GAME_LEFT" - The game chose to remove the player from the room. 195 # - "ABANDONED" - The player switched to another application and abandoned the room. 196 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 197 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 198 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 199 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 200 "capabilities": [ # The capabilities which can be used when communicating with this participant. 201 "A String", 202 ], 203 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 204 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 205 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 206 "displayName": "A String", # The name to display for the player. 207 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 208 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 209 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 210 }, 211 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 212 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 213 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 214 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 215 }, 216 "playerId": "A String", # The ID of the player. 217 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 218 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 219 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 220 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 221 }, 222 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 223 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 224 "currentExperiencePoints": "A String", # The current number of experience points for the player. 225 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 226 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 227 "maxExperiencePoints": "A String", # The maximum experience points for this level. 228 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 229 "minExperiencePoints": "A String", # The minimum experience points for this level. 230 "level": 42, # The level for the user. 231 }, 232 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 233 "maxExperiencePoints": "A String", # The maximum experience points for this level. 234 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 235 "minExperiencePoints": "A String", # The minimum experience points for this level. 236 "level": 42, # The level for the user. 237 }, 238 }, 239 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 240 "title": "A String", # The player's title rewarded for their game activities. 241 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 242 }, 243 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 244 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 245 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 246 }, 247 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 248 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 249 }, 250 ], 251 "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 252 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank. 253 "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room. 254 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 255 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 256 "participantId": "A String", # The ID of the participant that modified the room. 257 }, 258 "applicationId": "A String", # The ID of the application being played. 259 "inviterId": "A String", # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room. 260 }</pre> 261</div> 262 263<div class="method"> 264 <code class="details" id="decline">decline(roomId, language=None, consistencyToken=None)</code> 265 <pre>Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported. 266 267Args: 268 roomId: string, The ID of the room. (required) 269 language: string, The preferred language to use for strings returned by this method. 270 consistencyToken: string, The last-seen mutation timestamp. 271 272Returns: 273 An object of the form: 274 275 { # This is a JSON template for a room resource object. 276 "status": "A String", # The status of the room. 277 # Possible values are: 278 # - "ROOM_INVITING" - One or more players have been invited and not responded. 279 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 280 # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). 281 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 282 # - "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. 283 "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room. 284 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 285 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 286 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 287 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 288 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 289 }, 290 "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation. 291 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 292 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 293 "participantId": "A String", # The ID of the participant that modified the room. 294 }, 295 "description": "A 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.) 296 "roomId": "A String", # Globally unique ID for a room. 297 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue. 298 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 299 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 300 }, 301 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 302 { # This is a JSON template for a participant in a room. 303 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 304 "status": "A String", # The status of the participant with respect to the room. 305 # Possible values are: 306 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 307 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 308 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 309 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 310 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 311 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 312 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 313 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 314 "displayName": "A String", # The name to display for the anonymous player. 315 }, 316 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 317 # Possible values are: 318 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 319 # - "GAME_LEFT" - The game chose to remove the player from the room. 320 # - "ABANDONED" - The player switched to another application and abandoned the room. 321 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 322 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 323 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 324 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 325 "capabilities": [ # The capabilities which can be used when communicating with this participant. 326 "A String", 327 ], 328 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 329 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 330 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 331 "displayName": "A String", # The name to display for the player. 332 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 333 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 334 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 335 }, 336 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 337 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 338 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 339 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 340 }, 341 "playerId": "A String", # The ID of the player. 342 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 343 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 344 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 345 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 346 }, 347 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 348 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 349 "currentExperiencePoints": "A String", # The current number of experience points for the player. 350 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 351 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 352 "maxExperiencePoints": "A String", # The maximum experience points for this level. 353 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 354 "minExperiencePoints": "A String", # The minimum experience points for this level. 355 "level": 42, # The level for the user. 356 }, 357 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 358 "maxExperiencePoints": "A String", # The maximum experience points for this level. 359 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 360 "minExperiencePoints": "A String", # The minimum experience points for this level. 361 "level": 42, # The level for the user. 362 }, 363 }, 364 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 365 "title": "A String", # The player's title rewarded for their game activities. 366 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 367 }, 368 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 369 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 370 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 371 }, 372 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 373 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 374 }, 375 ], 376 "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 377 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank. 378 "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room. 379 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 380 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 381 "participantId": "A String", # The ID of the participant that modified the room. 382 }, 383 "applicationId": "A String", # The ID of the application being played. 384 "inviterId": "A String", # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room. 385 }</pre> 386</div> 387 388<div class="method"> 389 <code class="details" id="dismiss">dismiss(roomId, consistencyToken=None)</code> 390 <pre>Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported. 391 392Args: 393 roomId: string, The ID of the room. (required) 394 consistencyToken: string, The last-seen mutation timestamp. 395</pre> 396</div> 397 398<div class="method"> 399 <code class="details" id="get">get(roomId, language=None, consistencyToken=None)</code> 400 <pre>Get the data for a room. 401 402Args: 403 roomId: string, The ID of the room. (required) 404 language: string, The preferred language to use for strings returned by this method. 405 consistencyToken: string, The last-seen mutation timestamp. 406 407Returns: 408 An object of the form: 409 410 { # This is a JSON template for a room resource object. 411 "status": "A String", # The status of the room. 412 # Possible values are: 413 # - "ROOM_INVITING" - One or more players have been invited and not responded. 414 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 415 # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). 416 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 417 # - "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. 418 "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room. 419 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 420 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 421 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 422 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 423 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 424 }, 425 "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation. 426 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 427 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 428 "participantId": "A String", # The ID of the participant that modified the room. 429 }, 430 "description": "A 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.) 431 "roomId": "A String", # Globally unique ID for a room. 432 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue. 433 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 434 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 435 }, 436 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 437 { # This is a JSON template for a participant in a room. 438 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 439 "status": "A String", # The status of the participant with respect to the room. 440 # Possible values are: 441 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 442 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 443 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 444 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 445 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 446 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 447 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 448 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 449 "displayName": "A String", # The name to display for the anonymous player. 450 }, 451 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 452 # Possible values are: 453 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 454 # - "GAME_LEFT" - The game chose to remove the player from the room. 455 # - "ABANDONED" - The player switched to another application and abandoned the room. 456 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 457 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 458 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 459 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 460 "capabilities": [ # The capabilities which can be used when communicating with this participant. 461 "A String", 462 ], 463 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 464 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 465 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 466 "displayName": "A String", # The name to display for the player. 467 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 468 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 469 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 470 }, 471 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 472 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 473 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 474 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 475 }, 476 "playerId": "A String", # The ID of the player. 477 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 478 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 479 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 480 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 481 }, 482 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 483 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 484 "currentExperiencePoints": "A String", # The current number of experience points for the player. 485 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 486 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 487 "maxExperiencePoints": "A String", # The maximum experience points for this level. 488 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 489 "minExperiencePoints": "A String", # The minimum experience points for this level. 490 "level": 42, # The level for the user. 491 }, 492 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 493 "maxExperiencePoints": "A String", # The maximum experience points for this level. 494 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 495 "minExperiencePoints": "A String", # The minimum experience points for this level. 496 "level": 42, # The level for the user. 497 }, 498 }, 499 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 500 "title": "A String", # The player's title rewarded for their game activities. 501 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 502 }, 503 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 504 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 505 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 506 }, 507 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 508 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 509 }, 510 ], 511 "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 512 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank. 513 "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room. 514 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 515 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 516 "participantId": "A String", # The ID of the participant that modified the room. 517 }, 518 "applicationId": "A String", # The ID of the application being played. 519 "inviterId": "A String", # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room. 520 }</pre> 521</div> 522 523<div class="method"> 524 <code class="details" id="join">join(roomId, body, language=None, consistencyToken=None)</code> 525 <pre>Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported. 526 527Args: 528 roomId: string, The ID of the room. (required) 529 body: object, The request body. (required) 530 The object takes the form of: 531 532{ # This is a JSON template for a join room request. 533 "networkDiagnostics": { # This is a JSON template for network diagnostics reported for a client. # Network diagnostics for the client joining the room. 534 "kind": "games#networkDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#networkDiagnostics. 535 "iosNetworkType": 42, # iOS network type as defined in Reachability.h. 536 "networkOperatorCode": "A String", # The MCC+MNC code for the client's network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html 537 "androidNetworkSubtype": 42, # The Android network subtype. 538 "networkOperatorName": "A String", # The name of the carrier of the client's network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName 539 "registrationLatencyMillis": 42, # The amount of time in milliseconds it took for the client to establish a connection with the XMPP server. 540 "androidNetworkType": 42, # The Android network type. 541 }, 542 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the player joining the room. 543 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 544 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 545 }, 546 "kind": "games#roomJoinRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomJoinRequest. 547 "capabilities": [ # The capabilities that this client supports for realtime communication. 548 "A String", 549 ], 550 } 551 552 language: string, The preferred language to use for strings returned by this method. 553 consistencyToken: string, The last-seen mutation timestamp. 554 555Returns: 556 An object of the form: 557 558 { # This is a JSON template for a room resource object. 559 "status": "A String", # The status of the room. 560 # Possible values are: 561 # - "ROOM_INVITING" - One or more players have been invited and not responded. 562 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 563 # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). 564 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 565 # - "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. 566 "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room. 567 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 568 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 569 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 570 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 571 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 572 }, 573 "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation. 574 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 575 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 576 "participantId": "A String", # The ID of the participant that modified the room. 577 }, 578 "description": "A 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.) 579 "roomId": "A String", # Globally unique ID for a room. 580 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue. 581 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 582 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 583 }, 584 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 585 { # This is a JSON template for a participant in a room. 586 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 587 "status": "A String", # The status of the participant with respect to the room. 588 # Possible values are: 589 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 590 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 591 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 592 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 593 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 594 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 595 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 596 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 597 "displayName": "A String", # The name to display for the anonymous player. 598 }, 599 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 600 # Possible values are: 601 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 602 # - "GAME_LEFT" - The game chose to remove the player from the room. 603 # - "ABANDONED" - The player switched to another application and abandoned the room. 604 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 605 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 606 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 607 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 608 "capabilities": [ # The capabilities which can be used when communicating with this participant. 609 "A String", 610 ], 611 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 612 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 613 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 614 "displayName": "A String", # The name to display for the player. 615 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 616 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 617 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 618 }, 619 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 620 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 621 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 622 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 623 }, 624 "playerId": "A String", # The ID of the player. 625 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 626 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 627 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 628 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 629 }, 630 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 631 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 632 "currentExperiencePoints": "A String", # The current number of experience points for the player. 633 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 634 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 635 "maxExperiencePoints": "A String", # The maximum experience points for this level. 636 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 637 "minExperiencePoints": "A String", # The minimum experience points for this level. 638 "level": 42, # The level for the user. 639 }, 640 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 641 "maxExperiencePoints": "A String", # The maximum experience points for this level. 642 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 643 "minExperiencePoints": "A String", # The minimum experience points for this level. 644 "level": 42, # The level for the user. 645 }, 646 }, 647 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 648 "title": "A String", # The player's title rewarded for their game activities. 649 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 650 }, 651 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 652 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 653 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 654 }, 655 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 656 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 657 }, 658 ], 659 "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 660 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank. 661 "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room. 662 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 663 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 664 "participantId": "A String", # The ID of the participant that modified the room. 665 }, 666 "applicationId": "A String", # The ID of the application being played. 667 "inviterId": "A String", # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room. 668 }</pre> 669</div> 670 671<div class="method"> 672 <code class="details" id="leave">leave(roomId, body, language=None, consistencyToken=None)</code> 673 <pre>Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported. 674 675Args: 676 roomId: string, The ID of the room. (required) 677 body: object, The request body. (required) 678 The object takes the form of: 679 680{ # This is a JSON template for a leave room request. 681 "kind": "games#roomLeaveRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveRequest. 682 "reason": "A String", # Reason for leaving the match. 683 # Possible values are: 684 # - "PLAYER_LEFT" - The player chose to leave the room.. 685 # - "GAME_LEFT" - The game chose to remove the player from the room. 686 # - "REALTIME_ABANDONED" - The player switched to another application and abandoned the room. 687 # - "REALTIME_PEER_CONNECTION_FAILURE" - The client was unable to establish a connection to other peer(s). 688 # - "REALTIME_SERVER_CONNECTION_FAILURE" - The client was unable to communicate with the server. 689 # - "REALTIME_SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 690 # - "REALTIME_TIMEOUT" - The client timed out while waiting for a room. 691 # - "REALTIME_CLIENT_DISCONNECTING" - The client disconnects without first calling Leave. 692 # - "REALTIME_SIGN_OUT" - The user signed out of G+ while in the room. 693 # - "REALTIME_GAME_CRASHED" - The game crashed. 694 # - "REALTIME_ROOM_SERVICE_CRASHED" - RoomAndroidService crashed. 695 # - "REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION" - Another client is trying to enter a room. 696 # - "REALTIME_SAME_CLIENT_ROOM_OPERATION" - The same client is trying to enter a new room. 697 "leaveDiagnostics": { # This is a JSON template for room leave diagnostics. # Diagnostics for a player leaving the room. 698 "kind": "games#roomLeaveDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveDiagnostics. 699 "socketsUsed": True or False, # Whether or not sockets were used. 700 "iosNetworkType": 42, # iOS network type as defined in Reachability.h. 701 "networkOperatorCode": "A String", # The MCC+MNC code for the client's network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html 702 "peerSession": [ # Diagnostics about all peer sessions. 703 { # This is a JSON template for peer session diagnostics. 704 "unreliableChannel": { # This is a JSON template for peer channel diagnostics. # Unreliable channel diagnostics. 705 "bytesReceived": { # This is a JSON template for aggregate stats. # Number of bytes received. 706 "count": "A String", # The number of messages sent between a pair of peers. 707 "max": "A String", # The maximum amount. 708 "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. 709 "sum": "A String", # The total number of bytes sent for messages between a pair of peers. 710 "min": "A String", # The minimum amount. 711 }, 712 "kind": "games#peerChannelDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics. 713 "bytesSent": { # This is a JSON template for aggregate stats. # Number of bytes sent. 714 "count": "A String", # The number of messages sent between a pair of peers. 715 "max": "A String", # The maximum amount. 716 "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. 717 "sum": "A String", # The total number of bytes sent for messages between a pair of peers. 718 "min": "A String", # The minimum amount. 719 }, 720 "numSendFailures": 42, # Number of send failures. 721 "numMessagesLost": 42, # Number of messages lost. 722 "numMessagesReceived": 42, # Number of messages received. 723 "numMessagesSent": 42, # Number of messages sent. 724 "roundtripLatencyMillis": { # This is a JSON template for aggregate stats. # Roundtrip latency stats in milliseconds. 725 "count": "A String", # The number of messages sent between a pair of peers. 726 "max": "A String", # The maximum amount. 727 "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. 728 "sum": "A String", # The total number of bytes sent for messages between a pair of peers. 729 "min": "A String", # The minimum amount. 730 }, 731 }, 732 "kind": "games#peerSessionDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#peerSessionDiagnostics. 733 "reliableChannel": { # This is a JSON template for peer channel diagnostics. # Reliable channel diagnostics. 734 "bytesReceived": { # This is a JSON template for aggregate stats. # Number of bytes received. 735 "count": "A String", # The number of messages sent between a pair of peers. 736 "max": "A String", # The maximum amount. 737 "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. 738 "sum": "A String", # The total number of bytes sent for messages between a pair of peers. 739 "min": "A String", # The minimum amount. 740 }, 741 "kind": "games#peerChannelDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics. 742 "bytesSent": { # This is a JSON template for aggregate stats. # Number of bytes sent. 743 "count": "A String", # The number of messages sent between a pair of peers. 744 "max": "A String", # The maximum amount. 745 "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. 746 "sum": "A String", # The total number of bytes sent for messages between a pair of peers. 747 "min": "A String", # The minimum amount. 748 }, 749 "numSendFailures": 42, # Number of send failures. 750 "numMessagesLost": 42, # Number of messages lost. 751 "numMessagesReceived": 42, # Number of messages received. 752 "numMessagesSent": 42, # Number of messages sent. 753 "roundtripLatencyMillis": { # This is a JSON template for aggregate stats. # Roundtrip latency stats in milliseconds. 754 "count": "A String", # The number of messages sent between a pair of peers. 755 "max": "A String", # The maximum amount. 756 "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. 757 "sum": "A String", # The total number of bytes sent for messages between a pair of peers. 758 "min": "A String", # The minimum amount. 759 }, 760 }, 761 "connectedTimestampMillis": "A String", # Connected time in milliseconds. 762 "participantId": "A String", # The participant ID of the peer. 763 }, 764 ], 765 "androidNetworkSubtype": 42, # Android network subtype. http://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype() 766 "networkOperatorName": "A String", # The name of the carrier of the client's network connection. On Android: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName 767 "androidNetworkType": 42, # Android network type. http://developer.android.com/reference/android/net/NetworkInfo.html#getType() 768 }, 769 } 770 771 language: string, The preferred language to use for strings returned by this method. 772 consistencyToken: string, The last-seen mutation timestamp. 773 774Returns: 775 An object of the form: 776 777 { # This is a JSON template for a room resource object. 778 "status": "A String", # The status of the room. 779 # Possible values are: 780 # - "ROOM_INVITING" - One or more players have been invited and not responded. 781 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 782 # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). 783 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 784 # - "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. 785 "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room. 786 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 787 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 788 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 789 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 790 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 791 }, 792 "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation. 793 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 794 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 795 "participantId": "A String", # The ID of the participant that modified the room. 796 }, 797 "description": "A 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.) 798 "roomId": "A String", # Globally unique ID for a room. 799 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue. 800 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 801 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 802 }, 803 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 804 { # This is a JSON template for a participant in a room. 805 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 806 "status": "A String", # The status of the participant with respect to the room. 807 # Possible values are: 808 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 809 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 810 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 811 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 812 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 813 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 814 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 815 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 816 "displayName": "A String", # The name to display for the anonymous player. 817 }, 818 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 819 # Possible values are: 820 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 821 # - "GAME_LEFT" - The game chose to remove the player from the room. 822 # - "ABANDONED" - The player switched to another application and abandoned the room. 823 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 824 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 825 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 826 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 827 "capabilities": [ # The capabilities which can be used when communicating with this participant. 828 "A String", 829 ], 830 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 831 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 832 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 833 "displayName": "A String", # The name to display for the player. 834 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 835 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 836 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 837 }, 838 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 839 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 840 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 841 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 842 }, 843 "playerId": "A String", # The ID of the player. 844 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 845 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 846 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 847 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 848 }, 849 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 850 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 851 "currentExperiencePoints": "A String", # The current number of experience points for the player. 852 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 853 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 854 "maxExperiencePoints": "A String", # The maximum experience points for this level. 855 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 856 "minExperiencePoints": "A String", # The minimum experience points for this level. 857 "level": 42, # The level for the user. 858 }, 859 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 860 "maxExperiencePoints": "A String", # The maximum experience points for this level. 861 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 862 "minExperiencePoints": "A String", # The minimum experience points for this level. 863 "level": 42, # The level for the user. 864 }, 865 }, 866 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 867 "title": "A String", # The player's title rewarded for their game activities. 868 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 869 }, 870 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 871 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 872 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 873 }, 874 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 875 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 876 }, 877 ], 878 "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 879 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank. 880 "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room. 881 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 882 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 883 "participantId": "A String", # The ID of the participant that modified the room. 884 }, 885 "applicationId": "A String", # The ID of the application being played. 886 "inviterId": "A String", # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room. 887 }</pre> 888</div> 889 890<div class="method"> 891 <code class="details" id="list">list(pageToken=None, language=None, maxResults=None, consistencyToken=None)</code> 892 <pre>Returns invitations to join rooms. 893 894Args: 895 pageToken: string, The token returned by the previous request. 896 language: string, The preferred language to use for strings returned by this method. 897 maxResults: integer, The maximum number of rooms to return in the response, used for paging. For any response, the actual number of rooms to return may be less than the specified maxResults. 898 consistencyToken: string, The last-seen mutation timestamp. 899 900Returns: 901 An object of the form: 902 903 { # This is a JSON template for a list of rooms. 904 "nextPageToken": "A String", # The pagination token for the next page of results. 905 "items": [ # The rooms. 906 { # This is a JSON template for a room resource object. 907 "status": "A String", # The status of the room. 908 # Possible values are: 909 # - "ROOM_INVITING" - One or more players have been invited and not responded. 910 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 911 # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). 912 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 913 # - "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. 914 "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room. 915 "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room. 916 "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. 917 "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching. 918 "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. 919 "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching. 920 }, 921 "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation. 922 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 923 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 924 "participantId": "A String", # The ID of the participant that modified the room. 925 }, 926 "description": "A 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.) 927 "roomId": "A String", # Globally unique ID for a room. 928 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue. 929 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 930 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 931 }, 932 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 933 { # This is a JSON template for a participant in a room. 934 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 935 "status": "A String", # The status of the participant with respect to the room. 936 # Possible values are: 937 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 938 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 939 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 940 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 941 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 942 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 943 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 944 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 945 "displayName": "A String", # The name to display for the anonymous player. 946 }, 947 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 948 # Possible values are: 949 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 950 # - "GAME_LEFT" - The game chose to remove the player from the room. 951 # - "ABANDONED" - The player switched to another application and abandoned the room. 952 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 953 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 954 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 955 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 956 "capabilities": [ # The capabilities which can be used when communicating with this participant. 957 "A String", 958 ], 959 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 960 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 961 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 962 "displayName": "A String", # The name to display for the player. 963 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 964 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 965 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 966 }, 967 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 968 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 969 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 970 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 971 }, 972 "playerId": "A String", # The ID of the player. 973 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 974 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 975 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 976 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 977 }, 978 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 979 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 980 "currentExperiencePoints": "A String", # The current number of experience points for the player. 981 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 982 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 983 "maxExperiencePoints": "A String", # The maximum experience points for this level. 984 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 985 "minExperiencePoints": "A String", # The minimum experience points for this level. 986 "level": 42, # The level for the user. 987 }, 988 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 989 "maxExperiencePoints": "A String", # The maximum experience points for this level. 990 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 991 "minExperiencePoints": "A String", # The minimum experience points for this level. 992 "level": 42, # The level for the user. 993 }, 994 }, 995 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 996 "title": "A String", # The player's title rewarded for their game activities. 997 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 998 }, 999 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 1000 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 1001 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 1002 }, 1003 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 1004 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 1005 }, 1006 ], 1007 "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status. 1008 "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank. 1009 "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room. 1010 "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification. 1011 "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC. 1012 "participantId": "A String", # The ID of the participant that modified the room. 1013 }, 1014 "applicationId": "A String", # The ID of the application being played. 1015 "inviterId": "A String", # The ID of the participant that invited the user to the room. Not set if the user was not invited to the room. 1016 }, 1017 ], 1018 "kind": "games#roomList", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomList. 1019 }</pre> 1020</div> 1021 1022<div class="method"> 1023 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 1024 <pre>Retrieves the next page of results. 1025 1026Args: 1027 previous_request: The request for the previous page. (required) 1028 previous_response: The response from the request for the previous page. (required) 1029 1030Returns: 1031 A request object that you can call 'execute()' on to request the next 1032 page. Returns None if there are no more items in the collection. 1033 </pre> 1034</div> 1035 1036<div class="method"> 1037 <code class="details" id="reportStatus">reportStatus(roomId, body, language=None, consistencyToken=None)</code> 1038 <pre>Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported. 1039 1040Args: 1041 roomId: string, The ID of the room. (required) 1042 body: object, The request body. (required) 1043 The object takes the form of: 1044 1045{ # This is a JSON template for an update on the status of peers in a room. 1046 "kind": "games#roomP2PStatuses", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatuses. 1047 "updates": [ # The updates for the peers. 1048 { # This is a JSON template for an update on the status of a peer in a room. 1049 "status": "A String", # The status of the peer in the room. 1050 # Possible values are: 1051 # - "CONNECTION_ESTABLISHED" - The client established a P2P connection with the peer. 1052 # - "CONNECTION_FAILED" - The client failed to establish directed presence with the peer. 1053 "kind": "games#roomP2PStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatus. 1054 "participantId": "A String", # The ID of the participant. 1055 "unreliableRoundtripLatencyMillis": 42, # The amount of time in milliseconds it took to send packets back and forth on the unreliable channel with this peer. 1056 "connectionSetupLatencyMillis": 42, # The amount of time in milliseconds it took to establish connections with this peer. 1057 "error": "A String", # The error code in event of a failure. 1058 # Possible values are: 1059 # - "P2P_FAILED" - The client failed to establish a P2P connection with the peer. 1060 # - "PRESENCE_FAILED" - The client failed to register to receive P2P connections. 1061 # - "RELAY_SERVER_FAILED" - The client received an error when trying to use the relay server to establish a P2P connection with the peer. 1062 "error_reason": "A String", # More detailed diagnostic message returned in event of a failure. 1063 }, 1064 ], 1065 } 1066 1067 language: string, The preferred language to use for strings returned by this method. 1068 consistencyToken: string, The last-seen mutation timestamp. 1069 1070Returns: 1071 An object of the form: 1072 1073 { # This is a JSON template for the status of a room that the player has joined. 1074 "status": "A String", # The status of the room. 1075 # Possible values are: 1076 # - "ROOM_INVITING" - One or more players have been invited and not responded. 1077 # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. 1078 # - "ROOM_CONNECTING" - Players have joined are connecting to each other (either before or after auto-matching). 1079 # - "ROOM_ACTIVE" - All players have joined and connected to each other. 1080 # - "ROOM_DELETED" - All joined players have left. 1081 "kind": "games#roomStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomStatus. 1082 "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching queue. 1083 "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus. 1084 "waitEstimateSeconds": 42, # An estimate for the amount of time (in seconds) that auto-matching is expected to take to complete. 1085 }, 1086 "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations. 1087 { # This is a JSON template for a participant in a room. 1088 "autoMatched": True or False, # True if this participant was auto-matched with the requesting player. 1089 "status": "A String", # The status of the participant with respect to the room. 1090 # Possible values are: 1091 # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded. 1092 # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.) 1093 # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room. 1094 # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. 1095 "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant. 1096 "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 1097 "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer. 1098 "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player. 1099 "displayName": "A String", # The name to display for the anonymous player. 1100 }, 1101 "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. 1102 # Possible values are: 1103 # - "PLAYER_LEFT" - The player explicitly chose to leave the room. 1104 # - "GAME_LEFT" - The game chose to remove the player from the room. 1105 # - "ABANDONED" - The player switched to another application and abandoned the room. 1106 # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room. 1107 # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server. 1108 # - "TIMEOUT" - The client timed out while waiting for players to join and connect. 1109 # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. 1110 "capabilities": [ # The capabilities which can be used when communicating with this participant. 1111 "A String", 1112 ], 1113 "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.) 1114 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 1115 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 1116 "displayName": "A String", # The name to display for the player. 1117 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 1118 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 1119 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 1120 }, 1121 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 1122 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 1123 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 1124 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 1125 }, 1126 "playerId": "A String", # The ID of the player. 1127 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 1128 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 1129 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 1130 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 1131 }, 1132 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 1133 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 1134 "currentExperiencePoints": "A String", # The current number of experience points for the player. 1135 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 1136 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 1137 "maxExperiencePoints": "A String", # The maximum experience points for this level. 1138 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 1139 "minExperiencePoints": "A String", # The minimum experience points for this level. 1140 "level": 42, # The level for the user. 1141 }, 1142 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 1143 "maxExperiencePoints": "A String", # The maximum experience points for this level. 1144 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 1145 "minExperiencePoints": "A String", # The minimum experience points for this level. 1146 "level": 42, # The level for the user. 1147 }, 1148 }, 1149 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 1150 "title": "A String", # The player's title rewarded for their game activities. 1151 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 1152 }, 1153 "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant. 1154 "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress. 1155 "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network. 1156 }, 1157 "connected": True or False, # True if this participant is in the fully connected set of peers in the room. 1158 "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts. 1159 }, 1160 ], 1161 "statusVersion": 42, # The version of the status for the room: an increasing counter, used by the client to ignore out-of-order updates to room status. 1162 "roomId": "A String", # Globally unique ID for a room. 1163 }</pre> 1164</div> 1165 1166</body></html>