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 |
|
---|
18 | namespace Google\Service\GamesManagement\Resource;
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * The "players" collection of methods.
|
---|
22 | * Typical usage is:
|
---|
23 | * <code>
|
---|
24 | * $gamesManagementService = new Google\Service\GamesManagement(...);
|
---|
25 | * $players = $gamesManagementService->players;
|
---|
26 | * </code>
|
---|
27 | */
|
---|
28 | class Players extends \Google\Service\Resource
|
---|
29 | {
|
---|
30 | /**
|
---|
31 | * Hide the given player's leaderboard scores from the given application. This
|
---|
32 | * method is only available to user accounts for your developer console.
|
---|
33 | * (players.hide)
|
---|
34 | *
|
---|
35 | * @param string $applicationId The application ID from the Google Play
|
---|
36 | * developer console.
|
---|
37 | * @param string $playerId A player ID. A value of `me` may be used in place of
|
---|
38 | * the authenticated player's ID.
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @throws \Google\Service\Exception
|
---|
41 | */
|
---|
42 | public function hide($applicationId, $playerId, $optParams = [])
|
---|
43 | {
|
---|
44 | $params = ['applicationId' => $applicationId, 'playerId' => $playerId];
|
---|
45 | $params = array_merge($params, $optParams);
|
---|
46 | return $this->call('hide', [$params]);
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * Unhide the given player's leaderboard scores from the given application. This
|
---|
50 | * method is only available to user accounts for your developer console.
|
---|
51 | * (players.unhide)
|
---|
52 | *
|
---|
53 | * @param string $applicationId The application ID from the Google Play
|
---|
54 | * developer console.
|
---|
55 | * @param string $playerId A player ID. A value of `me` may be used in place of
|
---|
56 | * the authenticated player's ID.
|
---|
57 | * @param array $optParams Optional parameters.
|
---|
58 | * @throws \Google\Service\Exception
|
---|
59 | */
|
---|
60 | public function unhide($applicationId, $playerId, $optParams = [])
|
---|
61 | {
|
---|
62 | $params = ['applicationId' => $applicationId, 'playerId' => $playerId];
|
---|
63 | $params = array_merge($params, $optParams);
|
---|
64 | return $this->call('unhide', [$params]);
|
---|
65 | }
|
---|
66 | }
|
---|
67 |
|
---|
68 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
69 | class_alias(Players::class, 'Google_Service_GamesManagement_Resource_Players');
|
---|