PageRenderTime 850ms CodeModel.GetById 64ms RepoModel.GetById 85ms app.codeStats 1ms

/profileroom/gapiclient/contrib/apiModeratorService.php

https://github.com/Web5design/gplus-experiments
PHP | 1894 lines | 1319 code | 100 blank | 475 comment | 60 complexity | 7a5a1d1894d75635278f9bf8693d2973 MD5 | raw file
Possible License(s): Apache-2.0
  1. <?php
  2. /*
  3. * Copyright (c) 2010 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. require_once 'service/apiModel.php';
  18. require_once 'service/apiService.php';
  19. require_once 'service/apiServiceRequest.php';
  20. /**
  21. * The "votes" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $moderatorService = new apiModeratorService(...);
  25. * $votes = $moderatorService->votes;
  26. * </code>
  27. */
  28. class VotesServiceResource extends apiServiceResource {
  29. /**
  30. * Inserts a new vote by the authenticated user for the specified submission within the specified
  31. * series. (votes.insert)
  32. *
  33. * @param string $seriesId The decimal ID of the Series.
  34. * @param string $submissionId The decimal ID of the Submission within the Series.
  35. * @param Vote $postBody
  36. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  37. *
  38. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  39. * @return Vote
  40. */
  41. public function insert($seriesId, $submissionId, Vote $postBody, $optParams = array()) {
  42. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  43. $params = array_merge($params, $optParams);
  44. $data = $this->__call('insert', array($params));
  45. if ($this->useObjects()) {
  46. return new Vote($data);
  47. } else {
  48. return $data;
  49. }
  50. }
  51. /**
  52. * Updates the votes by the authenticated user for the specified submission within the specified
  53. * series. This method supports patch semantics. (votes.patch)
  54. *
  55. * @param string $seriesId The decimal ID of the Series.
  56. * @param string $submissionId The decimal ID of the Submission within the Series.
  57. * @param Vote $postBody
  58. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  59. *
  60. * @opt_param string userId
  61. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  62. * @return Vote
  63. */
  64. public function patch($seriesId, $submissionId, Vote $postBody, $optParams = array()) {
  65. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  66. $params = array_merge($params, $optParams);
  67. $data = $this->__call('patch', array($params));
  68. if ($this->useObjects()) {
  69. return new Vote($data);
  70. } else {
  71. return $data;
  72. }
  73. }
  74. /**
  75. * Lists the votes by the authenticated user for the given series. (votes.list)
  76. *
  77. * @param string $seriesId The decimal ID of the Series.
  78. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  79. *
  80. * @opt_param string max-results Maximum number of results to return.
  81. * @opt_param string start-index Index of the first result to be retrieved.
  82. * @return VoteList
  83. */
  84. public function listVotes($seriesId, $optParams = array()) {
  85. $params = array('seriesId' => $seriesId);
  86. $params = array_merge($params, $optParams);
  87. $data = $this->__call('list', array($params));
  88. if ($this->useObjects()) {
  89. return new VoteList($data);
  90. } else {
  91. return $data;
  92. }
  93. }
  94. /**
  95. * Updates the votes by the authenticated user for the specified submission within the specified
  96. * series. (votes.update)
  97. *
  98. * @param string $seriesId The decimal ID of the Series.
  99. * @param string $submissionId The decimal ID of the Submission within the Series.
  100. * @param Vote $postBody
  101. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  102. *
  103. * @opt_param string userId
  104. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  105. * @return Vote
  106. */
  107. public function update($seriesId, $submissionId, Vote $postBody, $optParams = array()) {
  108. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  109. $params = array_merge($params, $optParams);
  110. $data = $this->__call('update', array($params));
  111. if ($this->useObjects()) {
  112. return new Vote($data);
  113. } else {
  114. return $data;
  115. }
  116. }
  117. /**
  118. * Returns the votes by the authenticated user for the specified submission within the specified
  119. * series. (votes.get)
  120. *
  121. * @param string $seriesId The decimal ID of the Series.
  122. * @param string $submissionId The decimal ID of the Submission within the Series.
  123. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  124. *
  125. * @opt_param string userId
  126. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  127. * @return Vote
  128. */
  129. public function get($seriesId, $submissionId, $optParams = array()) {
  130. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  131. $params = array_merge($params, $optParams);
  132. $data = $this->__call('get', array($params));
  133. if ($this->useObjects()) {
  134. return new Vote($data);
  135. } else {
  136. return $data;
  137. }
  138. }
  139. }
  140. /**
  141. * The "responses" collection of methods.
  142. * Typical usage is:
  143. * <code>
  144. * $moderatorService = new apiModeratorService(...);
  145. * $responses = $moderatorService->responses;
  146. * </code>
  147. */
  148. class ResponsesServiceResource extends apiServiceResource {
  149. /**
  150. * Inserts a response for the specified submission in the specified topic within the specified
  151. * series. (responses.insert)
  152. *
  153. * @param string $seriesId The decimal ID of the Series.
  154. * @param string $topicId The decimal ID of the Topic within the Series.
  155. * @param string $parentSubmissionId The decimal ID of the parent Submission within the Series.
  156. * @param Submission $postBody
  157. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  158. *
  159. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  160. * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
  161. * @return Submission
  162. */
  163. public function insert($seriesId, $topicId, $parentSubmissionId, Submission $postBody, $optParams = array()) {
  164. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmissionId' => $parentSubmissionId, 'postBody' => $postBody);
  165. $params = array_merge($params, $optParams);
  166. $data = $this->__call('insert', array($params));
  167. if ($this->useObjects()) {
  168. return new Submission($data);
  169. } else {
  170. return $data;
  171. }
  172. }
  173. /**
  174. * Lists or searches the responses for the specified submission within the specified series and
  175. * returns the search results. (responses.list)
  176. *
  177. * @param string $seriesId The decimal ID of the Series.
  178. * @param string $submissionId The decimal ID of the Submission within the Series.
  179. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  180. *
  181. * @opt_param string max-results Maximum number of results to return.
  182. * @opt_param string sort Sort order.
  183. * @opt_param string author Restricts the results to submissions by a specific author.
  184. * @opt_param string start-index Index of the first result to be retrieved.
  185. * @opt_param string q Search query.
  186. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  187. * @return SubmissionList
  188. */
  189. public function listResponses($seriesId, $submissionId, $optParams = array()) {
  190. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  191. $params = array_merge($params, $optParams);
  192. $data = $this->__call('list', array($params));
  193. if ($this->useObjects()) {
  194. return new SubmissionList($data);
  195. } else {
  196. return $data;
  197. }
  198. }
  199. }
  200. /**
  201. * The "tags" collection of methods.
  202. * Typical usage is:
  203. * <code>
  204. * $moderatorService = new apiModeratorService(...);
  205. * $tags = $moderatorService->tags;
  206. * </code>
  207. */
  208. class TagsServiceResource extends apiServiceResource {
  209. /**
  210. * Inserts a new tag for the specified submission within the specified series. (tags.insert)
  211. *
  212. * @param string $seriesId The decimal ID of the Series.
  213. * @param string $submissionId The decimal ID of the Submission within the Series.
  214. * @param Tag $postBody
  215. * @return Tag
  216. */
  217. public function insert($seriesId, $submissionId, Tag $postBody, $optParams = array()) {
  218. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  219. $params = array_merge($params, $optParams);
  220. $data = $this->__call('insert', array($params));
  221. if ($this->useObjects()) {
  222. return new Tag($data);
  223. } else {
  224. return $data;
  225. }
  226. }
  227. /**
  228. * Lists all tags for the specified submission within the specified series. (tags.list)
  229. *
  230. * @param string $seriesId The decimal ID of the Series.
  231. * @param string $submissionId The decimal ID of the Submission within the Series.
  232. * @return TagList
  233. */
  234. public function listTags($seriesId, $submissionId, $optParams = array()) {
  235. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  236. $params = array_merge($params, $optParams);
  237. $data = $this->__call('list', array($params));
  238. if ($this->useObjects()) {
  239. return new TagList($data);
  240. } else {
  241. return $data;
  242. }
  243. }
  244. /**
  245. * Deletes the specified tag from the specified submission within the specified series.
  246. * (tags.delete)
  247. *
  248. * @param string $seriesId The decimal ID of the Series.
  249. * @param string $submissionId The decimal ID of the Submission within the Series.
  250. * @param string $tagId
  251. */
  252. public function delete($seriesId, $submissionId, $tagId, $optParams = array()) {
  253. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'tagId' => $tagId);
  254. $params = array_merge($params, $optParams);
  255. $data = $this->__call('delete', array($params));
  256. return $data;
  257. }
  258. }
  259. /**
  260. * The "series" collection of methods.
  261. * Typical usage is:
  262. * <code>
  263. * $moderatorService = new apiModeratorService(...);
  264. * $series = $moderatorService->series;
  265. * </code>
  266. */
  267. class SeriesServiceResource extends apiServiceResource {
  268. /**
  269. * Inserts a new series. (series.insert)
  270. *
  271. * @param Series $postBody
  272. * @return Series
  273. */
  274. public function insert(Series $postBody, $optParams = array()) {
  275. $params = array('postBody' => $postBody);
  276. $params = array_merge($params, $optParams);
  277. $data = $this->__call('insert', array($params));
  278. if ($this->useObjects()) {
  279. return new Series($data);
  280. } else {
  281. return $data;
  282. }
  283. }
  284. /**
  285. * Updates the specified series. This method supports patch semantics. (series.patch)
  286. *
  287. * @param string $seriesId The decimal ID of the Series.
  288. * @param Series $postBody
  289. * @return Series
  290. */
  291. public function patch($seriesId, Series $postBody, $optParams = array()) {
  292. $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
  293. $params = array_merge($params, $optParams);
  294. $data = $this->__call('patch', array($params));
  295. if ($this->useObjects()) {
  296. return new Series($data);
  297. } else {
  298. return $data;
  299. }
  300. }
  301. /**
  302. * Searches the series and returns the search results. (series.list)
  303. *
  304. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  305. *
  306. * @opt_param string max-results Maximum number of results to return.
  307. * @opt_param string q Search query.
  308. * @opt_param string start-index Index of the first result to be retrieved.
  309. * @return SeriesList
  310. */
  311. public function listSeries($optParams = array()) {
  312. $params = array();
  313. $params = array_merge($params, $optParams);
  314. $data = $this->__call('list', array($params));
  315. if ($this->useObjects()) {
  316. return new SeriesList($data);
  317. } else {
  318. return $data;
  319. }
  320. }
  321. /**
  322. * Updates the specified series. (series.update)
  323. *
  324. * @param string $seriesId The decimal ID of the Series.
  325. * @param Series $postBody
  326. * @return Series
  327. */
  328. public function update($seriesId, Series $postBody, $optParams = array()) {
  329. $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
  330. $params = array_merge($params, $optParams);
  331. $data = $this->__call('update', array($params));
  332. if ($this->useObjects()) {
  333. return new Series($data);
  334. } else {
  335. return $data;
  336. }
  337. }
  338. /**
  339. * Returns the specified series. (series.get)
  340. *
  341. * @param string $seriesId The decimal ID of the Series.
  342. * @return Series
  343. */
  344. public function get($seriesId, $optParams = array()) {
  345. $params = array('seriesId' => $seriesId);
  346. $params = array_merge($params, $optParams);
  347. $data = $this->__call('get', array($params));
  348. if ($this->useObjects()) {
  349. return new Series($data);
  350. } else {
  351. return $data;
  352. }
  353. }
  354. }
  355. /**
  356. * The "submissions" collection of methods.
  357. * Typical usage is:
  358. * <code>
  359. * $moderatorService = new apiModeratorService(...);
  360. * $submissions = $moderatorService->submissions;
  361. * </code>
  362. */
  363. class SeriesSubmissionsServiceResource extends apiServiceResource {
  364. /**
  365. * Searches the submissions for the specified series and returns the search results.
  366. * (submissions.list)
  367. *
  368. * @param string $seriesId The decimal ID of the Series.
  369. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  370. *
  371. * @opt_param string lang The language code for the language the client prefers resuls in.
  372. * @opt_param string max-results Maximum number of results to return.
  373. * @opt_param bool includeVotes Specifies whether to include the current user's vote
  374. * @opt_param string start-index Index of the first result to be retrieved.
  375. * @opt_param string author Restricts the results to submissions by a specific author.
  376. * @opt_param string sort Sort order.
  377. * @opt_param string q Search query.
  378. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  379. * @return SubmissionList
  380. */
  381. public function listSeriesSubmissions($seriesId, $optParams = array()) {
  382. $params = array('seriesId' => $seriesId);
  383. $params = array_merge($params, $optParams);
  384. $data = $this->__call('list', array($params));
  385. if ($this->useObjects()) {
  386. return new SubmissionList($data);
  387. } else {
  388. return $data;
  389. }
  390. }
  391. }
  392. /**
  393. * The "responses" collection of methods.
  394. * Typical usage is:
  395. * <code>
  396. * $moderatorService = new apiModeratorService(...);
  397. * $responses = $moderatorService->responses;
  398. * </code>
  399. */
  400. class SeriesResponsesServiceResource extends apiServiceResource {
  401. /**
  402. * Searches the responses for the specified series and returns the search results. (responses.list)
  403. *
  404. * @param string $seriesId The decimal ID of the Series.
  405. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  406. *
  407. * @opt_param string max-results Maximum number of results to return.
  408. * @opt_param string sort Sort order.
  409. * @opt_param string author Restricts the results to submissions by a specific author.
  410. * @opt_param string start-index Index of the first result to be retrieved.
  411. * @opt_param string q Search query.
  412. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  413. * @return SeriesList
  414. */
  415. public function listSeriesResponses($seriesId, $optParams = array()) {
  416. $params = array('seriesId' => $seriesId);
  417. $params = array_merge($params, $optParams);
  418. $data = $this->__call('list', array($params));
  419. if ($this->useObjects()) {
  420. return new SeriesList($data);
  421. } else {
  422. return $data;
  423. }
  424. }
  425. }
  426. /**
  427. * The "topics" collection of methods.
  428. * Typical usage is:
  429. * <code>
  430. * $moderatorService = new apiModeratorService(...);
  431. * $topics = $moderatorService->topics;
  432. * </code>
  433. */
  434. class TopicsServiceResource extends apiServiceResource {
  435. /**
  436. * Inserts a new topic into the specified series. (topics.insert)
  437. *
  438. * @param string $seriesId The decimal ID of the Series.
  439. * @param Topic $postBody
  440. * @return Topic
  441. */
  442. public function insert($seriesId, Topic $postBody, $optParams = array()) {
  443. $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
  444. $params = array_merge($params, $optParams);
  445. $data = $this->__call('insert', array($params));
  446. if ($this->useObjects()) {
  447. return new Topic($data);
  448. } else {
  449. return $data;
  450. }
  451. }
  452. /**
  453. * Searches the topics within the specified series and returns the search results. (topics.list)
  454. *
  455. * @param string $seriesId The decimal ID of the Series.
  456. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  457. *
  458. * @opt_param string max-results Maximum number of results to return.
  459. * @opt_param string q Search query.
  460. * @opt_param string start-index Index of the first result to be retrieved.
  461. * @opt_param string mode
  462. * @return TopicList
  463. */
  464. public function listTopics($seriesId, $optParams = array()) {
  465. $params = array('seriesId' => $seriesId);
  466. $params = array_merge($params, $optParams);
  467. $data = $this->__call('list', array($params));
  468. if ($this->useObjects()) {
  469. return new TopicList($data);
  470. } else {
  471. return $data;
  472. }
  473. }
  474. /**
  475. * Updates the specified topic within the specified series. (topics.update)
  476. *
  477. * @param string $seriesId The decimal ID of the Series.
  478. * @param string $topicId The decimal ID of the Topic within the Series.
  479. * @param Topic $postBody
  480. * @return Topic
  481. */
  482. public function update($seriesId, $topicId, Topic $postBody, $optParams = array()) {
  483. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
  484. $params = array_merge($params, $optParams);
  485. $data = $this->__call('update', array($params));
  486. if ($this->useObjects()) {
  487. return new Topic($data);
  488. } else {
  489. return $data;
  490. }
  491. }
  492. /**
  493. * Returns the specified topic from the specified series. (topics.get)
  494. *
  495. * @param string $seriesId The decimal ID of the Series.
  496. * @param string $topicId The decimal ID of the Topic within the Series.
  497. * @return Topic
  498. */
  499. public function get($seriesId, $topicId, $optParams = array()) {
  500. $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
  501. $params = array_merge($params, $optParams);
  502. $data = $this->__call('get', array($params));
  503. if ($this->useObjects()) {
  504. return new Topic($data);
  505. } else {
  506. return $data;
  507. }
  508. }
  509. }
  510. /**
  511. * The "submissions" collection of methods.
  512. * Typical usage is:
  513. * <code>
  514. * $moderatorService = new apiModeratorService(...);
  515. * $submissions = $moderatorService->submissions;
  516. * </code>
  517. */
  518. class TopicsSubmissionsServiceResource extends apiServiceResource {
  519. /**
  520. * Searches the submissions for the specified topic within the specified series and returns the
  521. * search results. (submissions.list)
  522. *
  523. * @param string $seriesId The decimal ID of the Series.
  524. * @param string $topicId The decimal ID of the Topic within the Series.
  525. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  526. *
  527. * @opt_param string max-results Maximum number of results to return.
  528. * @opt_param bool includeVotes Specifies whether to include the current user's vote
  529. * @opt_param string start-index Index of the first result to be retrieved.
  530. * @opt_param string author Restricts the results to submissions by a specific author.
  531. * @opt_param string sort Sort order.
  532. * @opt_param string q Search query.
  533. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  534. * @return SubmissionList
  535. */
  536. public function listTopicsSubmissions($seriesId, $topicId, $optParams = array()) {
  537. $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
  538. $params = array_merge($params, $optParams);
  539. $data = $this->__call('list', array($params));
  540. if ($this->useObjects()) {
  541. return new SubmissionList($data);
  542. } else {
  543. return $data;
  544. }
  545. }
  546. }
  547. /**
  548. * The "global" collection of methods.
  549. * Typical usage is:
  550. * <code>
  551. * $moderatorService = new apiModeratorService(...);
  552. * $global = $moderatorService->global;
  553. * </code>
  554. */
  555. class ModeratorGlobalServiceResource extends apiServiceResource {
  556. }
  557. /**
  558. * The "series" collection of methods.
  559. * Typical usage is:
  560. * <code>
  561. * $moderatorService = new apiModeratorService(...);
  562. * $series = $moderatorService->series;
  563. * </code>
  564. */
  565. class ModeratorGlobalSeriesServiceResource extends apiServiceResource {
  566. /**
  567. * Searches the public series and returns the search results. (series.list)
  568. *
  569. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  570. *
  571. * @opt_param string max-results Maximum number of results to return.
  572. * @opt_param string q Search query.
  573. * @opt_param string start-index Index of the first result to be retrieved.
  574. * @return SeriesList
  575. */
  576. public function listModeratorGlobalSeries($optParams = array()) {
  577. $params = array();
  578. $params = array_merge($params, $optParams);
  579. $data = $this->__call('list', array($params));
  580. if ($this->useObjects()) {
  581. return new SeriesList($data);
  582. } else {
  583. return $data;
  584. }
  585. }
  586. }
  587. /**
  588. * The "profiles" collection of methods.
  589. * Typical usage is:
  590. * <code>
  591. * $moderatorService = new apiModeratorService(...);
  592. * $profiles = $moderatorService->profiles;
  593. * </code>
  594. */
  595. class ProfilesServiceResource extends apiServiceResource {
  596. /**
  597. * Updates the profile information for the authenticated user. This method supports patch semantics.
  598. * (profiles.patch)
  599. *
  600. * @param Profile $postBody
  601. * @return Profile
  602. */
  603. public function patch(Profile $postBody, $optParams = array()) {
  604. $params = array('postBody' => $postBody);
  605. $params = array_merge($params, $optParams);
  606. $data = $this->__call('patch', array($params));
  607. if ($this->useObjects()) {
  608. return new Profile($data);
  609. } else {
  610. return $data;
  611. }
  612. }
  613. /**
  614. * Updates the profile information for the authenticated user. (profiles.update)
  615. *
  616. * @param Profile $postBody
  617. * @return Profile
  618. */
  619. public function update(Profile $postBody, $optParams = array()) {
  620. $params = array('postBody' => $postBody);
  621. $params = array_merge($params, $optParams);
  622. $data = $this->__call('update', array($params));
  623. if ($this->useObjects()) {
  624. return new Profile($data);
  625. } else {
  626. return $data;
  627. }
  628. }
  629. /**
  630. * Returns the profile information for the authenticated user. (profiles.get)
  631. *
  632. * @return Profile
  633. */
  634. public function get($optParams = array()) {
  635. $params = array();
  636. $params = array_merge($params, $optParams);
  637. $data = $this->__call('get', array($params));
  638. if ($this->useObjects()) {
  639. return new Profile($data);
  640. } else {
  641. return $data;
  642. }
  643. }
  644. }
  645. /**
  646. * The "featured" collection of methods.
  647. * Typical usage is:
  648. * <code>
  649. * $moderatorService = new apiModeratorService(...);
  650. * $featured = $moderatorService->featured;
  651. * </code>
  652. */
  653. class FeaturedServiceResource extends apiServiceResource {
  654. }
  655. /**
  656. * The "series" collection of methods.
  657. * Typical usage is:
  658. * <code>
  659. * $moderatorService = new apiModeratorService(...);
  660. * $series = $moderatorService->series;
  661. * </code>
  662. */
  663. class FeaturedSeriesServiceResource extends apiServiceResource {
  664. /**
  665. * Lists the featured series. (series.list)
  666. *
  667. * @return SeriesList
  668. */
  669. public function listFeaturedSeries($optParams = array()) {
  670. $params = array();
  671. $params = array_merge($params, $optParams);
  672. $data = $this->__call('list', array($params));
  673. if ($this->useObjects()) {
  674. return new SeriesList($data);
  675. } else {
  676. return $data;
  677. }
  678. }
  679. }
  680. /**
  681. * The "myrecent" collection of methods.
  682. * Typical usage is:
  683. * <code>
  684. * $moderatorService = new apiModeratorService(...);
  685. * $myrecent = $moderatorService->myrecent;
  686. * </code>
  687. */
  688. class MyrecentServiceResource extends apiServiceResource {
  689. }
  690. /**
  691. * The "series" collection of methods.
  692. * Typical usage is:
  693. * <code>
  694. * $moderatorService = new apiModeratorService(...);
  695. * $series = $moderatorService->series;
  696. * </code>
  697. */
  698. class MyrecentSeriesServiceResource extends apiServiceResource {
  699. /**
  700. * Lists the series the authenticated user has visited. (series.list)
  701. *
  702. * @return SeriesList
  703. */
  704. public function listMyrecentSeries($optParams = array()) {
  705. $params = array();
  706. $params = array_merge($params, $optParams);
  707. $data = $this->__call('list', array($params));
  708. if ($this->useObjects()) {
  709. return new SeriesList($data);
  710. } else {
  711. return $data;
  712. }
  713. }
  714. }
  715. /**
  716. * The "my" collection of methods.
  717. * Typical usage is:
  718. * <code>
  719. * $moderatorService = new apiModeratorService(...);
  720. * $my = $moderatorService->my;
  721. * </code>
  722. */
  723. class MyServiceResource extends apiServiceResource {
  724. }
  725. /**
  726. * The "series" collection of methods.
  727. * Typical usage is:
  728. * <code>
  729. * $moderatorService = new apiModeratorService(...);
  730. * $series = $moderatorService->series;
  731. * </code>
  732. */
  733. class MySeriesServiceResource extends apiServiceResource {
  734. /**
  735. * Lists all series created by the authenticated user. (series.list)
  736. *
  737. * @return SeriesList
  738. */
  739. public function listMySeries($optParams = array()) {
  740. $params = array();
  741. $params = array_merge($params, $optParams);
  742. $data = $this->__call('list', array($params));
  743. if ($this->useObjects()) {
  744. return new SeriesList($data);
  745. } else {
  746. return $data;
  747. }
  748. }
  749. }
  750. /**
  751. * The "submissions" collection of methods.
  752. * Typical usage is:
  753. * <code>
  754. * $moderatorService = new apiModeratorService(...);
  755. * $submissions = $moderatorService->submissions;
  756. * </code>
  757. */
  758. class SubmissionsServiceResource extends apiServiceResource {
  759. /**
  760. * Inserts a new submission in the specified topic within the specified series. (submissions.insert)
  761. *
  762. * @param string $seriesId The decimal ID of the Series.
  763. * @param string $topicId The decimal ID of the Topic within the Series.
  764. * @param Submission $postBody
  765. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  766. *
  767. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  768. * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
  769. * @return Submission
  770. */
  771. public function insert($seriesId, $topicId, Submission $postBody, $optParams = array()) {
  772. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
  773. $params = array_merge($params, $optParams);
  774. $data = $this->__call('insert', array($params));
  775. if ($this->useObjects()) {
  776. return new Submission($data);
  777. } else {
  778. return $data;
  779. }
  780. }
  781. /**
  782. * Returns the specified submission within the specified series. (submissions.get)
  783. *
  784. * @param string $seriesId The decimal ID of the Series.
  785. * @param string $submissionId The decimal ID of the Submission within the Series.
  786. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  787. *
  788. * @opt_param string lang The language code for the language the client prefers resuls in.
  789. * @opt_param bool includeVotes Specifies whether to include the current user's vote
  790. * @return Submission
  791. */
  792. public function get($seriesId, $submissionId, $optParams = array()) {
  793. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  794. $params = array_merge($params, $optParams);
  795. $data = $this->__call('get', array($params));
  796. if ($this->useObjects()) {
  797. return new Submission($data);
  798. } else {
  799. return $data;
  800. }
  801. }
  802. }
  803. /**
  804. * Service definition for Moderator (v1).
  805. *
  806. * <p>
  807. * Moderator API
  808. * </p>
  809. *
  810. * <p>
  811. * For more information about this service, see the
  812. * <a href="http://code.google.com/apis/moderator/v1/using_rest.html" target="_blank">API Documentation</a>
  813. * </p>
  814. *
  815. * @author Google, Inc.
  816. */
  817. class apiModeratorService extends apiService {
  818. public $votes;
  819. public $responses;
  820. public $tags;
  821. public $series;
  822. public $series_submissions;
  823. public $series_responses;
  824. public $topics;
  825. public $topics_submissions;
  826. public $global;
  827. public $global_series;
  828. public $profiles;
  829. public $featured;
  830. public $featured_series;
  831. public $myrecent;
  832. public $myrecent_series;
  833. public $my;
  834. public $my_series;
  835. public $submissions;
  836. /**
  837. * Constructs the internal representation of the Moderator service.
  838. *
  839. * @param apiClient apiClient
  840. */
  841. public function __construct(apiClient $apiClient) {
  842. $this->rpcPath = '/rpc';
  843. $this->restBasePath = '/moderator/v1/';
  844. $this->version = 'v1';
  845. $this->serviceName = 'moderator';
  846. $apiClient->addService($this->serviceName, $this->version);
  847. $this->votes = new VotesServiceResource($this, $this->serviceName, 'votes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Vote"}, "id": "moderator.votes.insert", "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.votes.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}}, "id": "moderator.votes.list", "httpMethod": "GET", "path": "series/{seriesId}/votes/@me", "response": {"$ref": "VoteList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Vote"}, "id": "moderator.votes.update", "httpMethod": "PUT", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Vote"}, "id": "moderator.votes.patch", "httpMethod": "PATCH", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}}}', true));
  848. $this->responses = new ResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "parentSubmissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Submission"}, "id": "moderator.responses.insert", "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions/{parentSubmissionId}/responses", "response": {"$ref": "Submission"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "author": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/responses", "response": {"$ref": "SubmissionList"}}}}', true));
  849. $this->tags = new TagsServiceResource($this, $this->serviceName, 'tags', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Tag"}, "id": "moderator.tags.insert", "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "Tag"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.tags.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "TagList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "tagId": {"required": true, "type": "string", "location": "path"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "httpMethod": "DELETE", "path": "series/{seriesId}/submissions/{submissionId}/tags/{tagId}", "id": "moderator.tags.delete"}}}', true));
  850. $this->series = new SeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "POST", "path": "series", "id": "moderator.series.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.series.get", "httpMethod": "GET", "path": "series/{seriesId}", "response": {"$ref": "Series"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "series", "id": "moderator.series.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Series"}, "id": "moderator.series.update", "httpMethod": "PUT", "path": "series/{seriesId}", "response": {"$ref": "Series"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Series"}, "id": "moderator.series.patch", "httpMethod": "PATCH", "path": "series/{seriesId}", "response": {"$ref": "Series"}}}}', true));
  851. $this->series_submissions = new SeriesSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "max-results": {"format": "uint32", "type": "integer", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "author": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "includeVotes": {"type": "boolean", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
  852. $this->series_responses = new SeriesResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "author": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/responses", "response": {"$ref": "SeriesList"}}}}', true));
  853. $this->topics = new TopicsServiceResource($this, $this->serviceName, 'topics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Topic"}, "id": "moderator.topics.insert", "httpMethod": "POST", "path": "series/{seriesId}/topics", "response": {"$ref": "Topic"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "mode": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.topics.list", "httpMethod": "GET", "path": "series/{seriesId}/topics", "response": {"$ref": "TopicList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Topic"}, "id": "moderator.topics.update", "httpMethod": "PUT", "path": "series/{seriesId}/topics/{topicId}", "response": {"$ref": "Topic"}}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.topics.get", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}", "response": {"$ref": "Topic"}}}}', true));
  854. $this->topics_submissions = new TopicsSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "includeVotes": {"type": "boolean", "location": "query"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "author": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.topics.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
  855. $this->global = new ModeratorGlobalServiceResource($this, $this->serviceName, 'global', json_decode('{}', true));
  856. $this->global_series = new ModeratorGlobalSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "search", "id": "moderator.global.series.list"}}}', true));
  857. $this->profiles = new ProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.profiles.get", "httpMethod": "GET", "path": "profiles/@me", "response": {"$ref": "Profile"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PUT", "path": "profiles/@me", "id": "moderator.profiles.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PATCH", "path": "profiles/@me", "id": "moderator.profiles.patch"}}}', true));
  858. $this->featured = new FeaturedServiceResource($this, $this->serviceName, 'featured', json_decode('{}', true));
  859. $this->featured_series = new FeaturedSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.featured.series.list", "httpMethod": "GET", "path": "series/featured", "response": {"$ref": "SeriesList"}}}}', true));
  860. $this->myrecent = new MyrecentServiceResource($this, $this->serviceName, 'myrecent', json_decode('{}', true));
  861. $this->myrecent_series = new MyrecentSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.myrecent.series.list", "httpMethod": "GET", "path": "series/@me/recent", "response": {"$ref": "SeriesList"}}}}', true));
  862. $this->my = new MyServiceResource($this, $this->serviceName, 'my', json_decode('{}', true));
  863. $this->my_series = new MySeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.my.series.list", "httpMethod": "GET", "path": "series/@me/mine", "response": {"$ref": "SeriesList"}}}}', true));
  864. $this->submissions = new SubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Submission"}, "id": "moderator.submissions.insert", "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions", "response": {"$ref": "Submission"}}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "includeVotes": {"type": "boolean", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.submissions.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}", "response": {"$ref": "Submission"}}}}', true));
  865. }
  866. }
  867. class ModeratorTopicsResourcePartial extends apiModel {
  868. protected $__idType = 'ModeratorTopicsResourcePartialId';
  869. protected $__idDataType = '';
  870. public $id;
  871. public function setId(ModeratorTopicsResourcePartialId $id) {
  872. $this->id = $id;
  873. }
  874. public function getId() {
  875. return $this->id;
  876. }
  877. }
  878. class ModeratorTopicsResourcePartialId extends apiModel {
  879. public $seriesId;
  880. public $topicId;
  881. public function setSeriesId($seriesId) {
  882. $this->seriesId = $seriesId;
  883. }
  884. public function getSeriesId() {
  885. return $this->seriesId;
  886. }
  887. public function setTopicId($topicId) {
  888. $this->topicId = $topicId;
  889. }
  890. public function getTopicId() {
  891. return $this->topicId;
  892. }
  893. }
  894. class ModeratorVotesResourcePartial extends apiModel {
  895. public $vote;
  896. public $flag;
  897. public function setVote($vote) {
  898. $this->vote = $vote;
  899. }
  900. public function getVote() {
  901. return $this->vote;
  902. }
  903. public function setFlag($flag) {
  904. $this->flag = $flag;
  905. }
  906. public function getFlag() {
  907. return $this->flag;
  908. }
  909. }
  910. class Profile extends apiModel {
  911. public $kind;
  912. protected $__attributionType = 'ProfileAttribution';
  913. protected $__attributionDataType = '';
  914. public $attribution;
  915. protected $__idType = 'ProfileId';
  916. protected $__idDataType = '';
  917. public $id;
  918. public function setKind($kind) {
  919. $this->kind = $kind;
  920. }
  921. public function getKind() {
  922. return $this->kind;
  923. }
  924. public function setAttribution(ProfileAttribution $attribution) {
  925. $this->attribution = $attribution;
  926. }
  927. public function getAttribution() {
  928. return $this->attribution;
  929. }
  930. public function setId(ProfileId $id) {
  931. $this->id = $id;
  932. }
  933. public function getId() {
  934. return $this->id;
  935. }
  936. }
  937. class ProfileAttribution extends apiModel {
  938. protected $__geoType = 'ProfileAttributionGeo';
  939. protected $__geoDataType = '';
  940. public $geo;
  941. public $displayName;
  942. public $location;
  943. public $avatarUrl;
  944. public function setGeo(ProfileAttributionGeo $geo) {
  945. $this->geo = $geo;
  946. }
  947. public function getGeo() {
  948. return $this->geo;
  949. }
  950. public function setDisplayName($displayName) {
  951. $this->displayName = $displayName;
  952. }
  953. public function getDisplayName() {
  954. return $this->displayName;
  955. }
  956. public function setLocation($location) {
  957. $this->location = $location;
  958. }
  959. public function getLocation() {
  960. return $this->location;
  961. }
  962. public function setAvatarUrl($avatarUrl) {
  963. $this->avatarUrl = $avatarUrl;
  964. }
  965. public function getAvatarUrl() {
  966. return $this->avatarUrl;
  967. }
  968. }
  969. class ProfileAttributionGeo extends apiModel {
  970. public $latitude;
  971. public $location;
  972. public $longitude;
  973. public function setLatitude($latitude) {
  974. $this->latitude = $latitude;
  975. }
  976. public function getLatitude() {
  977. return $this->latitude;
  978. }
  979. public function setLocation($location) {
  980. $this->location = $location;
  981. }
  982. public function getLocation() {
  983. return $this->location;
  984. }
  985. public function setLongitude($longitude) {
  986. $this->longitude = $longitude;
  987. }
  988. public function getLongitude() {
  989. return $this->longitude;
  990. }
  991. }
  992. class ProfileId extends apiModel {
  993. public $user;
  994. public function setUser($user) {
  995. $this->user = $user;
  996. }
  997. public function getUser() {
  998. return $this->user;
  999. }
  1000. }
  1001. class Series extends apiModel {
  1002. public $kind;
  1003. public $description;
  1004. protected $__rulesType = 'SeriesRules';
  1005. protected $__rulesDataType = '';
  1006. public $rules;
  1007. public $unauthVotingAllowed;
  1008. public $videoSubmissionAllowed;
  1009. public $name;
  1010. public $numTopics;
  1011. public $anonymousSubmissionAllowed;
  1012. public $unauthSubmissionAllowed;
  1013. protected $__idType = 'SeriesId';
  1014. protected $__idDataType = '';
  1015. public $id;
  1016. protected $__countersType = 'SeriesCounters';
  1017. protected $__countersDataType = '';
  1018. public $counters;
  1019. public function setKind($kind) {
  1020. $this->kind = $kind;
  1021. }
  1022. public function getKind() {
  1023. return $this->kind;
  1024. }
  1025. public function setDescription($description) {
  1026. $this->description = $description;
  1027. }
  1028. public function getDescription() {
  1029. return $this->description;
  1030. }
  1031. public function setRules(SeriesRules $rules) {
  1032. $this->rules = $rules;
  1033. }
  1034. public function getRules() {
  1035. return $this->rules;
  1036. }
  1037. public function setUnauthVotingAllowed($unauthVotingAllowed) {
  1038. $this->unauthVotingAllowed = $unauthVotingAllowed;
  1039. }
  1040. public function getUnauthVotingAllowed() {
  1041. return $this->unauthVotingAllowed;
  1042. }
  1043. public function setVideoSubmissionAllowed($videoSubmissionAllowed) {
  1044. $this->videoSubmissionAllowed = $videoSubmissionAllowed;
  1045. }
  1046. public function getVideoSubmissionAllowed() {
  1047. return $this->videoSubmissionAllowed;
  1048. }
  1049. public function setName($name) {
  1050. $this->name = $name;
  1051. }
  1052. public function getName() {
  1053. return $this->name;
  1054. }
  1055. public function setNumTopics($numTopics) {
  1056. $this->numTopics = $numTopics;
  1057. }
  1058. public function getNumTopics() {
  1059. return $this->numTopics;
  1060. }
  1061. public function setAnonymousSubmissionAllowed($anonymousSubmissionAllowed) {
  1062. $this->anonymousSubmissionAllowed = $anonymousSubmissionAllowed;
  1063. }
  1064. public function getAnonymousSubmissionAllowed() {
  1065. return $this->anonymousSubmissionAllowed;
  1066. }
  1067. public function setUnauthSubmissionAllowed($unauthSubmissionAllowed) {
  1068. $this->unauthSubmissionAllowed = $unauthSubmissionAllowed;
  1069. }
  1070. public function getUnauthSubmissionAllowed() {
  1071. return $this->unauthSubmissionAllowed;
  1072. }
  1073. public function setId(SeriesId $id) {
  1074. $this->id = $id;
  1075. }
  1076. public function getId() {
  1077. return $this->id;
  1078. }
  1079. public function setCounters(SeriesCounters $counters) {
  1080. $this->counters = $counters;
  1081. }
  1082. public function getCounters() {
  1083. return $this->counters;
  1084. }
  1085. }
  1086. class SeriesCounters extends apiModel {
  1087. public $users;
  1088. public $noneVotes;
  1089. public $videoSubmissions;
  1090. public $minusVotes;
  1091. public $anonymousSubmissions;
  1092. public $submissions;
  1093. public $plusVotes;
  1094. public function setUsers($users) {
  1095. $this->users = $users;
  1096. }
  1097. public function getUsers() {
  1098. return $this->users;
  1099. }
  1100. public function setNoneVotes($noneVotes) {
  1101. $this->noneVotes = $noneVotes;
  1102. }
  1103. public function getNoneVotes() {
  1104. return $this->noneVotes;
  1105. }
  1106. public function setVideoSubmissions($videoSubmissions) {
  1107. $this->videoSubmissions = $videoSubmissions;
  1108. }
  1109. public function getVideoSubmissions() {
  1110. return $this->videoSubmissions;
  1111. }
  1112. public function setMinusVotes($minusVotes) {
  1113. $this->minusVotes = $minusVotes;
  1114. }
  1115. public function getMinusVotes() {
  1116. return $this->minusVotes;
  1117. }
  1118. public function setAnonymousSubmissions($anonymousSubmissions) {
  1119. $this->anonymousSubmissions = $anonymousSubmissions;
  1120. }
  1121. public function getAnonymousSubmissions() {
  1122. return $this->anonymousSubmissions;
  1123. }
  1124. public function setSubmissions($submissions) {
  1125. $this->submissions = $submissions;
  1126. }
  1127. public function getSubmissions() {
  1128. return $this->submissions;
  1129. }
  1130. public function setPlusVotes($plusVotes) {
  1131. $this->plusVotes = $plusVotes;
  1132. }
  1133. public function getPlusVotes() {
  1134. return $this->plusVotes;
  1135. }
  1136. }
  1137. class SeriesId extends apiModel {
  1138. public $seriesId;
  1139. public function setSeriesId($seriesId) {
  1140. $this->seriesId = $seriesId;
  1141. }
  1142. public function getSeriesId() {
  1143. return $this->seriesId;
  1144. }
  1145. }
  1146. class SeriesList extends apiModel {
  1147. protected $__itemsType = 'Series';
  1148. protected $__itemsDataType = 'array';
  1149. public $items;
  1150. public $kind;
  1151. public function setItems(/* array(Series) */ $items) {
  1152. $this->assertIsArray($items, 'Series', __METHOD__);
  1153. $this->items = $items;
  1154. }
  1155. public function getItems() {
  1156. return $this->items;
  1157. }
  1158. public function setKind($kind) {
  1159. $this->kind = $kind;
  1160. }
  1161. public function getKind() {
  1162. return $this->kind;
  1163. }
  1164. }
  1165. class SeriesRules extends apiModel {
  1166. protected $__votesType = 'SeriesRulesVotes';
  1167. protected $__votesDataType = '';
  1168. public $votes;
  1169. protected $__submissionsType = 'SeriesRulesSubmissions';
  1170. protected $__submissionsDataType = '';
  1171. public $submissions;
  1172. public function setVotes(SeriesRulesVotes $votes) {
  1173. $this->votes = $votes;
  1174. }
  1175. public function getVotes() {
  1176. return $this->votes;
  1177. }
  1178. public function setSubmissions(SeriesRulesSubmissions $submissions) {
  1179. $this->submissions = $submissions;
  1180. }
  1181. public function getSubmissions() {
  1182. return $this->submissions;
  1183. }
  1184. }
  1185. class SeriesRulesSubmissions extends apiModel {
  1186. public $close;
  1187. public $open;
  1188. public function setClose($close) {
  1189. $this->close = $close;
  1190. }
  1191. public function getClose() {
  1192. return $this->close;
  1193. }
  1194. public function setOpen($open) {
  1195. $this->open = $open;
  1196. }
  1197. public function getOpen() {
  1198. return $this->open;
  1199. }
  1200. }
  1201. class SeriesRulesVotes extends apiModel {
  1202. public $close;
  1203. public $open;
  1204. public function setClose($close) {
  1205. $this->close = $close;
  1206. }
  1207. public function getClose() {
  1208. return $this->close;
  1209. }
  1210. public function setOpen($open) {
  1211. $this->open = $open;
  1212. }
  1213. public function getOpen() {
  1214. return $this->open;
  1215. }
  1216. }
  1217. class Submission extends apiModel {
  1218. public $kind;
  1219. protected $__attributionType = 'SubmissionAttribution';
  1220. protected $__attributionDataType = '';
  1221. public $attribution;
  1222. public $created;
  1223. public $text;
  1224. protected $__topicsType = 'ModeratorTopicsResourcePartial';
  1225. protected $__topicsDataType = 'array';
  1226. public $topics;
  1227. public $author;
  1228. protected $__translationsType = 'SubmissionTranslations';
  1229. protected $__translationsDataType = 'array';
  1230. public $translations;
  1231. protected $__parentSubmissionIdType = 'SubmissionParentSubmissionId';
  1232. protected $__parentSubmissionIdDataType = '';
  1233. public $parentSubmissionId;
  1234. protected $__voteType = 'ModeratorVotesResourcePartial';
  1235. protected $__voteDataType = '';
  1236. public $vote;
  1237. public $attachmentUrl;
  1238. protected $__geoType = 'SubmissionGeo';
  1239. protected $__geoDataType = '';
  1240. public $geo;
  1241. protected $__idType = 'SubmissionId';
  1242. protected $__idDataType = '';
  1243. public $id;
  1244. protected $__countersType = 'SubmissionCounters';
  1245. protected $__countersDataType = '';
  1246. public $counters;
  1247. public function setKind($kind) {
  1248. $this->kind = $kind;
  1249. }
  1250. public function getKind() {
  1251. return $this->kind;
  1252. }
  1253. public function setAttribution(SubmissionAttribution $attribution) {
  1254. $this->attribution = $attribution;
  1255. }
  1256. public function getAttribution() {
  1257. return $this->attribution;
  1258. }
  1259. public function setCreated($created) {
  1260. $this->created = $created;
  1261. }
  1262. public function getCreated() {
  1263. return $this->created;
  1264. }
  1265. public function setText($text) {
  1266. $this->text = $text;
  1267. }
  1268. public function getText() {
  1269. return $this->text;
  1270. }
  1271. public function setTopics(/* array(ModeratorTopicsResourcePartial) */ $topics) {
  1272. $this->assertIsArray($topics, 'ModeratorTopicsResourcePartial', __METHOD__);
  1273. $this->topics = $topics;
  1274. }
  1275. public function getTopics() {
  1276. return $this->topics;
  1277. }
  1278. public function setAuthor($author) {
  1279. $this->author = $author;
  1280. }
  1281. public function getAuthor() {
  1282. return $this->author;
  1283. }
  1284. public function setTranslations(/* array(SubmissionTranslations) */ $translations) {
  1285. $this->assertIsArray($translations, 'SubmissionTranslations', __METHOD__);
  1286. $this->translations = $translations;
  1287. }
  1288. public function getTranslations() {
  1289. return $this->translations;
  1290. }
  1291. public function setParentSubmissionId(SubmissionParentSubmissionId $parentSubmissionId) {
  1292. $this->parentSubmissionId = $parentSubmissionId;
  1293. }
  1294. public function getParentSubmissionId() {
  1295. return $this->parentSubmissionId;
  1296. }
  1297. public function setVote(ModeratorVotesResourcePartial $vote) {
  1298. $this->vote = $vote;
  1299. }
  1300. public function getVote() {
  1301. return $this->vote;
  1302. }
  1303. public function setAttachmentUrl($attachmentUrl) {
  1304. $this->attachmentUrl = $attachmentUrl;
  1305. }
  1306. public function getAttachmentUrl() {
  1307. return $this->attachmentUrl;
  1308. }
  1309. public function setGeo(SubmissionGeo $geo) {
  1310. $this->geo = $geo;
  1311. }
  1312. public function getGeo() {
  1313. return $this->geo;
  1314. }
  1315. public function setId(SubmissionId $id) {
  1316. $this->id = $id;
  1317. }
  1318. public function getId() {
  1319. return $this->id;
  1320. }
  1321. public function setCounters(SubmissionCounters $counters) {
  1322. $this->counters = $counters;
  1323. }
  1324. public function getCounters() {
  1325. return $this->counters;
  1326. }
  1327. }
  1328. class SubmissionAttribution extends apiModel {
  1329. public $displayName;
  1330. public $location;
  1331. public $avatarUrl;
  1332. public function setDisplayName($displayName) {
  1333. $this->displayName = $displayName;
  1334. }
  1335. public function getDisplayName() {
  1336. return $this->displayName;
  1337. }
  1338. public function setLocation($location) {
  1339. $this->location = $location;
  1340. }
  1341. public function getLocation() {
  1342. return $this->location;
  1343. }
  1344. public function setAvatarUrl($avatarUrl) {
  1345. $this->avatarUrl = $avatarUrl;
  1346. }
  1347. public function getAvatarUrl() {
  1348. return $this->avatarUrl;
  1349. }
  1350. }
  1351. class SubmissionCounters extends apiModel {
  1352. public $noneVotes;
  1353. public $minusVotes;
  1354. public $plusVotes;
  1355. public function setNoneVotes($noneVotes) {
  1356. $this->noneVotes = $noneVotes;
  1357. }
  1358. public function getNoneVotes() {
  1359. return $this->noneVotes;
  1360. }
  1361. public function setMinusVotes($minusVotes) {
  1362. $this->minusVotes = $minusVotes;
  1363. }
  1364. public function getMinusVotes() {
  1365. return $this->minusVotes;
  1366. }
  1367. public function setPlusVotes($plusVotes) {
  1368. $this->plusVotes = $plusVotes;
  1369. }
  1370. public function getPlusVotes() {
  1371. return $this->plusVotes;
  1372. }
  1373. }
  1374. class SubmissionGeo extends apiModel {
  1375. public $latitude;
  1376. public $location;
  1377. public $longitude;
  1378. public function setLatitude($latitude) {
  1379. $this->latitude = $latitude;
  1380. }
  1381. public function getLatitude() {
  1382. return $this->latitude;
  1383. }
  1384. public function setLocation($location) {
  1385. $this->location = $location;
  1386. }
  1387. public function getLocation() {
  1388. return $this->location;
  1389. }
  1390. public function setLongitude($longitude) {
  1391. $this->longitude = $longitude;
  1392. }
  1393. public function getLongitude() {
  1394. return $this->longitude;
  1395. }
  1396. }
  1397. class SubmissionId extends apiModel {
  1398. public $seriesId;
  1399. public $submissionId;
  1400. public function setSeriesId($seriesId) {
  1401. $this->seriesId = $seriesId;
  1402. }
  1403. public function getSeriesId() {
  1404. return $this->seriesId;
  1405. }
  1406. public function setSubmissionId($submissionId) {
  1407. $this->submissionId = $submissionId;
  1408. }
  1409. public function getSubmissionId() {
  1410. return $this->submissionId;
  1411. }
  1412. }
  1413. class SubmissionList extends apiModel {
  1414. protected $__itemsType = 'Submission';
  1415. protected $__itemsDataType = 'array';
  1416. public $items;
  1417. public $kind;
  1418. public function setItems(/* array(Submission) */ $items) {
  1419. $this->assertIsArray($items, 'Submission', __METHOD__);
  1420. $this->items = $items;
  1421. }
  1422. public function getItems() {
  1423. return $this->items;
  1424. }
  1425. public function setKind($kind) {
  1426. $this->kind = $kind;
  1427. }
  1428. public function getKind() {
  1429. return $this->kind;
  1430. }
  1431. }
  1432. class SubmissionParentSubmissionId extends apiModel {
  1433. public $seriesId;
  1434. public $submissionId;
  1435. public function setSeriesId($seriesId) {
  1436. $this->seriesId = $seriesId;
  1437. }
  1438. public function getSeriesId() {
  1439. return $this->seriesId;
  1440. }
  1441. public function setSubmissionId($submissionId) {
  1442. $this->submissionId = $submissionId;
  1443. }
  1444. public function getSubmissionId() {
  1445. return $this->submissionId;
  1446. }
  1447. }
  1448. class SubmissionTranslations extends apiModel {
  1449. public $lang;
  1450. public $text;
  1451. public function setLang($lang) {
  1452. $this->lang = $lang;
  1453. }
  1454. public function getLang() {
  1455. return $this->lang;
  1456. }
  1457. public function setText($text) {
  1458. $this->text = $text;
  1459. }
  1460. public function getText() {
  1461. return $this->text;
  1462. }
  1463. }
  1464. class Tag extends apiModel {
  1465. public $text;
  1466. public $kind;
  1467. protected $__idType = 'TagId';
  1468. protected $__idDataType = '';
  1469. public $id;
  1470. public function setText($text) {
  1471. $this->text = $text;
  1472. }
  1473. public function getText() {
  1474. return $this->text;
  1475. }
  1476. public function setKind($kind) {
  1477. $this->kind = $kind;
  1478. }
  1479. public function getKind() {
  1480. return $this->kind;
  1481. }
  1482. public function setId(TagId $id) {
  1483. $this->id = $id;
  1484. }
  1485. public function getId() {
  1486. return $this->id;
  1487. }
  1488. }
  1489. class TagId extends apiModel {
  1490. public $seriesId;
  1491. public $tagId;
  1492. public $submissionId;
  1493. public function setSeriesId($seriesId) {
  1494. $this->seriesId = $seriesId;
  1495. }
  1496. public function getSeriesId() {
  1497. return $this->seriesId;
  1498. }
  1499. public function setTagId($tagId) {
  1500. $this->tagId = $tagId;
  1501. }
  1502. public function getTagId() {
  1503. return $this->tagId;
  1504. }
  1505. public function setSubmissionId($submissionId) {
  1506. $this->submissionId = $submissionId;
  1507. }
  1508. public function getSubmissionId() {
  1509. return $this->submissionId;
  1510. }
  1511. }
  1512. class TagList extends apiModel {
  1513. protected $__itemsType = 'Tag';
  1514. protected $__itemsDataType = 'array';
  1515. public $items;
  1516. public $kind;
  1517. public function setItems(/* array(Tag) */ $items) {
  1518. $this->assertIsArray($items, 'Tag', __METHOD__);
  1519. $this->items = $items;
  1520. }
  1521. public function getItems() {
  1522. return $this->items;
  1523. }
  1524. public function setKind($kind) {
  1525. $this->kind = $kind;
  1526. }
  1527. public function getKind() {
  1528. return $this->kind;
  1529. }
  1530. }
  1531. class Topic extends apiModel {
  1532. public $kind;
  1533. public $description;
  1534. protected $__rulesType = 'TopicRules';
  1535. protected $__rulesDataType = '';
  1536. public $rules;
  1537. protected $__featuredSubmissionType = 'Submission';
  1538. protected $__featuredSubmissionDataType = '';
  1539. public $featuredSubmission;
  1540. public $presenter;
  1541. protected $__countersType = 'TopicCounters';
  1542. protected $__countersDataType = '';
  1543. public $counters;
  1544. protected $__idType = 'TopicId';
  1545. protected $__idDataType = '';
  1546. public $id;
  1547. public $name;
  1548. public function setKind($kind) {
  1549. $this->kind = $kind;
  1550. }
  1551. public function getKind() {
  1552. return $this->kind;
  1553. }
  1554. public function setDescription($description) {
  1555. $this->description = $description;
  1556. }
  1557. public function getDescription() {
  1558. return $this->description;
  1559. }
  1560. public function setRules(TopicRules $rules) {
  1561. $this->rules = $rules;
  1562. }
  1563. public function getRules() {
  1564. return $this->rules;
  1565. }
  1566. public function setFeaturedSubmission(Submission $featuredSubmission) {
  1567. $this->featuredSubmission = $featuredSubmission;
  1568. }
  1569. public function getFeaturedSubmission() {
  1570. return $this->featuredSubmission;
  1571. }
  1572. public function setPresenter($presenter) {
  1573. $this->presenter = $presenter;
  1574. }
  1575. public function getPresenter() {
  1576. return $this->presenter;
  1577. }
  1578. public function setCounters(TopicCounters $counters) {
  1579. $this->counters = $counters;
  1580. }
  1581. public function getCounters() {
  1582. return $this->counters;
  1583. }
  1584. public function setId(TopicId $id) {
  1585. $this->id = $id;
  1586. }
  1587. public function getId() {
  1588. return $this->id;
  1589. }
  1590. public function setName($name) {
  1591. $this->name = $name;
  1592. }
  1593. public function getName() {
  1594. return $this->name;
  1595. }
  1596. }
  1597. class TopicCounters extends apiModel {
  1598. public $users;
  1599. public $noneVotes;
  1600. public $videoSubmissions;
  1601. public $minusVotes;
  1602. public $submissions;
  1603. public $plusVotes;
  1604. public function setUsers($users) {
  1605. $this->users = $users;
  1606. }
  1607. public function getUsers() {
  1608. return $this->users;
  1609. }
  1610. public function setNoneVotes($noneVotes) {
  1611. $this->noneVotes = $noneVotes;
  1612. }
  1613. public function getNoneVotes() {
  1614. return $this->noneVotes;
  1615. }
  1616. public function setVideoSubmissions($videoSubmissions) {
  1617. $this->videoSubmissions = $videoSubmissions;
  1618. }
  1619. public function getVideoSubmissions() {
  1620. return $this->videoSubmissions;
  1621. }
  1622. public function setMinusVotes($minusVotes) {
  1623. $this->minusVotes = $minusVotes;
  1624. }
  1625. public function getMinusVotes() {
  1626. return $this->minusVotes;
  1627. }
  1628. public function setSubmissions($submissions) {
  1629. $this->submissions = $submissions;
  1630. }
  1631. public function getSubmissions() {
  1632. return $this->submissions;
  1633. }
  1634. public function setPlusVotes($plusVotes) {
  1635. $this->plusVotes = $plusVotes;
  1636. }
  1637. public function getPlusVotes() {
  1638. return $this->plusVotes;
  1639. }
  1640. }
  1641. class TopicId extends apiModel {
  1642. public $seriesId;
  1643. public $topicId;
  1644. public function setSeriesId($seriesId) {
  1645. $this->seriesId = $seriesId;
  1646. }
  1647. public function getSeriesId() {
  1648. return $this->seriesId;
  1649. }
  1650. public function setTopicId($topicId) {
  1651. $this->topicId = $topicId;
  1652. }
  1653. public function getTopicId() {
  1654. return $this->topicId;
  1655. }
  1656. }
  1657. class TopicList extends apiModel {
  1658. protected $__itemsType = 'Topic';
  1659. protected $__itemsDataType = 'array';
  1660. public $items;
  1661. public $kind;
  1662. public function setItems(/* array(Topic) */ $items) {
  1663. $this->assertIsArray($items, 'Topic', __METHOD__);
  1664. $this->items = $items;
  1665. }
  1666. public function getItems() {
  1667. return $this->items;
  1668. }
  1669. public function setKind($kind) {
  1670. $this->kind = $kind;
  1671. }
  1672. public function getKind() {
  1673. return $this->kind;
  1674. }
  1675. }
  1676. class TopicRules extends apiModel {
  1677. protected $__votesType = 'TopicRulesVotes';
  1678. protected $__votesDataType = '';
  1679. public $votes;
  1680. protected $__submissionsType = 'TopicRulesSubmissions';
  1681. protected $__submissionsDataType = '';
  1682. public $submissions;
  1683. public function setVotes(TopicRulesVotes $votes) {
  1684. $this->votes = $votes;
  1685. }
  1686. public function getVotes() {
  1687. return $this->votes;
  1688. }
  1689. public function setSubmissions(TopicRulesSubmissions $submissions) {
  1690. $this->submissions = $submissions;
  1691. }
  1692. public function getSubmissions() {
  1693. return $this->submissions;
  1694. }
  1695. }
  1696. class TopicRulesSubmissions extends apiModel {
  1697. public $close;
  1698. public $open;
  1699. public function setClose($close) {
  1700. $this->close = $close;
  1701. }
  1702. public function getClose() {
  1703. return $this->close;
  1704. }
  1705. public function setOpen($open) {
  1706. $this->open = $open;
  1707. }
  1708. public function getOpen() {
  1709. return $this->open;
  1710. }
  1711. }
  1712. class TopicRulesVotes extends apiModel {
  1713. public $close;
  1714. public $open;
  1715. public function setClose($close) {
  1716. $this->close = $close;
  1717. }
  1718. public function getClose() {
  1719. return $this->close;
  1720. }
  1721. public function setOpen($open) {
  1722. $this->open = $open;
  1723. }
  1724. public function getOpen() {
  1725. return $this->open;
  1726. }
  1727. }
  1728. class Vote extends apiModel {
  1729. public $vote;
  1730. public $flag;
  1731. protected $__idType = 'VoteId';
  1732. protected $__idDataType = '';
  1733. public $id;
  1734. public $kind;
  1735. public function setVote($vote) {
  1736. $this->vote = $vote;
  1737. }
  1738. public function getVote() {
  1739. return $this->vote;
  1740. }
  1741. public function setFlag($flag) {
  1742. $this->flag = $flag;
  1743. }
  1744. public function getFlag() {
  1745. return $this->flag;
  1746. }
  1747. public function setId(VoteId $id) {
  1748. $this->id = $id;
  1749. }
  1750. public function getId() {
  1751. return $this->id;
  1752. }
  1753. public function setKind($kind) {
  1754. $this->kind = $kind;
  1755. }
  1756. public function getKind() {
  1757. return $this->kind;
  1758. }
  1759. }
  1760. class VoteId extends apiModel {
  1761. public $seriesId;
  1762. public $submissionId;
  1763. public function setSeriesId($seriesId) {
  1764. $this->seriesId = $seriesId;
  1765. }
  1766. public function getSeriesId() {
  1767. return $this->seriesId;
  1768. }
  1769. public function setSubmissionId($submissionId) {
  1770. $this->submissionId = $submissionId;
  1771. }
  1772. public function getSubmissionId() {
  1773. return $this->submissionId;
  1774. }
  1775. }
  1776. class VoteList extends apiModel {
  1777. protected $__itemsType = 'Vote';
  1778. protected $__itemsDataType = 'array';
  1779. public $items;
  1780. public $kind;
  1781. public function setItems(/* array(Vote) */ $items) {
  1782. $this->assertIsArray($items, 'Vote', __METHOD__);
  1783. $this->items = $items;
  1784. }
  1785. public function getItems() {
  1786. return $this->items;
  1787. }
  1788. public function setKind($kind) {
  1789. $this->kind = $kind;
  1790. }
  1791. public function getKind() {
  1792. return $this->kind;
  1793. }
  1794. }