Application.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. namespace Google\Service\Games;
  18. class Application extends \Google\Collection
  19. {
  20. protected $collection_key = 'instances';
  21. protected $internal_gapi_mappings = [
  22. "achievementCount" => "achievement_count",
  23. "leaderboardCount" => "leaderboard_count",
  24. ];
  25. /**
  26. * @var int
  27. */
  28. public $achievementCount;
  29. protected $assetsType = ImageAsset::class;
  30. protected $assetsDataType = 'array';
  31. /**
  32. * @var string
  33. */
  34. public $author;
  35. protected $categoryType = ApplicationCategory::class;
  36. protected $categoryDataType = '';
  37. /**
  38. * @var string
  39. */
  40. public $description;
  41. /**
  42. * @var string[]
  43. */
  44. public $enabledFeatures;
  45. /**
  46. * @var string
  47. */
  48. public $id;
  49. protected $instancesType = Instance::class;
  50. protected $instancesDataType = 'array';
  51. /**
  52. * @var string
  53. */
  54. public $kind;
  55. /**
  56. * @var string
  57. */
  58. public $lastUpdatedTimestamp;
  59. /**
  60. * @var int
  61. */
  62. public $leaderboardCount;
  63. /**
  64. * @var string
  65. */
  66. public $name;
  67. /**
  68. * @var string
  69. */
  70. public $themeColor;
  71. /**
  72. * @param int
  73. */
  74. public function setAchievementCount($achievementCount)
  75. {
  76. $this->achievementCount = $achievementCount;
  77. }
  78. /**
  79. * @return int
  80. */
  81. public function getAchievementCount()
  82. {
  83. return $this->achievementCount;
  84. }
  85. /**
  86. * @param ImageAsset[]
  87. */
  88. public function setAssets($assets)
  89. {
  90. $this->assets = $assets;
  91. }
  92. /**
  93. * @return ImageAsset[]
  94. */
  95. public function getAssets()
  96. {
  97. return $this->assets;
  98. }
  99. /**
  100. * @param string
  101. */
  102. public function setAuthor($author)
  103. {
  104. $this->author = $author;
  105. }
  106. /**
  107. * @return string
  108. */
  109. public function getAuthor()
  110. {
  111. return $this->author;
  112. }
  113. /**
  114. * @param ApplicationCategory
  115. */
  116. public function setCategory(ApplicationCategory $category)
  117. {
  118. $this->category = $category;
  119. }
  120. /**
  121. * @return ApplicationCategory
  122. */
  123. public function getCategory()
  124. {
  125. return $this->category;
  126. }
  127. /**
  128. * @param string
  129. */
  130. public function setDescription($description)
  131. {
  132. $this->description = $description;
  133. }
  134. /**
  135. * @return string
  136. */
  137. public function getDescription()
  138. {
  139. return $this->description;
  140. }
  141. /**
  142. * @param string[]
  143. */
  144. public function setEnabledFeatures($enabledFeatures)
  145. {
  146. $this->enabledFeatures = $enabledFeatures;
  147. }
  148. /**
  149. * @return string[]
  150. */
  151. public function getEnabledFeatures()
  152. {
  153. return $this->enabledFeatures;
  154. }
  155. /**
  156. * @param string
  157. */
  158. public function setId($id)
  159. {
  160. $this->id = $id;
  161. }
  162. /**
  163. * @return string
  164. */
  165. public function getId()
  166. {
  167. return $this->id;
  168. }
  169. /**
  170. * @param Instance[]
  171. */
  172. public function setInstances($instances)
  173. {
  174. $this->instances = $instances;
  175. }
  176. /**
  177. * @return Instance[]
  178. */
  179. public function getInstances()
  180. {
  181. return $this->instances;
  182. }
  183. /**
  184. * @param string
  185. */
  186. public function setKind($kind)
  187. {
  188. $this->kind = $kind;
  189. }
  190. /**
  191. * @return string
  192. */
  193. public function getKind()
  194. {
  195. return $this->kind;
  196. }
  197. /**
  198. * @param string
  199. */
  200. public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
  201. {
  202. $this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
  203. }
  204. /**
  205. * @return string
  206. */
  207. public function getLastUpdatedTimestamp()
  208. {
  209. return $this->lastUpdatedTimestamp;
  210. }
  211. /**
  212. * @param int
  213. */
  214. public function setLeaderboardCount($leaderboardCount)
  215. {
  216. $this->leaderboardCount = $leaderboardCount;
  217. }
  218. /**
  219. * @return int
  220. */
  221. public function getLeaderboardCount()
  222. {
  223. return $this->leaderboardCount;
  224. }
  225. /**
  226. * @param string
  227. */
  228. public function setName($name)
  229. {
  230. $this->name = $name;
  231. }
  232. /**
  233. * @return string
  234. */
  235. public function getName()
  236. {
  237. return $this->name;
  238. }
  239. /**
  240. * @param string
  241. */
  242. public function setThemeColor($themeColor)
  243. {
  244. $this->themeColor = $themeColor;
  245. }
  246. /**
  247. * @return string
  248. */
  249. public function getThemeColor()
  250. {
  251. return $this->themeColor;
  252. }
  253. }
  254. // Adding a class alias for backwards compatibility with the previous class name.
  255. class_alias(Application::class, 'Google_Service_Games_Application');