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\AndroidPublisher\Resource; 19 20use Google\Service\AndroidPublisher\Listing; 21use Google\Service\AndroidPublisher\ListingsListResponse; 22 23/** 24 * The "listings" collection of methods. 25 * Typical usage is: 26 * <code> 27 * $androidpublisherService = new Google\Service\AndroidPublisher(...); 28 * $listings = $androidpublisherService->listings; 29 * </code> 30 */ 31class EditsListings extends \Google\Service\Resource 32{ 33 /** 34 * Deletes a localized store listing. (listings.delete) 35 * 36 * @param string $packageName Package name of the app. 37 * @param string $editId Identifier of the edit. 38 * @param string $language Language localization code (a BCP-47 language tag; 39 * for example, "de-AT" for Austrian German). 40 * @param array $optParams Optional parameters. 41 */ 42 public function delete($packageName, $editId, $language, $optParams = []) 43 { 44 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language]; 45 $params = array_merge($params, $optParams); 46 return $this->call('delete', [$params]); 47 } 48 /** 49 * Deletes all store listings. (listings.deleteall) 50 * 51 * @param string $packageName Package name of the app. 52 * @param string $editId Identifier of the edit. 53 * @param array $optParams Optional parameters. 54 */ 55 public function deleteall($packageName, $editId, $optParams = []) 56 { 57 $params = ['packageName' => $packageName, 'editId' => $editId]; 58 $params = array_merge($params, $optParams); 59 return $this->call('deleteall', [$params]); 60 } 61 /** 62 * Gets a localized store listing. (listings.get) 63 * 64 * @param string $packageName Package name of the app. 65 * @param string $editId Identifier of the edit. 66 * @param string $language Language localization code (a BCP-47 language tag; 67 * for example, "de-AT" for Austrian German). 68 * @param array $optParams Optional parameters. 69 * @return Listing 70 */ 71 public function get($packageName, $editId, $language, $optParams = []) 72 { 73 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language]; 74 $params = array_merge($params, $optParams); 75 return $this->call('get', [$params], Listing::class); 76 } 77 /** 78 * Lists all localized store listings. (listings.listEditsListings) 79 * 80 * @param string $packageName Package name of the app. 81 * @param string $editId Identifier of the edit. 82 * @param array $optParams Optional parameters. 83 * @return ListingsListResponse 84 */ 85 public function listEditsListings($packageName, $editId, $optParams = []) 86 { 87 $params = ['packageName' => $packageName, 'editId' => $editId]; 88 $params = array_merge($params, $optParams); 89 return $this->call('list', [$params], ListingsListResponse::class); 90 } 91 /** 92 * Patches a localized store listing. (listings.patch) 93 * 94 * @param string $packageName Package name of the app. 95 * @param string $editId Identifier of the edit. 96 * @param string $language Language localization code (a BCP-47 language tag; 97 * for example, "de-AT" for Austrian German). 98 * @param Listing $postBody 99 * @param array $optParams Optional parameters. 100 * @return Listing 101 */ 102 public function patch($packageName, $editId, $language, Listing $postBody, $optParams = []) 103 { 104 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody]; 105 $params = array_merge($params, $optParams); 106 return $this->call('patch', [$params], Listing::class); 107 } 108 /** 109 * Creates or updates a localized store listing. (listings.update) 110 * 111 * @param string $packageName Package name of the app. 112 * @param string $editId Identifier of the edit. 113 * @param string $language Language localization code (a BCP-47 language tag; 114 * for example, "de-AT" for Austrian German). 115 * @param Listing $postBody 116 * @param array $optParams Optional parameters. 117 * @return Listing 118 */ 119 public function update($packageName, $editId, $language, Listing $postBody, $optParams = []) 120 { 121 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody]; 122 $params = array_merge($params, $optParams); 123 return $this->call('update', [$params], Listing::class); 124 } 125} 126 127// Adding a class alias for backwards compatibility with the previous class name. 128class_alias(EditsListings::class, 'Google_Service_AndroidPublisher_Resource_EditsListings'); 129