source: vendor/google/apiclient-services/src/GamesManagement/Resource/Events.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 3.7 KB
Line 
1<?php
2/*
3 * Copyright 2014 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
18namespace Google\Service\GamesManagement\Resource;
19
20use Google\Service\GamesManagement\EventsResetMultipleForAllRequest;
21
22/**
23 * The "events" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $gamesManagementService = new Google\Service\GamesManagement(...);
27 * $events = $gamesManagementService->events;
28 * </code>
29 */
30class Events extends \Google\Service\Resource
31{
32 /**
33 * Resets all player progress on the event with the given ID for the currently
34 * authenticated player. This method is only accessible to whitelisted tester
35 * accounts for your application. (events.reset)
36 *
37 * @param string $eventId The ID of the event.
38 * @param array $optParams Optional parameters.
39 * @throws \Google\Service\Exception
40 */
41 public function reset($eventId, $optParams = [])
42 {
43 $params = ['eventId' => $eventId];
44 $params = array_merge($params, $optParams);
45 return $this->call('reset', [$params]);
46 }
47 /**
48 * Resets all player progress on all events for the currently authenticated
49 * player. This method is only accessible to whitelisted tester accounts for
50 * your application. (events.resetAll)
51 *
52 * @param array $optParams Optional parameters.
53 * @throws \Google\Service\Exception
54 */
55 public function resetAll($optParams = [])
56 {
57 $params = [];
58 $params = array_merge($params, $optParams);
59 return $this->call('resetAll', [$params]);
60 }
61 /**
62 * Resets all draft events for all players. This method is only available to
63 * user accounts for your developer console. (events.resetAllForAllPlayers)
64 *
65 * @param array $optParams Optional parameters.
66 * @throws \Google\Service\Exception
67 */
68 public function resetAllForAllPlayers($optParams = [])
69 {
70 $params = [];
71 $params = array_merge($params, $optParams);
72 return $this->call('resetAllForAllPlayers', [$params]);
73 }
74 /**
75 * Resets the event with the given ID for all players. This method is only
76 * available to user accounts for your developer console. Only draft events can
77 * be reset. (events.resetForAllPlayers)
78 *
79 * @param string $eventId The ID of the event.
80 * @param array $optParams Optional parameters.
81 * @throws \Google\Service\Exception
82 */
83 public function resetForAllPlayers($eventId, $optParams = [])
84 {
85 $params = ['eventId' => $eventId];
86 $params = array_merge($params, $optParams);
87 return $this->call('resetForAllPlayers', [$params]);
88 }
89 /**
90 * Resets events with the given IDs for all players. This method is only
91 * available to user accounts for your developer console. Only draft events may
92 * be reset. (events.resetMultipleForAllPlayers)
93 *
94 * @param EventsResetMultipleForAllRequest $postBody
95 * @param array $optParams Optional parameters.
96 * @throws \Google\Service\Exception
97 */
98 public function resetMultipleForAllPlayers(EventsResetMultipleForAllRequest $postBody, $optParams = [])
99 {
100 $params = ['postBody' => $postBody];
101 $params = array_merge($params, $optParams);
102 return $this->call('resetMultipleForAllPlayers', [$params]);
103 }
104}
105
106// Adding a class alias for backwards compatibility with the previous class name.
107class_alias(Events::class, 'Google_Service_GamesManagement_Resource_Events');
Note: See TracBrowser for help on using the repository browser.