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/**
19 * The "pushtokens" collection of methods.
20 * Typical usage is:
21 *  <code>
22 *   $gamesService = new Google_Service_Games(...);
23 *   $pushtokens = $gamesService->pushtokens;
24 *  </code>
25 */
26class Google_Service_Games_Resource_Pushtokens extends Google_Service_Resource
27{
28  /**
29   * Removes a push token for the current user and application. Removing a non-
30   * existent push token will report success. (pushtokens.remove)
31   *
32   * @param Google_Service_Games_PushTokenId $postBody
33   * @param array $optParams Optional parameters.
34   */
35  public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = array())
36  {
37    $params = array('postBody' => $postBody);
38    $params = array_merge($params, $optParams);
39    return $this->call('remove', array($params));
40  }
41  /**
42   * Registers a push token for the current user and application.
43   * (pushtokens.update)
44   *
45   * @param Google_Service_Games_PushToken $postBody
46   * @param array $optParams Optional parameters.
47   */
48  public function update(Google_Service_Games_PushToken $postBody, $optParams = array())
49  {
50    $params = array('postBody' => $postBody);
51    $params = array_merge($params, $optParams);
52    return $this->call('update', array($params));
53  }
54}
55