See Release Notes
Long Term Support Release
Differences Between: [Versions 401 and 402] [Versions 401 and 403]
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.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/games/services" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31 class Google_Service_GamesManagement extends Google_Service 32 { 33 /** Share your Google+ profile information and view and manage your game activity. */ 34 const GAMES = 35 "https://www.googleapis.com/auth/games"; 36 /** Know your basic profile info and list of people in your circles.. */ 37 const PLUS_LOGIN = 38 "https://www.googleapis.com/auth/plus.login"; 39 40 public $achievements; 41 public $applications; 42 public $events; 43 public $players; 44 public $quests; 45 public $rooms; 46 public $scores; 47 public $turnBasedMatches; 48 49 50 /** 51 * Constructs the internal representation of the GamesManagement service. 52 * 53 * @param Google_Client $client 54 */ 55 public function __construct(Google_Client $client) 56 { 57 parent::__construct($client); 58 $this->rootUrl = 'https://www.googleapis.com/'; 59 $this->servicePath = 'games/v1management/'; 60 $this->version = 'v1management'; 61 $this->serviceName = 'gamesManagement'; 62 63 $this->achievements = new Google_Service_GamesManagement_Achievements_Resource( 64 $this, 65 $this->serviceName, 66 'achievements', 67 array( 68 'methods' => array( 69 'reset' => array( 70 'path' => 'achievements/{achievementId}/reset', 71 'httpMethod' => 'POST', 72 'parameters' => array( 73 'achievementId' => array( 74 'location' => 'path', 75 'type' => 'string', 76 'required' => true, 77 ), 78 ), 79 ),'resetAll' => array( 80 'path' => 'achievements/reset', 81 'httpMethod' => 'POST', 82 'parameters' => array(), 83 ),'resetAllForAllPlayers' => array( 84 'path' => 'achievements/resetAllForAllPlayers', 85 'httpMethod' => 'POST', 86 'parameters' => array(), 87 ),'resetForAllPlayers' => array( 88 'path' => 'achievements/{achievementId}/resetForAllPlayers', 89 'httpMethod' => 'POST', 90 'parameters' => array( 91 'achievementId' => array( 92 'location' => 'path', 93 'type' => 'string', 94 'required' => true, 95 ), 96 ), 97 ),'resetMultipleForAllPlayers' => array( 98 'path' => 'achievements/resetMultipleForAllPlayers', 99 'httpMethod' => 'POST', 100 'parameters' => array(), 101 ), 102 ) 103 ) 104 ); 105 $this->applications = new Google_Service_GamesManagement_Applications_Resource( 106 $this, 107 $this->serviceName, 108 'applications', 109 array( 110 'methods' => array( 111 'listHidden' => array( 112 'path' => 'applications/{applicationId}/players/hidden', 113 'httpMethod' => 'GET', 114 'parameters' => array( 115 'applicationId' => array( 116 'location' => 'path', 117 'type' => 'string', 118 'required' => true, 119 ), 120 'pageToken' => array( 121 'location' => 'query', 122 'type' => 'string', 123 ), 124 'maxResults' => array( 125 'location' => 'query', 126 'type' => 'integer', 127 ), 128 ), 129 ), 130 ) 131 ) 132 ); 133 $this->events = new Google_Service_GamesManagement_Events_Resource( 134 $this, 135 $this->serviceName, 136 'events', 137 array( 138 'methods' => array( 139 'reset' => array( 140 'path' => 'events/{eventId}/reset', 141 'httpMethod' => 'POST', 142 'parameters' => array( 143 'eventId' => array( 144 'location' => 'path', 145 'type' => 'string', 146 'required' => true, 147 ), 148 ), 149 ),'resetAll' => array( 150 'path' => 'events/reset', 151 'httpMethod' => 'POST', 152 'parameters' => array(), 153 ),'resetAllForAllPlayers' => array( 154 'path' => 'events/resetAllForAllPlayers', 155 'httpMethod' => 'POST', 156 'parameters' => array(), 157 ),'resetForAllPlayers' => array( 158 'path' => 'events/{eventId}/resetForAllPlayers', 159 'httpMethod' => 'POST', 160 'parameters' => array( 161 'eventId' => array( 162 'location' => 'path', 163 'type' => 'string', 164 'required' => true, 165 ), 166 ), 167 ),'resetMultipleForAllPlayers' => array( 168 'path' => 'events/resetMultipleForAllPlayers', 169 'httpMethod' => 'POST', 170 'parameters' => array(), 171 ), 172 ) 173 ) 174 ); 175 $this->players = new Google_Service_GamesManagement_Players_Resource( 176 $this, 177 $this->serviceName, 178 'players', 179 array( 180 'methods' => array( 181 'hide' => array( 182 'path' => 'applications/{applicationId}/players/hidden/{playerId}', 183 'httpMethod' => 'POST', 184 'parameters' => array( 185 'applicationId' => array( 186 'location' => 'path', 187 'type' => 'string', 188 'required' => true, 189 ), 190 'playerId' => array( 191 'location' => 'path', 192 'type' => 'string', 193 'required' => true, 194 ), 195 ), 196 ),'unhide' => array( 197 'path' => 'applications/{applicationId}/players/hidden/{playerId}', 198 'httpMethod' => 'DELETE', 199 'parameters' => array( 200 'applicationId' => array( 201 'location' => 'path', 202 'type' => 'string', 203 'required' => true, 204 ), 205 'playerId' => array( 206 'location' => 'path', 207 'type' => 'string', 208 'required' => true, 209 ), 210 ), 211 ), 212 ) 213 ) 214 ); 215 $this->quests = new Google_Service_GamesManagement_Quests_Resource( 216 $this, 217 $this->serviceName, 218 'quests', 219 array( 220 'methods' => array( 221 'reset' => array( 222 'path' => 'quests/{questId}/reset', 223 'httpMethod' => 'POST', 224 'parameters' => array( 225 'questId' => array( 226 'location' => 'path', 227 'type' => 'string', 228 'required' => true, 229 ), 230 ), 231 ),'resetAll' => array( 232 'path' => 'quests/reset', 233 'httpMethod' => 'POST', 234 'parameters' => array(), 235 ),'resetAllForAllPlayers' => array( 236 'path' => 'quests/resetAllForAllPlayers', 237 'httpMethod' => 'POST', 238 'parameters' => array(), 239 ),'resetForAllPlayers' => array( 240 'path' => 'quests/{questId}/resetForAllPlayers', 241 'httpMethod' => 'POST', 242 'parameters' => array( 243 'questId' => array( 244 'location' => 'path', 245 'type' => 'string', 246 'required' => true, 247 ), 248 ), 249 ),'resetMultipleForAllPlayers' => array( 250 'path' => 'quests/resetMultipleForAllPlayers', 251 'httpMethod' => 'POST', 252 'parameters' => array(), 253 ), 254 ) 255 ) 256 ); 257 $this->rooms = new Google_Service_GamesManagement_Rooms_Resource( 258 $this, 259 $this->serviceName, 260 'rooms', 261 array( 262 'methods' => array( 263 'reset' => array( 264 'path' => 'rooms/reset', 265 'httpMethod' => 'POST', 266 'parameters' => array(), 267 ),'resetForAllPlayers' => array( 268 'path' => 'rooms/resetForAllPlayers', 269 'httpMethod' => 'POST', 270 'parameters' => array(), 271 ), 272 ) 273 ) 274 ); 275 $this->scores = new Google_Service_GamesManagement_Scores_Resource( 276 $this, 277 $this->serviceName, 278 'scores', 279 array( 280 'methods' => array( 281 'reset' => array( 282 'path' => 'leaderboards/{leaderboardId}/scores/reset', 283 'httpMethod' => 'POST', 284 'parameters' => array( 285 'leaderboardId' => array( 286 'location' => 'path', 287 'type' => 'string', 288 'required' => true, 289 ), 290 ), 291 ),'resetAll' => array( 292 'path' => 'scores/reset', 293 'httpMethod' => 'POST', 294 'parameters' => array(), 295 ),'resetAllForAllPlayers' => array( 296 'path' => 'scores/resetAllForAllPlayers', 297 'httpMethod' => 'POST', 298 'parameters' => array(), 299 ),'resetForAllPlayers' => array( 300 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', 301 'httpMethod' => 'POST', 302 'parameters' => array( 303 'leaderboardId' => array( 304 'location' => 'path', 305 'type' => 'string', 306 'required' => true, 307 ), 308 ), 309 ),'resetMultipleForAllPlayers' => array( 310 'path' => 'scores/resetMultipleForAllPlayers', 311 'httpMethod' => 'POST', 312 'parameters' => array(), 313 ), 314 ) 315 ) 316 ); 317 $this->turnBasedMatches = new Google_Service_GamesManagement_TurnBasedMatches_Resource( 318 $this, 319 $this->serviceName, 320 'turnBasedMatches', 321 array( 322 'methods' => array( 323 'reset' => array( 324 'path' => 'turnbasedmatches/reset', 325 'httpMethod' => 'POST', 326 'parameters' => array(), 327 ),'resetForAllPlayers' => array( 328 'path' => 'turnbasedmatches/resetForAllPlayers', 329 'httpMethod' => 'POST', 330 'parameters' => array(), 331 ), 332 ) 333 ) 334 ); 335 } 336 } 337 338 339 /** 340 * The "achievements" collection of methods. 341 * Typical usage is: 342 * <code> 343 * $gamesManagementService = new Google_Service_GamesManagement(...); 344 * $achievements = $gamesManagementService->achievements; 345 * </code> 346 */ 347 class Google_Service_GamesManagement_Achievements_Resource extends Google_Service_Resource 348 { 349 350 /** 351 * Resets the achievement with the given ID for the currently authenticated 352 * player. This method is only accessible to whitelisted tester accounts for 353 * your application. (achievements.reset) 354 * 355 * @param string $achievementId The ID of the achievement used by this method. 356 * @param array $optParams Optional parameters. 357 * @return Google_Service_GamesManagement_AchievementResetResponse 358 */ 359 public function reset($achievementId, $optParams = array()) 360 { 361 $params = array('achievementId' => $achievementId); 362 $params = array_merge($params, $optParams); 363 return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse"); 364 } 365 366 /** 367 * Resets all achievements for the currently authenticated player for your 368 * application. This method is only accessible to whitelisted tester accounts 369 * for your application. (achievements.resetAll) 370 * 371 * @param array $optParams Optional parameters. 372 * @return Google_Service_GamesManagement_AchievementResetAllResponse 373 */ 374 public function resetAll($optParams = array()) 375 { 376 $params = array(); 377 $params = array_merge($params, $optParams); 378 return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); 379 } 380 381 /** 382 * Resets all draft achievements for all players. This method is only available 383 * to user accounts for your developer console. 384 * (achievements.resetAllForAllPlayers) 385 * 386 * @param array $optParams Optional parameters. 387 */ 388 public function resetAllForAllPlayers($optParams = array()) 389 { 390 $params = array(); 391 $params = array_merge($params, $optParams); 392 return $this->call('resetAllForAllPlayers', array($params)); 393 } 394 395 /** 396 * Resets the achievement with the given ID for all players. This method is only 397 * available to user accounts for your developer console. Only draft 398 * achievements can be reset. (achievements.resetForAllPlayers) 399 * 400 * @param string $achievementId The ID of the achievement used by this method. 401 * @param array $optParams Optional parameters. 402 */ 403 public function resetForAllPlayers($achievementId, $optParams = array()) 404 { 405 $params = array('achievementId' => $achievementId); 406 $params = array_merge($params, $optParams); 407 return $this->call('resetForAllPlayers', array($params)); 408 } 409 410 /** 411 * Resets achievements with the given IDs for all players. This method is only 412 * available to user accounts for your developer console. Only draft 413 * achievements may be reset. (achievements.resetMultipleForAllPlayers) 414 * 415 * @param Google_AchievementResetMultipleForAllRequest $postBody 416 * @param array $optParams Optional parameters. 417 */ 418 public function resetMultipleForAllPlayers(Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody, $optParams = array()) 419 { 420 $params = array('postBody' => $postBody); 421 $params = array_merge($params, $optParams); 422 return $this->call('resetMultipleForAllPlayers', array($params)); 423 } 424 } 425 426 /** 427 * The "applications" collection of methods. 428 * Typical usage is: 429 * <code> 430 * $gamesManagementService = new Google_Service_GamesManagement(...); 431 * $applications = $gamesManagementService->applications; 432 * </code> 433 */ 434 class Google_Service_GamesManagement_Applications_Resource extends Google_Service_Resource 435 { 436 437 /** 438 * Get the list of players hidden from the given application. This method is 439 * only available to user accounts for your developer console. 440 * (applications.listHidden) 441 * 442 * @param string $applicationId The application ID from the Google Play 443 * developer console. 444 * @param array $optParams Optional parameters. 445 * 446 * @opt_param string pageToken The token returned by the previous request. 447 * @opt_param int maxResults The maximum number of player resources to return in 448 * the response, used for paging. For any response, the actual number of player 449 * resources returned may be less than the specified maxResults. 450 * @return Google_Service_GamesManagement_HiddenPlayerList 451 */ 452 public function listHidden($applicationId, $optParams = array()) 453 { 454 $params = array('applicationId' => $applicationId); 455 $params = array_merge($params, $optParams); 456 return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList"); 457 } 458 } 459 460 /** 461 * The "events" collection of methods. 462 * Typical usage is: 463 * <code> 464 * $gamesManagementService = new Google_Service_GamesManagement(...); 465 * $events = $gamesManagementService->events; 466 * </code> 467 */ 468 class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource 469 { 470 471 /** 472 * Resets all player progress on the event with the given ID for the currently 473 * authenticated player. This method is only accessible to whitelisted tester 474 * accounts for your application. All quests for this player that use the event 475 * will also be reset. (events.reset) 476 * 477 * @param string $eventId The ID of the event. 478 * @param array $optParams Optional parameters. 479 */ 480 public function reset($eventId, $optParams = array()) 481 { 482 $params = array('eventId' => $eventId); 483 $params = array_merge($params, $optParams); 484 return $this->call('reset', array($params)); 485 } 486 487 /** 488 * Resets all player progress on all events for the currently authenticated 489 * player. This method is only accessible to whitelisted tester accounts for 490 * your application. All quests for this player will also be reset. 491 * (events.resetAll) 492 * 493 * @param array $optParams Optional parameters. 494 */ 495 public function resetAll($optParams = array()) 496 { 497 $params = array(); 498 $params = array_merge($params, $optParams); 499 return $this->call('resetAll', array($params)); 500 } 501 502 /** 503 * Resets all draft events for all players. This method is only available to 504 * user accounts for your developer console. All quests that use any of these 505 * events will also be reset. (events.resetAllForAllPlayers) 506 * 507 * @param array $optParams Optional parameters. 508 */ 509 public function resetAllForAllPlayers($optParams = array()) 510 { 511 $params = array(); 512 $params = array_merge($params, $optParams); 513 return $this->call('resetAllForAllPlayers', array($params)); 514 } 515 516 /** 517 * Resets the event with the given ID for all players. This method is only 518 * available to user accounts for your developer console. Only draft events can 519 * be reset. All quests that use the event will also be reset. 520 * (events.resetForAllPlayers) 521 * 522 * @param string $eventId The ID of the event. 523 * @param array $optParams Optional parameters. 524 */ 525 public function resetForAllPlayers($eventId, $optParams = array()) 526 { 527 $params = array('eventId' => $eventId); 528 $params = array_merge($params, $optParams); 529 return $this->call('resetForAllPlayers', array($params)); 530 } 531 532 /** 533 * Resets events with the given IDs for all players. This method is only 534 * available to user accounts for your developer console. Only draft events may 535 * be reset. All quests that use any of the events will also be reset. 536 * (events.resetMultipleForAllPlayers) 537 * 538 * @param Google_EventsResetMultipleForAllRequest $postBody 539 * @param array $optParams Optional parameters. 540 */ 541 public function resetMultipleForAllPlayers(Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody, $optParams = array()) 542 { 543 $params = array('postBody' => $postBody); 544 $params = array_merge($params, $optParams); 545 return $this->call('resetMultipleForAllPlayers', array($params)); 546 } 547 } 548 549 /** 550 * The "players" collection of methods. 551 * Typical usage is: 552 * <code> 553 * $gamesManagementService = new Google_Service_GamesManagement(...); 554 * $players = $gamesManagementService->players; 555 * </code> 556 */ 557 class Google_Service_GamesManagement_Players_Resource extends Google_Service_Resource 558 { 559 560 /** 561 * Hide the given player's leaderboard scores from the given application. This 562 * method is only available to user accounts for your developer console. 563 * (players.hide) 564 * 565 * @param string $applicationId The application ID from the Google Play 566 * developer console. 567 * @param string $playerId A player ID. A value of me may be used in place of 568 * the authenticated player's ID. 569 * @param array $optParams Optional parameters. 570 */ 571 public function hide($applicationId, $playerId, $optParams = array()) 572 { 573 $params = array('applicationId' => $applicationId, 'playerId' => $playerId); 574 $params = array_merge($params, $optParams); 575 return $this->call('hide', array($params)); 576 } 577 578 /** 579 * Unhide the given player's leaderboard scores from the given application. This 580 * method is only available to user accounts for your developer console. 581 * (players.unhide) 582 * 583 * @param string $applicationId The application ID from the Google Play 584 * developer console. 585 * @param string $playerId A player ID. A value of me may be used in place of 586 * the authenticated player's ID. 587 * @param array $optParams Optional parameters. 588 */ 589 public function unhide($applicationId, $playerId, $optParams = array()) 590 { 591 $params = array('applicationId' => $applicationId, 'playerId' => $playerId); 592 $params = array_merge($params, $optParams); 593 return $this->call('unhide', array($params)); 594 } 595 } 596 597 /** 598 * The "quests" collection of methods. 599 * Typical usage is: 600 * <code> 601 * $gamesManagementService = new Google_Service_GamesManagement(...); 602 * $quests = $gamesManagementService->quests; 603 * </code> 604 */ 605 class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Resource 606 { 607 608 /** 609 * Resets all player progress on the quest with the given ID for the currently 610 * authenticated player. This method is only accessible to whitelisted tester 611 * accounts for your application. (quests.reset) 612 * 613 * @param string $questId The ID of the quest. 614 * @param array $optParams Optional parameters. 615 */ 616 public function reset($questId, $optParams = array()) 617 { 618 $params = array('questId' => $questId); 619 $params = array_merge($params, $optParams); 620 return $this->call('reset', array($params)); 621 } 622 623 /** 624 * Resets all player progress on all quests for the currently authenticated 625 * player. This method is only accessible to whitelisted tester accounts for 626 * your application. (quests.resetAll) 627 * 628 * @param array $optParams Optional parameters. 629 */ 630 public function resetAll($optParams = array()) 631 { 632 $params = array(); 633 $params = array_merge($params, $optParams); 634 return $this->call('resetAll', array($params)); 635 } 636 637 /** 638 * Resets all draft quests for all players. This method is only available to 639 * user accounts for your developer console. (quests.resetAllForAllPlayers) 640 * 641 * @param array $optParams Optional parameters. 642 */ 643 public function resetAllForAllPlayers($optParams = array()) 644 { 645 $params = array(); 646 $params = array_merge($params, $optParams); 647 return $this->call('resetAllForAllPlayers', array($params)); 648 } 649 650 /** 651 * Resets all player progress on the quest with the given ID for all players. 652 * This method is only available to user accounts for your developer console. 653 * Only draft quests can be reset. (quests.resetForAllPlayers) 654 * 655 * @param string $questId The ID of the quest. 656 * @param array $optParams Optional parameters. 657 */ 658 public function resetForAllPlayers($questId, $optParams = array()) 659 { 660 $params = array('questId' => $questId); 661 $params = array_merge($params, $optParams); 662 return $this->call('resetForAllPlayers', array($params)); 663 } 664 665 /** 666 * Resets quests with the given IDs for all players. This method is only 667 * available to user accounts for your developer console. Only draft quests may 668 * be reset. (quests.resetMultipleForAllPlayers) 669 * 670 * @param Google_QuestsResetMultipleForAllRequest $postBody 671 * @param array $optParams Optional parameters. 672 */ 673 public function resetMultipleForAllPlayers(Google_Service_GamesManagement_QuestsResetMultipleForAllRequest $postBody, $optParams = array()) 674 { 675 $params = array('postBody' => $postBody); 676 $params = array_merge($params, $optParams); 677 return $this->call('resetMultipleForAllPlayers', array($params)); 678 } 679 } 680 681 /** 682 * The "rooms" collection of methods. 683 * Typical usage is: 684 * <code> 685 * $gamesManagementService = new Google_Service_GamesManagement(...); 686 * $rooms = $gamesManagementService->rooms; 687 * </code> 688 */ 689 class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resource 690 { 691 692 /** 693 * Reset all rooms for the currently authenticated player for your application. 694 * This method is only accessible to whitelisted tester accounts for your 695 * application. (rooms.reset) 696 * 697 * @param array $optParams Optional parameters. 698 */ 699 public function reset($optParams = array()) 700 { 701 $params = array(); 702 $params = array_merge($params, $optParams); 703 return $this->call('reset', array($params)); 704 } 705 706 /** 707 * Deletes rooms where the only room participants are from whitelisted tester 708 * accounts for your application. This method is only available to user accounts 709 * for your developer console. (rooms.resetForAllPlayers) 710 * 711 * @param array $optParams Optional parameters. 712 */ 713 public function resetForAllPlayers($optParams = array()) 714 { 715 $params = array(); 716 $params = array_merge($params, $optParams); 717 return $this->call('resetForAllPlayers', array($params)); 718 } 719 } 720 721 /** 722 * The "scores" collection of methods. 723 * Typical usage is: 724 * <code> 725 * $gamesManagementService = new Google_Service_GamesManagement(...); 726 * $scores = $gamesManagementService->scores; 727 * </code> 728 */ 729 class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Resource 730 { 731 732 /** 733 * Resets scores for the leaderboard with the given ID for the currently 734 * authenticated player. This method is only accessible to whitelisted tester 735 * accounts for your application. (scores.reset) 736 * 737 * @param string $leaderboardId The ID of the leaderboard. 738 * @param array $optParams Optional parameters. 739 * @return Google_Service_GamesManagement_PlayerScoreResetResponse 740 */ 741 public function reset($leaderboardId, $optParams = array()) 742 { 743 $params = array('leaderboardId' => $leaderboardId); 744 $params = array_merge($params, $optParams); 745 return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse"); 746 } 747 748 /** 749 * Resets all scores for all leaderboards for the currently authenticated 750 * players. This method is only accessible to whitelisted tester accounts for 751 * your application. (scores.resetAll) 752 * 753 * @param array $optParams Optional parameters. 754 * @return Google_Service_GamesManagement_PlayerScoreResetAllResponse 755 */ 756 public function resetAll($optParams = array()) 757 { 758 $params = array(); 759 $params = array_merge($params, $optParams); 760 return $this->call('resetAll', array($params), "Google_Service_GamesManagement_PlayerScoreResetAllResponse"); 761 } 762 763 /** 764 * Resets scores for all draft leaderboards for all players. This method is only 765 * available to user accounts for your developer console. 766 * (scores.resetAllForAllPlayers) 767 * 768 * @param array $optParams Optional parameters. 769 */ 770 public function resetAllForAllPlayers($optParams = array()) 771 { 772 $params = array(); 773 $params = array_merge($params, $optParams); 774 return $this->call('resetAllForAllPlayers', array($params)); 775 } 776 777 /** 778 * Resets scores for the leaderboard with the given ID for all players. This 779 * method is only available to user accounts for your developer console. Only 780 * draft leaderboards can be reset. (scores.resetForAllPlayers) 781 * 782 * @param string $leaderboardId The ID of the leaderboard. 783 * @param array $optParams Optional parameters. 784 */ 785 public function resetForAllPlayers($leaderboardId, $optParams = array()) 786 { 787 $params = array('leaderboardId' => $leaderboardId); 788 $params = array_merge($params, $optParams); 789 return $this->call('resetForAllPlayers', array($params)); 790 } 791 792 /** 793 * Resets scores for the leaderboards with the given IDs for all players. This 794 * method is only available to user accounts for your developer console. Only 795 * draft leaderboards may be reset. (scores.resetMultipleForAllPlayers) 796 * 797 * @param Google_ScoresResetMultipleForAllRequest $postBody 798 * @param array $optParams Optional parameters. 799 */ 800 public function resetMultipleForAllPlayers(Google_Service_GamesManagement_ScoresResetMultipleForAllRequest $postBody, $optParams = array()) 801 { 802 $params = array('postBody' => $postBody); 803 $params = array_merge($params, $optParams); 804 return $this->call('resetMultipleForAllPlayers', array($params)); 805 } 806 } 807 808 /** 809 * The "turnBasedMatches" collection of methods. 810 * Typical usage is: 811 * <code> 812 * $gamesManagementService = new Google_Service_GamesManagement(...); 813 * $turnBasedMatches = $gamesManagementService->turnBasedMatches; 814 * </code> 815 */ 816 class Google_Service_GamesManagement_TurnBasedMatches_Resource extends Google_Service_Resource 817 { 818 819 /** 820 * Reset all turn-based match data for a user. This method is only accessible to 821 * whitelisted tester accounts for your application. (turnBasedMatches.reset) 822 * 823 * @param array $optParams Optional parameters. 824 */ 825 public function reset($optParams = array()) 826 { 827 $params = array(); 828 $params = array_merge($params, $optParams); 829 return $this->call('reset', array($params)); 830 } 831 832 /** 833 * Deletes turn-based matches where the only match participants are from 834 * whitelisted tester accounts for your application. This method is only 835 * available to user accounts for your developer console. 836 * (turnBasedMatches.resetForAllPlayers) 837 * 838 * @param array $optParams Optional parameters. 839 */ 840 public function resetForAllPlayers($optParams = array()) 841 { 842 $params = array(); 843 $params = array_merge($params, $optParams); 844 return $this->call('resetForAllPlayers', array($params)); 845 } 846 } 847 848 849 850 851 class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection 852 { 853 protected $collection_key = 'results'; 854 protected $internal_gapi_mappings = array( 855 ); 856 public $kind; 857 protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; 858 protected $resultsDataType = 'array'; 859 860 861 public function setKind($kind) 862 { 863 $this->kind = $kind; 864 } 865 public function getKind() 866 { 867 return $this->kind; 868 } 869 public function setResults($results) 870 { 871 $this->results = $results; 872 } 873 public function getResults() 874 { 875 return $this->results; 876 } 877 } 878 879 class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection 880 { 881 protected $collection_key = 'achievement_ids'; 882 protected $internal_gapi_mappings = array( 883 "achievementIds" => "achievement_ids", 884 ); 885 public $achievementIds; 886 public $kind; 887 888 889 public function setAchievementIds($achievementIds) 890 { 891 $this->achievementIds = $achievementIds; 892 } 893 public function getAchievementIds() 894 { 895 return $this->achievementIds; 896 } 897 public function setKind($kind) 898 { 899 $this->kind = $kind; 900 } 901 public function getKind() 902 { 903 return $this->kind; 904 } 905 } 906 907 class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model 908 { 909 protected $internal_gapi_mappings = array( 910 ); 911 public $currentState; 912 public $definitionId; 913 public $kind; 914 public $updateOccurred; 915 916 917 public function setCurrentState($currentState) 918 { 919 $this->currentState = $currentState; 920 } 921 public function getCurrentState() 922 { 923 return $this->currentState; 924 } 925 public function setDefinitionId($definitionId) 926 { 927 $this->definitionId = $definitionId; 928 } 929 public function getDefinitionId() 930 { 931 return $this->definitionId; 932 } 933 public function setKind($kind) 934 { 935 $this->kind = $kind; 936 } 937 public function getKind() 938 { 939 return $this->kind; 940 } 941 public function setUpdateOccurred($updateOccurred) 942 { 943 $this->updateOccurred = $updateOccurred; 944 } 945 public function getUpdateOccurred() 946 { 947 return $this->updateOccurred; 948 } 949 } 950 951 class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Google_Collection 952 { 953 protected $collection_key = 'event_ids'; 954 protected $internal_gapi_mappings = array( 955 "eventIds" => "event_ids", 956 ); 957 public $eventIds; 958 public $kind; 959 960 961 public function setEventIds($eventIds) 962 { 963 $this->eventIds = $eventIds; 964 } 965 public function getEventIds() 966 { 967 return $this->eventIds; 968 } 969 public function setKind($kind) 970 { 971 $this->kind = $kind; 972 } 973 public function getKind() 974 { 975 return $this->kind; 976 } 977 } 978 979 class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model 980 { 981 protected $internal_gapi_mappings = array( 982 ); 983 public $autoMatched; 984 public $timeMillis; 985 986 987 public function setAutoMatched($autoMatched) 988 { 989 $this->autoMatched = $autoMatched; 990 } 991 public function getAutoMatched() 992 { 993 return $this->autoMatched; 994 } 995 public function setTimeMillis($timeMillis) 996 { 997 $this->timeMillis = $timeMillis; 998 } 999 public function getTimeMillis() 1000 { 1001 return $this->timeMillis; 1002 } 1003 } 1004 1005 class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model 1006 { 1007 protected $internal_gapi_mappings = array( 1008 ); 1009 public $currentExperiencePoints; 1010 protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; 1011 protected $currentLevelDataType = ''; 1012 public $lastLevelUpTimestampMillis; 1013 protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; 1014 protected $nextLevelDataType = ''; 1015 1016 1017 public function setCurrentExperiencePoints($currentExperiencePoints) 1018 { 1019 $this->currentExperiencePoints = $currentExperiencePoints; 1020 } 1021 public function getCurrentExperiencePoints() 1022 { 1023 return $this->currentExperiencePoints; 1024 } 1025 public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) 1026 { 1027 $this->currentLevel = $currentLevel; 1028 } 1029 public function getCurrentLevel() 1030 { 1031 return $this->currentLevel; 1032 } 1033 public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) 1034 { 1035 $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; 1036 } 1037 public function getLastLevelUpTimestampMillis() 1038 { 1039 return $this->lastLevelUpTimestampMillis; 1040 } 1041 public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) 1042 { 1043 $this->nextLevel = $nextLevel; 1044 } 1045 public function getNextLevel() 1046 { 1047 return $this->nextLevel; 1048 } 1049 } 1050 1051 class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model 1052 { 1053 protected $internal_gapi_mappings = array( 1054 ); 1055 public $level; 1056 public $maxExperiencePoints; 1057 public $minExperiencePoints; 1058 1059 1060 public function setLevel($level) 1061 { 1062 $this->level = $level; 1063 } 1064 public function getLevel() 1065 { 1066 return $this->level; 1067 } 1068 public function setMaxExperiencePoints($maxExperiencePoints) 1069 { 1070 $this->maxExperiencePoints = $maxExperiencePoints; 1071 } 1072 public function getMaxExperiencePoints() 1073 { 1074 return $this->maxExperiencePoints; 1075 } 1076 public function setMinExperiencePoints($minExperiencePoints) 1077 { 1078 $this->minExperiencePoints = $minExperiencePoints; 1079 } 1080 public function getMinExperiencePoints() 1081 { 1082 return $this->minExperiencePoints; 1083 } 1084 } 1085 1086 class Google_Service_GamesManagement_HiddenPlayer extends Google_Model 1087 { 1088 protected $internal_gapi_mappings = array( 1089 ); 1090 public $hiddenTimeMillis; 1091 public $kind; 1092 protected $playerType = 'Google_Service_GamesManagement_Player'; 1093 protected $playerDataType = ''; 1094 1095 1096 public function setHiddenTimeMillis($hiddenTimeMillis) 1097 { 1098 $this->hiddenTimeMillis = $hiddenTimeMillis; 1099 } 1100 public function getHiddenTimeMillis() 1101 { 1102 return $this->hiddenTimeMillis; 1103 } 1104 public function setKind($kind) 1105 { 1106 $this->kind = $kind; 1107 } 1108 public function getKind() 1109 { 1110 return $this->kind; 1111 } 1112 public function setPlayer(Google_Service_GamesManagement_Player $player) 1113 { 1114 $this->player = $player; 1115 } 1116 public function getPlayer() 1117 { 1118 return $this->player; 1119 } 1120 } 1121 1122 class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection 1123 { 1124 protected $collection_key = 'items'; 1125 protected $internal_gapi_mappings = array( 1126 ); 1127 protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer'; 1128 protected $itemsDataType = 'array'; 1129 public $kind; 1130 public $nextPageToken; 1131 1132 1133 public function setItems($items) 1134 { 1135 $this->items = $items; 1136 } 1137 public function getItems() 1138 { 1139 return $this->items; 1140 } 1141 public function setKind($kind) 1142 { 1143 $this->kind = $kind; 1144 } 1145 public function getKind() 1146 { 1147 return $this->kind; 1148 } 1149 public function setNextPageToken($nextPageToken) 1150 { 1151 $this->nextPageToken = $nextPageToken; 1152 } 1153 public function getNextPageToken() 1154 { 1155 return $this->nextPageToken; 1156 } 1157 } 1158 1159 class Google_Service_GamesManagement_Player extends Google_Model 1160 { 1161 protected $internal_gapi_mappings = array( 1162 ); 1163 public $avatarImageUrl; 1164 public $bannerUrlLandscape; 1165 public $bannerUrlPortrait; 1166 public $displayName; 1167 protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; 1168 protected $experienceInfoDataType = ''; 1169 public $kind; 1170 protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource'; 1171 protected $lastPlayedWithDataType = ''; 1172 protected $nameType = 'Google_Service_GamesManagement_PlayerName'; 1173 protected $nameDataType = ''; 1174 public $playerId; 1175 public $title; 1176 1177 1178 public function setAvatarImageUrl($avatarImageUrl) 1179 { 1180 $this->avatarImageUrl = $avatarImageUrl; 1181 } 1182 public function getAvatarImageUrl() 1183 { 1184 return $this->avatarImageUrl; 1185 } 1186 public function setBannerUrlLandscape($bannerUrlLandscape) 1187 { 1188 $this->bannerUrlLandscape = $bannerUrlLandscape; 1189 } 1190 public function getBannerUrlLandscape() 1191 { 1192 return $this->bannerUrlLandscape; 1193 } 1194 public function setBannerUrlPortrait($bannerUrlPortrait) 1195 { 1196 $this->bannerUrlPortrait = $bannerUrlPortrait; 1197 } 1198 public function getBannerUrlPortrait() 1199 { 1200 return $this->bannerUrlPortrait; 1201 } 1202 public function setDisplayName($displayName) 1203 { 1204 $this->displayName = $displayName; 1205 } 1206 public function getDisplayName() 1207 { 1208 return $this->displayName; 1209 } 1210 public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) 1211 { 1212 $this->experienceInfo = $experienceInfo; 1213 } 1214 public function getExperienceInfo() 1215 { 1216 return $this->experienceInfo; 1217 } 1218 public function setKind($kind) 1219 { 1220 $this->kind = $kind; 1221 } 1222 public function getKind() 1223 { 1224 return $this->kind; 1225 } 1226 public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith) 1227 { 1228 $this->lastPlayedWith = $lastPlayedWith; 1229 } 1230 public function getLastPlayedWith() 1231 { 1232 return $this->lastPlayedWith; 1233 } 1234 public function setName(Google_Service_GamesManagement_PlayerName $name) 1235 { 1236 $this->name = $name; 1237 } 1238 public function getName() 1239 { 1240 return $this->name; 1241 } 1242 public function setPlayerId($playerId) 1243 { 1244 $this->playerId = $playerId; 1245 } 1246 public function getPlayerId() 1247 { 1248 return $this->playerId; 1249 } 1250 public function setTitle($title) 1251 { 1252 $this->title = $title; 1253 } 1254 public function getTitle() 1255 { 1256 return $this->title; 1257 } 1258 } 1259 1260 class Google_Service_GamesManagement_PlayerName extends Google_Model 1261 { 1262 protected $internal_gapi_mappings = array( 1263 ); 1264 public $familyName; 1265 public $givenName; 1266 1267 1268 public function setFamilyName($familyName) 1269 { 1270 $this->familyName = $familyName; 1271 } 1272 public function getFamilyName() 1273 { 1274 return $this->familyName; 1275 } 1276 public function setGivenName($givenName) 1277 { 1278 $this->givenName = $givenName; 1279 } 1280 public function getGivenName() 1281 { 1282 return $this->givenName; 1283 } 1284 } 1285 1286 class Google_Service_GamesManagement_PlayerScoreResetAllResponse extends Google_Collection 1287 { 1288 protected $collection_key = 'results'; 1289 protected $internal_gapi_mappings = array( 1290 ); 1291 public $kind; 1292 protected $resultsType = 'Google_Service_GamesManagement_PlayerScoreResetResponse'; 1293 protected $resultsDataType = 'array'; 1294 1295 1296 public function setKind($kind) 1297 { 1298 $this->kind = $kind; 1299 } 1300 public function getKind() 1301 { 1302 return $this->kind; 1303 } 1304 public function setResults($results) 1305 { 1306 $this->results = $results; 1307 } 1308 public function getResults() 1309 { 1310 return $this->results; 1311 } 1312 } 1313 1314 class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection 1315 { 1316 protected $collection_key = 'resetScoreTimeSpans'; 1317 protected $internal_gapi_mappings = array( 1318 ); 1319 public $definitionId; 1320 public $kind; 1321 public $resetScoreTimeSpans; 1322 1323 1324 public function setDefinitionId($definitionId) 1325 { 1326 $this->definitionId = $definitionId; 1327 } 1328 public function getDefinitionId() 1329 { 1330 return $this->definitionId; 1331 } 1332 public function setKind($kind) 1333 { 1334 $this->kind = $kind; 1335 } 1336 public function getKind() 1337 { 1338 return $this->kind; 1339 } 1340 public function setResetScoreTimeSpans($resetScoreTimeSpans) 1341 { 1342 $this->resetScoreTimeSpans = $resetScoreTimeSpans; 1343 } 1344 public function getResetScoreTimeSpans() 1345 { 1346 return $this->resetScoreTimeSpans; 1347 } 1348 } 1349 1350 class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Google_Collection 1351 { 1352 protected $collection_key = 'quest_ids'; 1353 protected $internal_gapi_mappings = array( 1354 "questIds" => "quest_ids", 1355 ); 1356 public $kind; 1357 public $questIds; 1358 1359 1360 public function setKind($kind) 1361 { 1362 $this->kind = $kind; 1363 } 1364 public function getKind() 1365 { 1366 return $this->kind; 1367 } 1368 public function setQuestIds($questIds) 1369 { 1370 $this->questIds = $questIds; 1371 } 1372 public function getQuestIds() 1373 { 1374 return $this->questIds; 1375 } 1376 } 1377 1378 class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Google_Collection 1379 { 1380 protected $collection_key = 'leaderboard_ids'; 1381 protected $internal_gapi_mappings = array( 1382 "leaderboardIds" => "leaderboard_ids", 1383 ); 1384 public $kind; 1385 public $leaderboardIds; 1386 1387 1388 public function setKind($kind) 1389 { 1390 $this->kind = $kind; 1391 } 1392 public function getKind() 1393 { 1394 return $this->kind; 1395 } 1396 public function setLeaderboardIds($leaderboardIds) 1397 { 1398 $this->leaderboardIds = $leaderboardIds; 1399 } 1400 public function getLeaderboardIds() 1401 { 1402 return $this->leaderboardIds; 1403 } 1404 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body