PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / GamesManagement.php

GamesManagement.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/GamesManagement.php

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