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
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 */
28class 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   */
41  public function hide($applicationId, $playerId, $optParams = [])
42  {
43    $params = ['applicationId' => $applicationId, 'playerId' => $playerId];
44    $params = array_merge($params, $optParams);
45    return $this->call('hide', [$params]);
46  }
47  /**
48   * Unhide the given player's leaderboard scores from the given application. This
49   * method is only available to user accounts for your developer console.
50   * (players.unhide)
51   *
52   * @param string $applicationId The application ID from the Google Play
53   * developer console.
54   * @param string $playerId A player ID. A value of `me` may be used in place of
55   * the authenticated player's ID.
56   * @param array $optParams Optional parameters.
57   */
58  public function unhide($applicationId, $playerId, $optParams = [])
59  {
60    $params = ['applicationId' => $applicationId, 'playerId' => $playerId];
61    $params = array_merge($params, $optParams);
62    return $this->call('unhide', [$params]);
63  }
64}
65
66// Adding a class alias for backwards compatibility with the previous class name.
67class_alias(Players::class, 'Google_Service_GamesManagement_Resource_Players');
68