[e3d4e0a] | 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\PlayableLocations\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\PlayableLocations\GoogleMapsPlayablelocationsV3LogImpressionsRequest;
|
---|
| 21 | use Google\Service\PlayableLocations\GoogleMapsPlayablelocationsV3LogImpressionsResponse;
|
---|
| 22 | use Google\Service\PlayableLocations\GoogleMapsPlayablelocationsV3LogPlayerReportsRequest;
|
---|
| 23 | use Google\Service\PlayableLocations\GoogleMapsPlayablelocationsV3LogPlayerReportsResponse;
|
---|
| 24 | use Google\Service\PlayableLocations\GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest;
|
---|
| 25 | use Google\Service\PlayableLocations\GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse;
|
---|
| 26 |
|
---|
| 27 | /**
|
---|
| 28 | * The "v3" collection of methods.
|
---|
| 29 | * Typical usage is:
|
---|
| 30 | * <code>
|
---|
| 31 | * $playablelocationsService = new Google\Service\PlayableLocations(...);
|
---|
| 32 | * $v3 = $playablelocationsService->v3;
|
---|
| 33 | * </code>
|
---|
| 34 | */
|
---|
| 35 | class V3 extends \Google\Service\Resource
|
---|
| 36 | {
|
---|
| 37 | /**
|
---|
| 38 | * Logs new events when playable locations are displayed, and when they are
|
---|
| 39 | * interacted with. Impressions are not partially saved; either all impressions
|
---|
| 40 | * are saved and this request succeeds, or no impressions are saved, and this
|
---|
| 41 | * request fails. (v3.logImpressions)
|
---|
| 42 | *
|
---|
| 43 | * @param GoogleMapsPlayablelocationsV3LogImpressionsRequest $postBody
|
---|
| 44 | * @param array $optParams Optional parameters.
|
---|
| 45 | * @return GoogleMapsPlayablelocationsV3LogImpressionsResponse
|
---|
| 46 | */
|
---|
| 47 | public function logImpressions(GoogleMapsPlayablelocationsV3LogImpressionsRequest $postBody, $optParams = [])
|
---|
| 48 | {
|
---|
| 49 | $params = ['postBody' => $postBody];
|
---|
| 50 | $params = array_merge($params, $optParams);
|
---|
| 51 | return $this->call('logImpressions', [$params], GoogleMapsPlayablelocationsV3LogImpressionsResponse::class);
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * Logs bad playable location reports submitted by players. Reports are not
|
---|
| 55 | * partially saved; either all reports are saved and this request succeeds, or
|
---|
| 56 | * no reports are saved, and this request fails. (v3.logPlayerReports)
|
---|
| 57 | *
|
---|
| 58 | * @param GoogleMapsPlayablelocationsV3LogPlayerReportsRequest $postBody
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | * @return GoogleMapsPlayablelocationsV3LogPlayerReportsResponse
|
---|
| 61 | */
|
---|
| 62 | public function logPlayerReports(GoogleMapsPlayablelocationsV3LogPlayerReportsRequest $postBody, $optParams = [])
|
---|
| 63 | {
|
---|
| 64 | $params = ['postBody' => $postBody];
|
---|
| 65 | $params = array_merge($params, $optParams);
|
---|
| 66 | return $this->call('logPlayerReports', [$params], GoogleMapsPlayablelocationsV3LogPlayerReportsResponse::class);
|
---|
| 67 | }
|
---|
| 68 | /**
|
---|
| 69 | * Returns a set of playable locations that lie within a specified area, that
|
---|
| 70 | * satisfy optional filter criteria. Note: Identical `SamplePlayableLocations`
|
---|
| 71 | * requests can return different results as the state of the world changes over
|
---|
| 72 | * time. (v3.samplePlayableLocations)
|
---|
| 73 | *
|
---|
| 74 | * @param GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest $postBody
|
---|
| 75 | * @param array $optParams Optional parameters.
|
---|
| 76 | * @return GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
|
---|
| 77 | */
|
---|
| 78 | public function samplePlayableLocations(GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest $postBody, $optParams = [])
|
---|
| 79 | {
|
---|
| 80 | $params = ['postBody' => $postBody];
|
---|
| 81 | $params = array_merge($params, $optParams);
|
---|
| 82 | return $this->call('samplePlayableLocations', [$params], GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse::class);
|
---|
| 83 | }
|
---|
| 84 | }
|
---|
| 85 |
|
---|
| 86 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 87 | class_alias(V3::class, 'Google_Service_PlayableLocations_Resource_V3');
|
---|