| 1 |
<?php |
| 2 |
/* |
| 3 |
* Copyright 2010 Google Inc. |
| 4 |
* |
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 |
* use this file except in compliance with the License. You may obtain a copy of |
| 7 |
* the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 |
* License for the specific language governing permissions and limitations under |
| 15 |
* the License. |
| 16 |
*/ |
| 17 |
|
| 18 |
/** |
| 19 |
* Service definition for GamesManagement (v1management). |
| 20 |
* |
| 21 |
* <p> |
| 22 |
* The Management API for Google Play Game Services. |
| 23 |
* </p> |
| 24 |
* |
| 25 |
* <p> |
| 26 |
* For more information about this service, see the API |
| 27 |
* <a href="https://developers.google.com/games/services" target="_blank">Documentation</a> |
| 28 |
* </p> |
| 29 |
* |
| 30 |
* @author Google, Inc. |
| 31 |
*/ |
| 32 |
class Analytify_Google_Service_GamesManagement extends Analytify_Google_Service |
| 33 |
{ |
| 34 |
/** Share your Google+ profile information and view and manage your game activity. */ |
| 35 |
const GAMES = "https://www.googleapis.com/auth/games"; |
| 36 |
/** Know your basic profile info and list of people in your circles.. */ |
| 37 |
const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; |
| 38 |
|
| 39 |
public $achievements; |
| 40 |
public $applications; |
| 41 |
public $events; |
| 42 |
public $players; |
| 43 |
public $quests; |
| 44 |
public $rooms; |
| 45 |
public $scores; |
| 46 |
public $turnBasedMatches; |
| 47 |
|
| 48 |
|
| 49 |
/** |
| 50 |
* Constructs the internal representation of the GamesManagement service. |
| 51 |
* |
| 52 |
* @param Analytify_Google_Client $client |
| 53 |
*/ |
| 54 |
public function __construct(Analytify_Google_Client $client) |
| 55 |
{ |
| 56 |
parent::__construct($client); |
| 57 |
$this->servicePath = 'games/v1management/'; |
| 58 |
$this->version = 'v1management'; |
| 59 |
$this->serviceName = 'gamesManagement'; |
| 60 |
|
| 61 |
$this->achievements = new Analytify_Google_Service_GamesManagement_Achievements_Resource( |
| 62 |
$this, |
| 63 |
$this->serviceName, |
| 64 |
'achievements', |
| 65 |
array( |
| 66 |
'methods' => array( |
| 67 |
'reset' => array( |
| 68 |
'path' => 'achievements/{achievementId}/reset', |
| 69 |
'httpMethod' => 'POST', |
| 70 |
'parameters' => array( |
| 71 |
'achievementId' => array( |
| 72 |
'location' => 'path', |
| 73 |
'type' => 'string', |
| 74 |
'required' => true, |
| 75 |
), |
| 76 |
), |
| 77 |
),'resetAll' => array( |
| 78 |
'path' => 'achievements/reset', |
| 79 |
'httpMethod' => 'POST', |
| 80 |
'parameters' => array(), |
| 81 |
),'resetForAllPlayers' => array( |
| 82 |
'path' => 'achievements/{achievementId}/resetForAllPlayers', |
| 83 |
'httpMethod' => 'POST', |
| 84 |
'parameters' => array( |
| 85 |
'achievementId' => array( |
| 86 |
'location' => 'path', |
| 87 |
'type' => 'string', |
| 88 |
'required' => true, |
| 89 |
), |
| 90 |
), |
| 91 |
), |
| 92 |
) |
| 93 |
) |
| 94 |
); |
| 95 |
$this->applications = new Analytify_Google_Service_GamesManagement_Applications_Resource( |
| 96 |
$this, |
| 97 |
$this->serviceName, |
| 98 |
'applications', |
| 99 |
array( |
| 100 |
'methods' => array( |
| 101 |
'listHidden' => array( |
| 102 |
'path' => 'applications/{applicationId}/players/hidden', |
| 103 |
'httpMethod' => 'GET', |
| 104 |
'parameters' => array( |
| 105 |
'applicationId' => array( |
| 106 |
'location' => 'path', |
| 107 |
'type' => 'string', |
| 108 |
'required' => true, |
| 109 |
), |
| 110 |
'pageToken' => array( |
| 111 |
'location' => 'query', |
| 112 |
'type' => 'string', |
| 113 |
), |
| 114 |
'maxResults' => array( |
| 115 |
'location' => 'query', |
| 116 |
'type' => 'integer', |
| 117 |
), |
| 118 |
), |
| 119 |
), |
| 120 |
) |
| 121 |
) |
| 122 |
); |
| 123 |
$this->events = new Analytify_Google_Service_GamesManagement_Events_Resource( |
| 124 |
$this, |
| 125 |
$this->serviceName, |
| 126 |
'events', |
| 127 |
array( |
| 128 |
'methods' => array( |
| 129 |
'reset' => array( |
| 130 |
'path' => 'events/{eventId}/reset', |
| 131 |
'httpMethod' => 'POST', |
| 132 |
'parameters' => array( |
| 133 |
'eventId' => array( |
| 134 |
'location' => 'path', |
| 135 |
'type' => 'string', |
| 136 |
'required' => true, |
| 137 |
), |
| 138 |
), |
| 139 |
),'resetAll' => array( |
| 140 |
'path' => 'events/reset', |
| 141 |
'httpMethod' => 'POST', |
| 142 |
'parameters' => array(), |
| 143 |
),'resetForAllPlayers' => array( |
| 144 |
'path' => 'events/{eventId}/resetForAllPlayers', |
| 145 |
'httpMethod' => 'POST', |
| 146 |
'parameters' => array( |
| 147 |
'eventId' => array( |
| 148 |
'location' => 'path', |
| 149 |
'type' => 'string', |
| 150 |
'required' => true, |
| 151 |
), |
| 152 |
), |
| 153 |
), |
| 154 |
) |
| 155 |
) |
| 156 |
); |
| 157 |
$this->players = new Analytify_Google_Service_GamesManagement_Players_Resource( |
| 158 |
$this, |
| 159 |
$this->serviceName, |
| 160 |
'players', |
| 161 |
array( |
| 162 |
'methods' => array( |
| 163 |
'hide' => array( |
| 164 |
'path' => 'applications/{applicationId}/players/hidden/{playerId}', |
| 165 |
'httpMethod' => 'POST', |
| 166 |
'parameters' => array( |
| 167 |
'applicationId' => array( |
| 168 |
'location' => 'path', |
| 169 |
'type' => 'string', |
| 170 |
'required' => true, |
| 171 |
), |
| 172 |
'playerId' => array( |
| 173 |
'location' => 'path', |
| 174 |
'type' => 'string', |
| 175 |
'required' => true, |
| 176 |
), |
| 177 |
), |
| 178 |
),'unhide' => array( |
| 179 |
'path' => 'applications/{applicationId}/players/hidden/{playerId}', |
| 180 |
'httpMethod' => 'DELETE', |
| 181 |
'parameters' => array( |
| 182 |
'applicationId' => array( |
| 183 |
'location' => 'path', |
| 184 |
'type' => 'string', |
| 185 |
'required' => true, |
| 186 |
), |
| 187 |
'playerId' => array( |
| 188 |
'location' => 'path', |
| 189 |
'type' => 'string', |
| 190 |
'required' => true, |
| 191 |
), |
| 192 |
), |
| 193 |
), |
| 194 |
) |
| 195 |
) |
| 196 |
); |
| 197 |
$this->quests = new Analytify_Google_Service_GamesManagement_Quests_Resource( |
| 198 |
$this, |
| 199 |
$this->serviceName, |
| 200 |
'quests', |
| 201 |
array( |
| 202 |
'methods' => array( |
| 203 |
'reset' => array( |
| 204 |
'path' => 'quests/{questId}/reset', |
| 205 |
'httpMethod' => 'POST', |
| 206 |
'parameters' => array( |
| 207 |
'questId' => array( |
| 208 |
'location' => 'path', |
| 209 |
'type' => 'string', |
| 210 |
'required' => true, |
| 211 |
), |
| 212 |
), |
| 213 |
), |
| 214 |
) |
| 215 |
) |
| 216 |
); |
| 217 |
$this->rooms = new Analytify_Google_Service_GamesManagement_Rooms_Resource( |
| 218 |
$this, |
| 219 |
$this->serviceName, |
| 220 |
'rooms', |
| 221 |
array( |
| 222 |
'methods' => array( |
| 223 |
'reset' => array( |
| 224 |
'path' => 'rooms/reset', |
| 225 |
'httpMethod' => 'POST', |
| 226 |
'parameters' => array(), |
| 227 |
), |
| 228 |
) |
| 229 |
) |
| 230 |
); |
| 231 |
$this->scores = new Analytify_Google_Service_GamesManagement_Scores_Resource( |
| 232 |
$this, |
| 233 |
$this->serviceName, |
| 234 |
'scores', |
| 235 |
array( |
| 236 |
'methods' => array( |
| 237 |
'reset' => array( |
| 238 |
'path' => 'leaderboards/{leaderboardId}/scores/reset', |
| 239 |
'httpMethod' => 'POST', |
| 240 |
'parameters' => array( |
| 241 |
'leaderboardId' => array( |
| 242 |
'location' => 'path', |
| 243 |
'type' => 'string', |
| 244 |
'required' => true, |
| 245 |
), |
| 246 |
), |
| 247 |
),'resetForAllPlayers' => array( |
| 248 |
'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', |
| 249 |
'httpMethod' => 'POST', |
| 250 |
'parameters' => array( |
| 251 |
'leaderboardId' => array( |
| 252 |
'location' => 'path', |
| 253 |
'type' => 'string', |
| 254 |
'required' => true, |
| 255 |
), |
| 256 |
), |
| 257 |
), |
| 258 |
) |
| 259 |
) |
| 260 |
); |
| 261 |
$this->turnBasedMatches = new Analytify_Google_Service_GamesManagement_TurnBasedMatches_Resource( |
| 262 |
$this, |
| 263 |
$this->serviceName, |
| 264 |
'turnBasedMatches', |
| 265 |
array( |
| 266 |
'methods' => array( |
| 267 |
'reset' => array( |
| 268 |
'path' => 'turnbasedmatches/reset', |
| 269 |
'httpMethod' => 'POST', |
| 270 |
'parameters' => array(), |
| 271 |
), |
| 272 |
) |
| 273 |
) |
| 274 |
); |
| 275 |
} |
| 276 |
} |
| 277 |
|
| 278 |
|
| 279 |
/** |
| 280 |
* The "achievements" collection of methods. |
| 281 |
* Typical usage is: |
| 282 |
* <code> |
| 283 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 284 |
* $achievements = $gamesManagementService->achievements; |
| 285 |
* </code> |
| 286 |
*/ |
| 287 |
class Analytify_Google_Service_GamesManagement_Achievements_Resource extends Analytify_Google_Service_Resource |
| 288 |
{ |
| 289 |
|
| 290 |
/** |
| 291 |
* Resets the achievement with the given ID for the currently authenticated |
| 292 |
* player. This method is only accessible to whitelisted tester accounts for |
| 293 |
* your application. (achievements.reset) |
| 294 |
* |
| 295 |
* @param string $achievementId |
| 296 |
* The ID of the achievement used by this method. |
| 297 |
* @param array $optParams Optional parameters. |
| 298 |
* @return Analytify_Google_Service_GamesManagement_AchievementResetResponse |
| 299 |
*/ |
| 300 |
public function reset($achievementId, $optParams = array()) |
| 301 |
{ |
| 302 |
$params = array('achievementId' => $achievementId); |
| 303 |
$params = array_merge($params, $optParams); |
| 304 |
return $this->call('reset', array($params), "Analytify_Google_Service_GamesManagement_AchievementResetResponse"); |
| 305 |
} |
| 306 |
/** |
| 307 |
* Resets all achievements for the currently authenticated player for your |
| 308 |
* application. This method is only accessible to whitelisted tester accounts |
| 309 |
* for your application. (achievements.resetAll) |
| 310 |
* |
| 311 |
* @param array $optParams Optional parameters. |
| 312 |
* @return Analytify_Google_Service_GamesManagement_AchievementResetAllResponse |
| 313 |
*/ |
| 314 |
public function resetAll($optParams = array()) |
| 315 |
{ |
| 316 |
$params = array(); |
| 317 |
$params = array_merge($params, $optParams); |
| 318 |
return $this->call('resetAll', array($params), "Analytify_Google_Service_GamesManagement_AchievementResetAllResponse"); |
| 319 |
} |
| 320 |
/** |
| 321 |
* Resets the achievement with the given ID for the all players. This method is |
| 322 |
* only available to user accounts for your developer console. Only draft |
| 323 |
* achievements can be reset. (achievements.resetForAllPlayers) |
| 324 |
* |
| 325 |
* @param string $achievementId |
| 326 |
* The ID of the achievement used by this method. |
| 327 |
* @param array $optParams Optional parameters. |
| 328 |
*/ |
| 329 |
public function resetForAllPlayers($achievementId, $optParams = array()) |
| 330 |
{ |
| 331 |
$params = array('achievementId' => $achievementId); |
| 332 |
$params = array_merge($params, $optParams); |
| 333 |
return $this->call('resetForAllPlayers', array($params)); |
| 334 |
} |
| 335 |
} |
| 336 |
|
| 337 |
/** |
| 338 |
* The "applications" collection of methods. |
| 339 |
* Typical usage is: |
| 340 |
* <code> |
| 341 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 342 |
* $applications = $gamesManagementService->applications; |
| 343 |
* </code> |
| 344 |
*/ |
| 345 |
class Analytify_Google_Service_GamesManagement_Applications_Resource extends Analytify_Google_Service_Resource |
| 346 |
{ |
| 347 |
|
| 348 |
/** |
| 349 |
* Get the list of players hidden from the given application. This method is |
| 350 |
* only available to user accounts for your developer console. |
| 351 |
* (applications.listHidden) |
| 352 |
* |
| 353 |
* @param string $applicationId |
| 354 |
* The application being requested. |
| 355 |
* @param array $optParams Optional parameters. |
| 356 |
* |
| 357 |
* @opt_param string pageToken |
| 358 |
* The token returned by the previous request. |
| 359 |
* @opt_param int maxResults |
| 360 |
* The maximum number of player resources to return in the response, used for paging. For any |
| 361 |
* response, the actual number of player resources returned may be less than the specified |
| 362 |
* maxResults. |
| 363 |
* @return Analytify_Google_Service_GamesManagement_HiddenPlayerList |
| 364 |
*/ |
| 365 |
public function listHidden($applicationId, $optParams = array()) |
| 366 |
{ |
| 367 |
$params = array('applicationId' => $applicationId); |
| 368 |
$params = array_merge($params, $optParams); |
| 369 |
return $this->call('listHidden', array($params), "Analytify_Google_Service_GamesManagement_HiddenPlayerList"); |
| 370 |
} |
| 371 |
} |
| 372 |
|
| 373 |
/** |
| 374 |
* The "events" collection of methods. |
| 375 |
* Typical usage is: |
| 376 |
* <code> |
| 377 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 378 |
* $events = $gamesManagementService->events; |
| 379 |
* </code> |
| 380 |
*/ |
| 381 |
class Analytify_Google_Service_GamesManagement_Events_Resource extends Analytify_Google_Service_Resource |
| 382 |
{ |
| 383 |
|
| 384 |
/** |
| 385 |
* Reset all player progress on the event for the currently authenticated |
| 386 |
* player. This method is only accessible to whitelisted tester accounts for |
| 387 |
* your application. All resources that use the event will also be reset. |
| 388 |
* (events.reset) |
| 389 |
* |
| 390 |
* @param string $eventId |
| 391 |
* The ID of the event. |
| 392 |
* @param array $optParams Optional parameters. |
| 393 |
*/ |
| 394 |
public function reset($eventId, $optParams = array()) |
| 395 |
{ |
| 396 |
$params = array('eventId' => $eventId); |
| 397 |
$params = array_merge($params, $optParams); |
| 398 |
return $this->call('reset', array($params)); |
| 399 |
} |
| 400 |
/** |
| 401 |
* Reset all player progress on all unpublished events for the currently |
| 402 |
* authenticated player. This method is only accessible to whitelisted tester |
| 403 |
* accounts for your application. All resources that use the events will also be |
| 404 |
* reset. (events.resetAll) |
| 405 |
* |
| 406 |
* @param array $optParams Optional parameters. |
| 407 |
*/ |
| 408 |
public function resetAll($optParams = array()) |
| 409 |
{ |
| 410 |
$params = array(); |
| 411 |
$params = array_merge($params, $optParams); |
| 412 |
return $this->call('resetAll', array($params)); |
| 413 |
} |
| 414 |
/** |
| 415 |
* Reset all player progress on the event for all players. This method is only |
| 416 |
* available to user accounts for your developer console. Only draft events can |
| 417 |
* be reset. All resources that use the event will also be reset. |
| 418 |
* (events.resetForAllPlayers) |
| 419 |
* |
| 420 |
* @param string $eventId |
| 421 |
* The ID of the event. |
| 422 |
* @param array $optParams Optional parameters. |
| 423 |
*/ |
| 424 |
public function resetForAllPlayers($eventId, $optParams = array()) |
| 425 |
{ |
| 426 |
$params = array('eventId' => $eventId); |
| 427 |
$params = array_merge($params, $optParams); |
| 428 |
return $this->call('resetForAllPlayers', array($params)); |
| 429 |
} |
| 430 |
} |
| 431 |
|
| 432 |
/** |
| 433 |
* The "players" collection of methods. |
| 434 |
* Typical usage is: |
| 435 |
* <code> |
| 436 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 437 |
* $players = $gamesManagementService->players; |
| 438 |
* </code> |
| 439 |
*/ |
| 440 |
class Analytify_Google_Service_GamesManagement_Players_Resource extends Analytify_Google_Service_Resource |
| 441 |
{ |
| 442 |
|
| 443 |
/** |
| 444 |
* Hide the given player's leaderboard scores from the given application. This |
| 445 |
* method is only available to user accounts for your developer console. |
| 446 |
* (players.hide) |
| 447 |
* |
| 448 |
* @param string $applicationId |
| 449 |
* The application being requested. |
| 450 |
* @param string $playerId |
| 451 |
* A player ID. A value of me may be used in place of the authenticated player's ID. |
| 452 |
* @param array $optParams Optional parameters. |
| 453 |
*/ |
| 454 |
public function hide($applicationId, $playerId, $optParams = array()) |
| 455 |
{ |
| 456 |
$params = array('applicationId' => $applicationId, 'playerId' => $playerId); |
| 457 |
$params = array_merge($params, $optParams); |
| 458 |
return $this->call('hide', array($params)); |
| 459 |
} |
| 460 |
/** |
| 461 |
* Unhide the given player's leaderboard scores from the given application. This |
| 462 |
* method is only available to user accounts for your developer console. |
| 463 |
* (players.unhide) |
| 464 |
* |
| 465 |
* @param string $applicationId |
| 466 |
* The application being requested. |
| 467 |
* @param string $playerId |
| 468 |
* A player ID. A value of me may be used in place of the authenticated player's ID. |
| 469 |
* @param array $optParams Optional parameters. |
| 470 |
*/ |
| 471 |
public function unhide($applicationId, $playerId, $optParams = array()) |
| 472 |
{ |
| 473 |
$params = array('applicationId' => $applicationId, 'playerId' => $playerId); |
| 474 |
$params = array_merge($params, $optParams); |
| 475 |
return $this->call('unhide', array($params)); |
| 476 |
} |
| 477 |
} |
| 478 |
|
| 479 |
/** |
| 480 |
* The "quests" collection of methods. |
| 481 |
* Typical usage is: |
| 482 |
* <code> |
| 483 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 484 |
* $quests = $gamesManagementService->quests; |
| 485 |
* </code> |
| 486 |
*/ |
| 487 |
class Analytify_Google_Service_GamesManagement_Quests_Resource extends Analytify_Google_Service_Resource |
| 488 |
{ |
| 489 |
|
| 490 |
/** |
| 491 |
* Reset all player progress on the quest for the currently authenticated |
| 492 |
* player. This method is only accessible to whitelisted tester accounts for |
| 493 |
* your application. (quests.reset) |
| 494 |
* |
| 495 |
* @param string $questId |
| 496 |
* The ID of the quest. |
| 497 |
* @param array $optParams Optional parameters. |
| 498 |
*/ |
| 499 |
public function reset($questId, $optParams = array()) |
| 500 |
{ |
| 501 |
$params = array('questId' => $questId); |
| 502 |
$params = array_merge($params, $optParams); |
| 503 |
return $this->call('reset', array($params)); |
| 504 |
} |
| 505 |
} |
| 506 |
|
| 507 |
/** |
| 508 |
* The "rooms" collection of methods. |
| 509 |
* Typical usage is: |
| 510 |
* <code> |
| 511 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 512 |
* $rooms = $gamesManagementService->rooms; |
| 513 |
* </code> |
| 514 |
*/ |
| 515 |
class Analytify_Google_Service_GamesManagement_Rooms_Resource extends Analytify_Google_Service_Resource |
| 516 |
{ |
| 517 |
|
| 518 |
/** |
| 519 |
* Reset all rooms for the currently authenticated player for your application. |
| 520 |
* This method is only accessible to whitelisted tester accounts for your |
| 521 |
* application. (rooms.reset) |
| 522 |
* |
| 523 |
* @param array $optParams Optional parameters. |
| 524 |
*/ |
| 525 |
public function reset($optParams = array()) |
| 526 |
{ |
| 527 |
$params = array(); |
| 528 |
$params = array_merge($params, $optParams); |
| 529 |
return $this->call('reset', array($params)); |
| 530 |
} |
| 531 |
} |
| 532 |
|
| 533 |
/** |
| 534 |
* The "scores" collection of methods. |
| 535 |
* Typical usage is: |
| 536 |
* <code> |
| 537 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 538 |
* $scores = $gamesManagementService->scores; |
| 539 |
* </code> |
| 540 |
*/ |
| 541 |
class Analytify_Google_Service_GamesManagement_Scores_Resource extends Analytify_Google_Service_Resource |
| 542 |
{ |
| 543 |
|
| 544 |
/** |
| 545 |
* Reset scores for the specified leaderboard for the currently authenticated |
| 546 |
* player. This method is only accessible to whitelisted tester accounts for |
| 547 |
* your application. (scores.reset) |
| 548 |
* |
| 549 |
* @param string $leaderboardId |
| 550 |
* The ID of the leaderboard. |
| 551 |
* @param array $optParams Optional parameters. |
| 552 |
* @return Analytify_Google_Service_GamesManagement_PlayerScoreResetResponse |
| 553 |
*/ |
| 554 |
public function reset($leaderboardId, $optParams = array()) |
| 555 |
{ |
| 556 |
$params = array('leaderboardId' => $leaderboardId); |
| 557 |
$params = array_merge($params, $optParams); |
| 558 |
return $this->call('reset', array($params), "Analytify_Google_Service_GamesManagement_PlayerScoreResetResponse"); |
| 559 |
} |
| 560 |
/** |
| 561 |
* Reset scores for the specified leaderboard for all players. This method is |
| 562 |
* only available to user accounts for your developer console. Only draft |
| 563 |
* leaderboards can be reset. (scores.resetForAllPlayers) |
| 564 |
* |
| 565 |
* @param string $leaderboardId |
| 566 |
* The ID of the leaderboard. |
| 567 |
* @param array $optParams Optional parameters. |
| 568 |
*/ |
| 569 |
public function resetForAllPlayers($leaderboardId, $optParams = array()) |
| 570 |
{ |
| 571 |
$params = array('leaderboardId' => $leaderboardId); |
| 572 |
$params = array_merge($params, $optParams); |
| 573 |
return $this->call('resetForAllPlayers', array($params)); |
| 574 |
} |
| 575 |
} |
| 576 |
|
| 577 |
/** |
| 578 |
* The "turnBasedMatches" collection of methods. |
| 579 |
* Typical usage is: |
| 580 |
* <code> |
| 581 |
* $gamesManagementService = new Analytify_Google_Service_GamesManagement(...); |
| 582 |
* $turnBasedMatches = $gamesManagementService->turnBasedMatches; |
| 583 |
* </code> |
| 584 |
*/ |
| 585 |
class Analytify_Google_Service_GamesManagement_TurnBasedMatches_Resource extends Analytify_Google_Service_Resource |
| 586 |
{ |
| 587 |
|
| 588 |
/** |
| 589 |
* Reset all turn-based match data for a user. This method is only accessible to |
| 590 |
* whitelisted tester accounts for your application. (turnBasedMatches.reset) |
| 591 |
* |
| 592 |
* @param array $optParams Optional parameters. |
| 593 |
*/ |
| 594 |
public function reset($optParams = array()) |
| 595 |
{ |
| 596 |
$params = array(); |
| 597 |
$params = array_merge($params, $optParams); |
| 598 |
return $this->call('reset', array($params)); |
| 599 |
} |
| 600 |
} |
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
|
| 605 |
class Analytify_Google_Service_GamesManagement_AchievementResetAllResponse extends Analytify_Google_Collection |
| 606 |
{ |
| 607 |
public $kind; |
| 608 |
protected $resultsType = 'Analytify_Google_Service_GamesManagement_AchievementResetResponse'; |
| 609 |
protected $resultsDataType = 'array'; |
| 610 |
|
| 611 |
public function setKind($kind) |
| 612 |
{ |
| 613 |
$this->kind = $kind; |
| 614 |
} |
| 615 |
|
| 616 |
public function getKind() |
| 617 |
{ |
| 618 |
return $this->kind; |
| 619 |
} |
| 620 |
|
| 621 |
public function setResults($results) |
| 622 |
{ |
| 623 |
$this->results = $results; |
| 624 |
} |
| 625 |
|
| 626 |
public function getResults() |
| 627 |
{ |
| 628 |
return $this->results; |
| 629 |
} |
| 630 |
} |
| 631 |
|
| 632 |
class Analytify_Google_Service_GamesManagement_AchievementResetResponse extends Analytify_Google_Model |
| 633 |
{ |
| 634 |
public $currentState; |
| 635 |
public $definitionId; |
| 636 |
public $kind; |
| 637 |
public $updateOccurred; |
| 638 |
|
| 639 |
public function setCurrentState($currentState) |
| 640 |
{ |
| 641 |
$this->currentState = $currentState; |
| 642 |
} |
| 643 |
|
| 644 |
public function getCurrentState() |
| 645 |
{ |
| 646 |
return $this->currentState; |
| 647 |
} |
| 648 |
|
| 649 |
public function setDefinitionId($definitionId) |
| 650 |
{ |
| 651 |
$this->definitionId = $definitionId; |
| 652 |
} |
| 653 |
|
| 654 |
public function getDefinitionId() |
| 655 |
{ |
| 656 |
return $this->definitionId; |
| 657 |
} |
| 658 |
|
| 659 |
public function setKind($kind) |
| 660 |
{ |
| 661 |
$this->kind = $kind; |
| 662 |
} |
| 663 |
|
| 664 |
public function getKind() |
| 665 |
{ |
| 666 |
return $this->kind; |
| 667 |
} |
| 668 |
|
| 669 |
public function setUpdateOccurred($updateOccurred) |
| 670 |
{ |
| 671 |
$this->updateOccurred = $updateOccurred; |
| 672 |
} |
| 673 |
|
| 674 |
public function getUpdateOccurred() |
| 675 |
{ |
| 676 |
return $this->updateOccurred; |
| 677 |
} |
| 678 |
} |
| 679 |
|
| 680 |
class Analytify_Google_Service_GamesManagement_GamesPlayedResource extends Analytify_Google_Model |
| 681 |
{ |
| 682 |
public $autoMatched; |
| 683 |
public $timeMillis; |
| 684 |
|
| 685 |
public function setAutoMatched($autoMatched) |
| 686 |
{ |
| 687 |
$this->autoMatched = $autoMatched; |
| 688 |
} |
| 689 |
|
| 690 |
public function getAutoMatched() |
| 691 |
{ |
| 692 |
return $this->autoMatched; |
| 693 |
} |
| 694 |
|
| 695 |
public function setTimeMillis($timeMillis) |
| 696 |
{ |
| 697 |
$this->timeMillis = $timeMillis; |
| 698 |
} |
| 699 |
|
| 700 |
public function getTimeMillis() |
| 701 |
{ |
| 702 |
return $this->timeMillis; |
| 703 |
} |
| 704 |
} |
| 705 |
|
| 706 |
class Analytify_Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Analytify_Google_Model |
| 707 |
{ |
| 708 |
public $currentExperiencePoints; |
| 709 |
protected $currentLevelType = 'Analytify_Google_Service_GamesManagement_GamesPlayerLevelResource'; |
| 710 |
protected $currentLevelDataType = ''; |
| 711 |
public $lastLevelUpTimestampMillis; |
| 712 |
protected $nextLevelType = 'Analytify_Google_Service_GamesManagement_GamesPlayerLevelResource'; |
| 713 |
protected $nextLevelDataType = ''; |
| 714 |
|
| 715 |
public function setCurrentExperiencePoints($currentExperiencePoints) |
| 716 |
{ |
| 717 |
$this->currentExperiencePoints = $currentExperiencePoints; |
| 718 |
} |
| 719 |
|
| 720 |
public function getCurrentExperiencePoints() |
| 721 |
{ |
| 722 |
return $this->currentExperiencePoints; |
| 723 |
} |
| 724 |
|
| 725 |
public function setCurrentLevel(Analytify_Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) |
| 726 |
{ |
| 727 |
$this->currentLevel = $currentLevel; |
| 728 |
} |
| 729 |
|
| 730 |
public function getCurrentLevel() |
| 731 |
{ |
| 732 |
return $this->currentLevel; |
| 733 |
} |
| 734 |
|
| 735 |
public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) |
| 736 |
{ |
| 737 |
$this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; |
| 738 |
} |
| 739 |
|
| 740 |
public function getLastLevelUpTimestampMillis() |
| 741 |
{ |
| 742 |
return $this->lastLevelUpTimestampMillis; |
| 743 |
} |
| 744 |
|
| 745 |
public function setNextLevel(Analytify_Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) |
| 746 |
{ |
| 747 |
$this->nextLevel = $nextLevel; |
| 748 |
} |
| 749 |
|
| 750 |
public function getNextLevel() |
| 751 |
{ |
| 752 |
return $this->nextLevel; |
| 753 |
} |
| 754 |
} |
| 755 |
|
| 756 |
class Analytify_Google_Service_GamesManagement_GamesPlayerLevelResource extends Analytify_Google_Model |
| 757 |
{ |
| 758 |
public $level; |
| 759 |
public $maxExperiencePoints; |
| 760 |
public $minExperiencePoints; |
| 761 |
|
| 762 |
public function setLevel($level) |
| 763 |
{ |
| 764 |
$this->level = $level; |
| 765 |
} |
| 766 |
|
| 767 |
public function getLevel() |
| 768 |
{ |
| 769 |
return $this->level; |
| 770 |
} |
| 771 |
|
| 772 |
public function setMaxExperiencePoints($maxExperiencePoints) |
| 773 |
{ |
| 774 |
$this->maxExperiencePoints = $maxExperiencePoints; |
| 775 |
} |
| 776 |
|
| 777 |
public function getMaxExperiencePoints() |
| 778 |
{ |
| 779 |
return $this->maxExperiencePoints; |
| 780 |
} |
| 781 |
|
| 782 |
public function setMinExperiencePoints($minExperiencePoints) |
| 783 |
{ |
| 784 |
$this->minExperiencePoints = $minExperiencePoints; |
| 785 |
} |
| 786 |
|
| 787 |
public function getMinExperiencePoints() |
| 788 |
{ |
| 789 |
return $this->minExperiencePoints; |
| 790 |
} |
| 791 |
} |
| 792 |
|
| 793 |
class Analytify_Google_Service_GamesManagement_HiddenPlayer extends Analytify_Google_Model |
| 794 |
{ |
| 795 |
public $hiddenTimeMillis; |
| 796 |
public $kind; |
| 797 |
protected $playerType = 'Analytify_Google_Service_GamesManagement_Player'; |
| 798 |
protected $playerDataType = ''; |
| 799 |
|
| 800 |
public function setHiddenTimeMillis($hiddenTimeMillis) |
| 801 |
{ |
| 802 |
$this->hiddenTimeMillis = $hiddenTimeMillis; |
| 803 |
} |
| 804 |
|
| 805 |
public function getHiddenTimeMillis() |
| 806 |
{ |
| 807 |
return $this->hiddenTimeMillis; |
| 808 |
} |
| 809 |
|
| 810 |
public function setKind($kind) |
| 811 |
{ |
| 812 |
$this->kind = $kind; |
| 813 |
} |
| 814 |
|
| 815 |
public function getKind() |
| 816 |
{ |
| 817 |
return $this->kind; |
| 818 |
} |
| 819 |
|
| 820 |
public function setPlayer(Analytify_Google_Service_GamesManagement_Player $player) |
| 821 |
{ |
| 822 |
$this->player = $player; |
| 823 |
} |
| 824 |
|
| 825 |
public function getPlayer() |
| 826 |
{ |
| 827 |
return $this->player; |
| 828 |
} |
| 829 |
} |
| 830 |
|
| 831 |
class Analytify_Google_Service_GamesManagement_HiddenPlayerList extends Analytify_Google_Collection |
| 832 |
{ |
| 833 |
protected $itemsType = 'Analytify_Google_Service_GamesManagement_HiddenPlayer'; |
| 834 |
protected $itemsDataType = 'array'; |
| 835 |
public $kind; |
| 836 |
public $nextPageToken; |
| 837 |
|
| 838 |
public function setItems($items) |
| 839 |
{ |
| 840 |
$this->items = $items; |
| 841 |
} |
| 842 |
|
| 843 |
public function getItems() |
| 844 |
{ |
| 845 |
return $this->items; |
| 846 |
} |
| 847 |
|
| 848 |
public function setKind($kind) |
| 849 |
{ |
| 850 |
$this->kind = $kind; |
| 851 |
} |
| 852 |
|
| 853 |
public function getKind() |
| 854 |
{ |
| 855 |
return $this->kind; |
| 856 |
} |
| 857 |
|
| 858 |
public function setNextPageToken($nextPageToken) |
| 859 |
{ |
| 860 |
$this->nextPageToken = $nextPageToken; |
| 861 |
} |
| 862 |
|
| 863 |
public function getNextPageToken() |
| 864 |
{ |
| 865 |
return $this->nextPageToken; |
| 866 |
} |
| 867 |
} |
| 868 |
|
| 869 |
class Analytify_Google_Service_GamesManagement_Player extends Analytify_Google_Model |
| 870 |
{ |
| 871 |
public $avatarImageUrl; |
| 872 |
public $displayName; |
| 873 |
protected $experienceInfoType = 'Analytify_Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; |
| 874 |
protected $experienceInfoDataType = ''; |
| 875 |
public $kind; |
| 876 |
protected $lastPlayedWithType = 'Analytify_Google_Service_GamesManagement_GamesPlayedResource'; |
| 877 |
protected $lastPlayedWithDataType = ''; |
| 878 |
protected $nameType = 'Analytify_Google_Service_GamesManagement_PlayerName'; |
| 879 |
protected $nameDataType = ''; |
| 880 |
public $playerId; |
| 881 |
public $title; |
| 882 |
|
| 883 |
public function setAvatarImageUrl($avatarImageUrl) |
| 884 |
{ |
| 885 |
$this->avatarImageUrl = $avatarImageUrl; |
| 886 |
} |
| 887 |
|
| 888 |
public function getAvatarImageUrl() |
| 889 |
{ |
| 890 |
return $this->avatarImageUrl; |
| 891 |
} |
| 892 |
|
| 893 |
public function setDisplayName($displayName) |
| 894 |
{ |
| 895 |
$this->displayName = $displayName; |
| 896 |
} |
| 897 |
|
| 898 |
public function getDisplayName() |
| 899 |
{ |
| 900 |
return $this->displayName; |
| 901 |
} |
| 902 |
|
| 903 |
public function setExperienceInfo(Analytify_Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) |
| 904 |
{ |
| 905 |
$this->experienceInfo = $experienceInfo; |
| 906 |
} |
| 907 |
|
| 908 |
public function getExperienceInfo() |
| 909 |
{ |
| 910 |
return $this->experienceInfo; |
| 911 |
} |
| 912 |
|
| 913 |
public function setKind($kind) |
| 914 |
{ |
| 915 |
$this->kind = $kind; |
| 916 |
} |
| 917 |
|
| 918 |
public function getKind() |
| 919 |
{ |
| 920 |
return $this->kind; |
| 921 |
} |
| 922 |
|
| 923 |
public function setLastPlayedWith(Analytify_Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith) |
| 924 |
{ |
| 925 |
$this->lastPlayedWith = $lastPlayedWith; |
| 926 |
} |
| 927 |
|
| 928 |
public function getLastPlayedWith() |
| 929 |
{ |
| 930 |
return $this->lastPlayedWith; |
| 931 |
} |
| 932 |
|
| 933 |
public function setName(Analytify_Google_Service_GamesManagement_PlayerName $name) |
| 934 |
{ |
| 935 |
$this->name = $name; |
| 936 |
} |
| 937 |
|
| 938 |
public function getName() |
| 939 |
{ |
| 940 |
return $this->name; |
| 941 |
} |
| 942 |
|
| 943 |
public function setPlayerId($playerId) |
| 944 |
{ |
| 945 |
$this->playerId = $playerId; |
| 946 |
} |
| 947 |
|
| 948 |
public function getPlayerId() |
| 949 |
{ |
| 950 |
return $this->playerId; |
| 951 |
} |
| 952 |
|
| 953 |
public function setTitle($title) |
| 954 |
{ |
| 955 |
$this->title = $title; |
| 956 |
} |
| 957 |
|
| 958 |
public function getTitle() |
| 959 |
{ |
| 960 |
return $this->title; |
| 961 |
} |
| 962 |
} |
| 963 |
|
| 964 |
class Analytify_Google_Service_GamesManagement_PlayerName extends Analytify_Google_Model |
| 965 |
{ |
| 966 |
public $familyName; |
| 967 |
public $givenName; |
| 968 |
|
| 969 |
public function setFamilyName($familyName) |
| 970 |
{ |
| 971 |
$this->familyName = $familyName; |
| 972 |
} |
| 973 |
|
| 974 |
public function getFamilyName() |
| 975 |
{ |
| 976 |
return $this->familyName; |
| 977 |
} |
| 978 |
|
| 979 |
public function setGivenName($givenName) |
| 980 |
{ |
| 981 |
$this->givenName = $givenName; |
| 982 |
} |
| 983 |
|
| 984 |
public function getGivenName() |
| 985 |
{ |
| 986 |
return $this->givenName; |
| 987 |
} |
| 988 |
} |
| 989 |
|
| 990 |
class Analytify_Google_Service_GamesManagement_PlayerScoreResetResponse extends Analytify_Google_Collection |
| 991 |
{ |
| 992 |
public $kind; |
| 993 |
public $resetScoreTimeSpans; |
| 994 |
|
| 995 |
public function setKind($kind) |
| 996 |
{ |
| 997 |
$this->kind = $kind; |
| 998 |
} |
| 999 |
|
| 1000 |
public function getKind() |
| 1001 |
{ |
| 1002 |
return $this->kind; |
| 1003 |
} |
| 1004 |
|
| 1005 |
public function setResetScoreTimeSpans($resetScoreTimeSpans) |
| 1006 |
{ |
| 1007 |
$this->resetScoreTimeSpans = $resetScoreTimeSpans; |
| 1008 |
} |
| 1009 |
|
| 1010 |
public function getResetScoreTimeSpans() |
| 1011 |
{ |
| 1012 |
return $this->resetScoreTimeSpans; |
| 1013 |
} |
| 1014 |
} |
| 1015 |
|