PageRenderTime 64ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 1ms

/vendor/google-api-php-client/src/contrib/apiModeratorService.php

https://github.com/siroken3/devtool
PHP | 1903 lines | 1328 code | 100 blank | 475 comment | 60 complexity | d445ae1b0f1a86f1648ab228c995b78e MD5 | raw file
Possible License(s): MIT, Apache-2.0, BSD-3-Clause, BSD-2-Clause
  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_submissions_submissions;
  824. public $series_submissions_responses;
  825. public $series_responses;
  826. public $series_responses_submissions;
  827. public $series_responses_responses;
  828. public $topics;
  829. public $topics_submissions;
  830. public $topics_submissions_submissions;
  831. public $global;
  832. public $global_series;
  833. public $global_series_series;
  834. public $profiles;
  835. public $featured;
  836. public $featured_series;
  837. public $featured_series_series;
  838. public $myrecent;
  839. public $myrecent_series;
  840. public $myrecent_series_series;
  841. public $my;
  842. public $my_series;
  843. public $my_series_series;
  844. public $submissions;
  845. /**
  846. * Constructs the internal representation of the Moderator service.
  847. *
  848. * @param apiClient apiClient
  849. */
  850. public function __construct(apiClient $apiClient) {
  851. $this->rpcPath = '/rpc';
  852. $this->restBasePath = '/moderator/v1/';
  853. $this->version = 'v1';
  854. $this->serviceName = 'moderator';
  855. $apiClient->addService($this->serviceName, $this->version);
  856. $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));
  857. $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));
  858. $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));
  859. $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));
  860. $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));
  861. $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));
  862. $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));
  863. $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));
  864. $this->global = new ModeratorGlobalServiceResource($this, $this->serviceName, 'global', json_decode('{}', true));
  865. $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));
  866. $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));
  867. $this->featured = new FeaturedServiceResource($this, $this->serviceName, 'featured', json_decode('{}', true));
  868. $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));
  869. $this->myrecent = new MyrecentServiceResource($this, $this->serviceName, 'myrecent', json_decode('{}', true));
  870. $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));
  871. $this->my = new MyServiceResource($this, $this->serviceName, 'my', json_decode('{}', true));
  872. $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));
  873. $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));
  874. }
  875. }
  876. class ModeratorTopicsResourcePartial extends apiModel {
  877. protected $__idType = 'ModeratorTopicsResourcePartialId';
  878. protected $__idDataType = '';
  879. public $id;
  880. public function setId(ModeratorTopicsResourcePartialId $id) {
  881. $this->id = $id;
  882. }
  883. public function getId() {
  884. return $this->id;
  885. }
  886. }
  887. class ModeratorTopicsResourcePartialId extends apiModel {
  888. public $seriesId;
  889. public $topicId;
  890. public function setSeriesId($seriesId) {
  891. $this->seriesId = $seriesId;
  892. }
  893. public function getSeriesId() {
  894. return $this->seriesId;
  895. }
  896. public function setTopicId($topicId) {
  897. $this->topicId = $topicId;
  898. }
  899. public function getTopicId() {
  900. return $this->topicId;
  901. }
  902. }
  903. class ModeratorVotesResourcePartial extends apiModel {
  904. public $vote;
  905. public $flag;
  906. public function setVote($vote) {
  907. $this->vote = $vote;
  908. }
  909. public function getVote() {
  910. return $this->vote;
  911. }
  912. public function setFlag($flag) {
  913. $this->flag = $flag;
  914. }
  915. public function getFlag() {
  916. return $this->flag;
  917. }
  918. }
  919. class Profile extends apiModel {
  920. public $kind;
  921. protected $__attributionType = 'ProfileAttribution';
  922. protected $__attributionDataType = '';
  923. public $attribution;
  924. protected $__idType = 'ProfileId';
  925. protected $__idDataType = '';
  926. public $id;
  927. public function setKind($kind) {
  928. $this->kind = $kind;
  929. }
  930. public function getKind() {
  931. return $this->kind;
  932. }
  933. public function setAttribution(ProfileAttribution $attribution) {
  934. $this->attribution = $attribution;
  935. }
  936. public function getAttribution() {
  937. return $this->attribution;
  938. }
  939. public function setId(ProfileId $id) {
  940. $this->id = $id;
  941. }
  942. public function getId() {
  943. return $this->id;
  944. }
  945. }
  946. class ProfileAttribution extends apiModel {
  947. protected $__geoType = 'ProfileAttributionGeo';
  948. protected $__geoDataType = '';
  949. public $geo;
  950. public $displayName;
  951. public $location;
  952. public $avatarUrl;
  953. public function setGeo(ProfileAttributionGeo $geo) {
  954. $this->geo = $geo;
  955. }
  956. public function getGeo() {
  957. return $this->geo;
  958. }
  959. public function setDisplayName($displayName) {
  960. $this->displayName = $displayName;
  961. }
  962. public function getDisplayName() {
  963. return $this->displayName;
  964. }
  965. public function setLocation($location) {
  966. $this->location = $location;
  967. }
  968. public function getLocation() {
  969. return $this->location;
  970. }
  971. public function setAvatarUrl($avatarUrl) {
  972. $this->avatarUrl = $avatarUrl;
  973. }
  974. public function getAvatarUrl() {
  975. return $this->avatarUrl;
  976. }
  977. }
  978. class ProfileAttributionGeo extends apiModel {
  979. public $latitude;
  980. public $location;
  981. public $longitude;
  982. public function setLatitude($latitude) {
  983. $this->latitude = $latitude;
  984. }
  985. public function getLatitude() {
  986. return $this->latitude;
  987. }
  988. public function setLocation($location) {
  989. $this->location = $location;
  990. }
  991. public function getLocation() {
  992. return $this->location;
  993. }
  994. public function setLongitude($longitude) {
  995. $this->longitude = $longitude;
  996. }
  997. public function getLongitude() {
  998. return $this->longitude;
  999. }
  1000. }
  1001. class ProfileId extends apiModel {
  1002. public $user;
  1003. public function setUser($user) {
  1004. $this->user = $user;
  1005. }
  1006. public function getUser() {
  1007. return $this->user;
  1008. }
  1009. }
  1010. class Series extends apiModel {
  1011. public $kind;
  1012. public $description;
  1013. protected $__rulesType = 'SeriesRules';
  1014. protected $__rulesDataType = '';
  1015. public $rules;
  1016. public $unauthVotingAllowed;
  1017. public $videoSubmissionAllowed;
  1018. public $name;
  1019. public $numTopics;
  1020. public $anonymousSubmissionAllowed;
  1021. public $unauthSubmissionAllowed;
  1022. protected $__idType = 'SeriesId';
  1023. protected $__idDataType = '';
  1024. public $id;
  1025. protected $__countersType = 'SeriesCounters';
  1026. protected $__countersDataType = '';
  1027. public $counters;
  1028. public function setKind($kind) {
  1029. $this->kind = $kind;
  1030. }
  1031. public function getKind() {
  1032. return $this->kind;
  1033. }
  1034. public function setDescription($description) {
  1035. $this->description = $description;
  1036. }
  1037. public function getDescription() {
  1038. return $this->description;
  1039. }
  1040. public function setRules(SeriesRules $rules) {
  1041. $this->rules = $rules;
  1042. }
  1043. public function getRules() {
  1044. return $this->rules;
  1045. }
  1046. public function setUnauthVotingAllowed($unauthVotingAllowed) {
  1047. $this->unauthVotingAllowed = $unauthVotingAllowed;
  1048. }
  1049. public function getUnauthVotingAllowed() {
  1050. return $this->unauthVotingAllowed;
  1051. }
  1052. public function setVideoSubmissionAllowed($videoSubmissionAllowed) {
  1053. $this->videoSubmissionAllowed = $videoSubmissionAllowed;
  1054. }
  1055. public function getVideoSubmissionAllowed() {
  1056. return $this->videoSubmissionAllowed;
  1057. }
  1058. public function setName($name) {
  1059. $this->name = $name;
  1060. }
  1061. public function getName() {
  1062. return $this->name;
  1063. }
  1064. public function setNumTopics($numTopics) {
  1065. $this->numTopics = $numTopics;
  1066. }
  1067. public function getNumTopics() {
  1068. return $this->numTopics;
  1069. }
  1070. public function setAnonymousSubmissionAllowed($anonymousSubmissionAllowed) {
  1071. $this->anonymousSubmissionAllowed = $anonymousSubmissionAllowed;
  1072. }
  1073. public function getAnonymousSubmissionAllowed() {
  1074. return $this->anonymousSubmissionAllowed;
  1075. }
  1076. public function setUnauthSubmissionAllowed($unauthSubmissionAllowed) {
  1077. $this->unauthSubmissionAllowed = $unauthSubmissionAllowed;
  1078. }
  1079. public function getUnauthSubmissionAllowed() {
  1080. return $this->unauthSubmissionAllowed;
  1081. }
  1082. public function setId(SeriesId $id) {
  1083. $this->id = $id;
  1084. }
  1085. public function getId() {
  1086. return $this->id;
  1087. }
  1088. public function setCounters(SeriesCounters $counters) {
  1089. $this->counters = $counters;
  1090. }
  1091. public function getCounters() {
  1092. return $this->counters;
  1093. }
  1094. }
  1095. class SeriesCounters extends apiModel {
  1096. public $users;
  1097. public $noneVotes;
  1098. public $videoSubmissions;
  1099. public $minusVotes;
  1100. public $anonymousSubmissions;
  1101. public $submissions;
  1102. public $plusVotes;
  1103. public function setUsers($users) {
  1104. $this->users = $users;
  1105. }
  1106. public function getUsers() {
  1107. return $this->users;
  1108. }
  1109. public function setNoneVotes($noneVotes) {
  1110. $this->noneVotes = $noneVotes;
  1111. }
  1112. public function getNoneVotes() {
  1113. return $this->noneVotes;
  1114. }
  1115. public function setVideoSubmissions($videoSubmissions) {
  1116. $this->videoSubmissions = $videoSubmissions;
  1117. }
  1118. public function getVideoSubmissions() {
  1119. return $this->videoSubmissions;
  1120. }
  1121. public function setMinusVotes($minusVotes) {
  1122. $this->minusVotes = $minusVotes;
  1123. }
  1124. public function getMinusVotes() {
  1125. return $this->minusVotes;
  1126. }
  1127. public function setAnonymousSubmissions($anonymousSubmissions) {
  1128. $this->anonymousSubmissions = $anonymousSubmissions;
  1129. }
  1130. public function getAnonymousSubmissions() {
  1131. return $this->anonymousSubmissions;
  1132. }
  1133. public function setSubmissions($submissions) {
  1134. $this->submissions = $submissions;
  1135. }
  1136. public function getSubmissions() {
  1137. return $this->submissions;
  1138. }
  1139. public function setPlusVotes($plusVotes) {
  1140. $this->plusVotes = $plusVotes;
  1141. }
  1142. public function getPlusVotes() {
  1143. return $this->plusVotes;
  1144. }
  1145. }
  1146. class SeriesId extends apiModel {
  1147. public $seriesId;
  1148. public function setSeriesId($seriesId) {
  1149. $this->seriesId = $seriesId;
  1150. }
  1151. public function getSeriesId() {
  1152. return $this->seriesId;
  1153. }
  1154. }
  1155. class SeriesList extends apiModel {
  1156. protected $__itemsType = 'Series';
  1157. protected $__itemsDataType = 'array';
  1158. public $items;
  1159. public $kind;
  1160. public function setItems(/* array(Series) */ $items) {
  1161. $this->assertIsArray($items, 'Series', __METHOD__);
  1162. $this->items = $items;
  1163. }
  1164. public function getItems() {
  1165. return $this->items;
  1166. }
  1167. public function setKind($kind) {
  1168. $this->kind = $kind;
  1169. }
  1170. public function getKind() {
  1171. return $this->kind;
  1172. }
  1173. }
  1174. class SeriesRules extends apiModel {
  1175. protected $__votesType = 'SeriesRulesVotes';
  1176. protected $__votesDataType = '';
  1177. public $votes;
  1178. protected $__submissionsType = 'SeriesRulesSubmissions';
  1179. protected $__submissionsDataType = '';
  1180. public $submissions;
  1181. public function setVotes(SeriesRulesVotes $votes) {
  1182. $this->votes = $votes;
  1183. }
  1184. public function getVotes() {
  1185. return $this->votes;
  1186. }
  1187. public function setSubmissions(SeriesRulesSubmissions $submissions) {
  1188. $this->submissions = $submissions;
  1189. }
  1190. public function getSubmissions() {
  1191. return $this->submissions;
  1192. }
  1193. }
  1194. class SeriesRulesSubmissions extends apiModel {
  1195. public $close;
  1196. public $open;
  1197. public function setClose($close) {
  1198. $this->close = $close;
  1199. }
  1200. public function getClose() {
  1201. return $this->close;
  1202. }
  1203. public function setOpen($open) {
  1204. $this->open = $open;
  1205. }
  1206. public function getOpen() {
  1207. return $this->open;
  1208. }
  1209. }
  1210. class SeriesRulesVotes extends apiModel {
  1211. public $close;
  1212. public $open;
  1213. public function setClose($close) {
  1214. $this->close = $close;
  1215. }
  1216. public function getClose() {
  1217. return $this->close;
  1218. }
  1219. public function setOpen($open) {
  1220. $this->open = $open;
  1221. }
  1222. public function getOpen() {
  1223. return $this->open;
  1224. }
  1225. }
  1226. class Submission extends apiModel {
  1227. public $kind;
  1228. protected $__attributionType = 'SubmissionAttribution';
  1229. protected $__attributionDataType = '';
  1230. public $attribution;
  1231. public $created;
  1232. public $text;
  1233. protected $__topicsType = 'ModeratorTopicsResourcePartial';
  1234. protected $__topicsDataType = 'array';
  1235. public $topics;
  1236. public $author;
  1237. protected $__translationsType = 'SubmissionTranslations';
  1238. protected $__translationsDataType = 'array';
  1239. public $translations;
  1240. protected $__parentSubmissionIdType = 'SubmissionParentSubmissionId';
  1241. protected $__parentSubmissionIdDataType = '';
  1242. public $parentSubmissionId;
  1243. protected $__voteType = 'ModeratorVotesResourcePartial';
  1244. protected $__voteDataType = '';
  1245. public $vote;
  1246. public $attachmentUrl;
  1247. protected $__geoType = 'SubmissionGeo';
  1248. protected $__geoDataType = '';
  1249. public $geo;
  1250. protected $__idType = 'SubmissionId';
  1251. protected $__idDataType = '';
  1252. public $id;
  1253. protected $__countersType = 'SubmissionCounters';
  1254. protected $__countersDataType = '';
  1255. public $counters;
  1256. public function setKind($kind) {
  1257. $this->kind = $kind;
  1258. }
  1259. public function getKind() {
  1260. return $this->kind;
  1261. }
  1262. public function setAttribution(SubmissionAttribution $attribution) {
  1263. $this->attribution = $attribution;
  1264. }
  1265. public function getAttribution() {
  1266. return $this->attribution;
  1267. }
  1268. public function setCreated($created) {
  1269. $this->created = $created;
  1270. }
  1271. public function getCreated() {
  1272. return $this->created;
  1273. }
  1274. public function setText($text) {
  1275. $this->text = $text;
  1276. }
  1277. public function getText() {
  1278. return $this->text;
  1279. }
  1280. public function setTopics(/* array(ModeratorTopicsResourcePartial) */ $topics) {
  1281. $this->assertIsArray($topics, 'ModeratorTopicsResourcePartial', __METHOD__);
  1282. $this->topics = $topics;
  1283. }
  1284. public function getTopics() {
  1285. return $this->topics;
  1286. }
  1287. public function setAuthor($author) {
  1288. $this->author = $author;
  1289. }
  1290. public function getAuthor() {
  1291. return $this->author;
  1292. }
  1293. public function setTranslations(/* array(SubmissionTranslations) */ $translations) {
  1294. $this->assertIsArray($translations, 'SubmissionTranslations', __METHOD__);
  1295. $this->translations = $translations;
  1296. }
  1297. public function getTranslations() {
  1298. return $this->translations;
  1299. }
  1300. public function setParentSubmissionId(SubmissionParentSubmissionId $parentSubmissionId) {
  1301. $this->parentSubmissionId = $parentSubmissionId;
  1302. }
  1303. public function getParentSubmissionId() {
  1304. return $this->parentSubmissionId;
  1305. }
  1306. public function setVote(ModeratorVotesResourcePartial $vote) {
  1307. $this->vote = $vote;
  1308. }
  1309. public function getVote() {
  1310. return $this->vote;
  1311. }
  1312. public function setAttachmentUrl($attachmentUrl) {
  1313. $this->attachmentUrl = $attachmentUrl;
  1314. }
  1315. public function getAttachmentUrl() {
  1316. return $this->attachmentUrl;
  1317. }
  1318. public function setGeo(SubmissionGeo $geo) {
  1319. $this->geo = $geo;
  1320. }
  1321. public function getGeo() {
  1322. return $this->geo;
  1323. }
  1324. public function setId(SubmissionId $id) {
  1325. $this->id = $id;
  1326. }
  1327. public function getId() {
  1328. return $this->id;
  1329. }
  1330. public function setCounters(SubmissionCounters $counters) {
  1331. $this->counters = $counters;
  1332. }
  1333. public function getCounters() {
  1334. return $this->counters;
  1335. }
  1336. }
  1337. class SubmissionAttribution extends apiModel {
  1338. public $displayName;
  1339. public $location;
  1340. public $avatarUrl;
  1341. public function setDisplayName($displayName) {
  1342. $this->displayName = $displayName;
  1343. }
  1344. public function getDisplayName() {
  1345. return $this->displayName;
  1346. }
  1347. public function setLocation($location) {
  1348. $this->location = $location;
  1349. }
  1350. public function getLocation() {
  1351. return $this->location;
  1352. }
  1353. public function setAvatarUrl($avatarUrl) {
  1354. $this->avatarUrl = $avatarUrl;
  1355. }
  1356. public function getAvatarUrl() {
  1357. return $this->avatarUrl;
  1358. }
  1359. }
  1360. class SubmissionCounters extends apiModel {
  1361. public $noneVotes;
  1362. public $minusVotes;
  1363. public $plusVotes;
  1364. public function setNoneVotes($noneVotes) {
  1365. $this->noneVotes = $noneVotes;
  1366. }
  1367. public function getNoneVotes() {
  1368. return $this->noneVotes;
  1369. }
  1370. public function setMinusVotes($minusVotes) {
  1371. $this->minusVotes = $minusVotes;
  1372. }
  1373. public function getMinusVotes() {
  1374. return $this->minusVotes;
  1375. }
  1376. public function setPlusVotes($plusVotes) {
  1377. $this->plusVotes = $plusVotes;
  1378. }
  1379. public function getPlusVotes() {
  1380. return $this->plusVotes;
  1381. }
  1382. }
  1383. class SubmissionGeo extends apiModel {
  1384. public $latitude;
  1385. public $location;
  1386. public $longitude;
  1387. public function setLatitude($latitude) {
  1388. $this->latitude = $latitude;
  1389. }
  1390. public function getLatitude() {
  1391. return $this->latitude;
  1392. }
  1393. public function setLocation($location) {
  1394. $this->location = $location;
  1395. }
  1396. public function getLocation() {
  1397. return $this->location;
  1398. }
  1399. public function setLongitude($longitude) {
  1400. $this->longitude = $longitude;
  1401. }
  1402. public function getLongitude() {
  1403. return $this->longitude;
  1404. }
  1405. }
  1406. class SubmissionId extends apiModel {
  1407. public $seriesId;
  1408. public $submissionId;
  1409. public function setSeriesId($seriesId) {
  1410. $this->seriesId = $seriesId;
  1411. }
  1412. public function getSeriesId() {
  1413. return $this->seriesId;
  1414. }
  1415. public function setSubmissionId($submissionId) {
  1416. $this->submissionId = $submissionId;
  1417. }
  1418. public function getSubmissionId() {
  1419. return $this->submissionId;
  1420. }
  1421. }
  1422. class SubmissionList extends apiModel {
  1423. protected $__itemsType = 'Submission';
  1424. protected $__itemsDataType = 'array';
  1425. public $items;
  1426. public $kind;
  1427. public function setItems(/* array(Submission) */ $items) {
  1428. $this->assertIsArray($items, 'Submission', __METHOD__);
  1429. $this->items = $items;
  1430. }
  1431. public function getItems() {
  1432. return $this->items;
  1433. }
  1434. public function setKind($kind) {
  1435. $this->kind = $kind;
  1436. }
  1437. public function getKind() {
  1438. return $this->kind;
  1439. }
  1440. }
  1441. class SubmissionParentSubmissionId extends apiModel {
  1442. public $seriesId;
  1443. public $submissionId;
  1444. public function setSeriesId($seriesId) {
  1445. $this->seriesId = $seriesId;
  1446. }
  1447. public function getSeriesId() {
  1448. return $this->seriesId;
  1449. }
  1450. public function setSubmissionId($submissionId) {
  1451. $this->submissionId = $submissionId;
  1452. }
  1453. public function getSubmissionId() {
  1454. return $this->submissionId;
  1455. }
  1456. }
  1457. class SubmissionTranslations extends apiModel {
  1458. public $lang;
  1459. public $text;
  1460. public function setLang($lang) {
  1461. $this->lang = $lang;
  1462. }
  1463. public function getLang() {
  1464. return $this->lang;
  1465. }
  1466. public function setText($text) {
  1467. $this->text = $text;
  1468. }
  1469. public function getText() {
  1470. return $this->text;
  1471. }
  1472. }
  1473. class Tag extends apiModel {
  1474. public $text;
  1475. public $kind;
  1476. protected $__idType = 'TagId';
  1477. protected $__idDataType = '';
  1478. public $id;
  1479. public function setText($text) {
  1480. $this->text = $text;
  1481. }
  1482. public function getText() {
  1483. return $this->text;
  1484. }
  1485. public function setKind($kind) {
  1486. $this->kind = $kind;
  1487. }
  1488. public function getKind() {
  1489. return $this->kind;
  1490. }
  1491. public function setId(TagId $id) {
  1492. $this->id = $id;
  1493. }
  1494. public function getId() {
  1495. return $this->id;
  1496. }
  1497. }
  1498. class TagId extends apiModel {
  1499. public $seriesId;
  1500. public $tagId;
  1501. public $submissionId;
  1502. public function setSeriesId($seriesId) {
  1503. $this->seriesId = $seriesId;
  1504. }
  1505. public function getSeriesId() {
  1506. return $this->seriesId;
  1507. }
  1508. public function setTagId($tagId) {
  1509. $this->tagId = $tagId;
  1510. }
  1511. public function getTagId() {
  1512. return $this->tagId;
  1513. }
  1514. public function setSubmissionId($submissionId) {
  1515. $this->submissionId = $submissionId;
  1516. }
  1517. public function getSubmissionId() {
  1518. return $this->submissionId;
  1519. }
  1520. }
  1521. class TagList extends apiModel {
  1522. protected $__itemsType = 'Tag';
  1523. protected $__itemsDataType = 'array';
  1524. public $items;
  1525. public $kind;
  1526. public function setItems(/* array(Tag) */ $items) {
  1527. $this->assertIsArray($items, 'Tag', __METHOD__);
  1528. $this->items = $items;
  1529. }
  1530. public function getItems() {
  1531. return $this->items;
  1532. }
  1533. public function setKind($kind) {
  1534. $this->kind = $kind;
  1535. }
  1536. public function getKind() {
  1537. return $this->kind;
  1538. }
  1539. }
  1540. class Topic extends apiModel {
  1541. public $kind;
  1542. public $description;
  1543. protected $__rulesType = 'TopicRules';
  1544. protected $__rulesDataType = '';
  1545. public $rules;
  1546. protected $__featuredSubmissionType = 'Submission';
  1547. protected $__featuredSubmissionDataType = '';
  1548. public $featuredSubmission;
  1549. public $presenter;
  1550. protected $__countersType = 'TopicCounters';
  1551. protected $__countersDataType = '';
  1552. public $counters;
  1553. protected $__idType = 'TopicId';
  1554. protected $__idDataType = '';
  1555. public $id;
  1556. public $name;
  1557. public function setKind($kind) {
  1558. $this->kind = $kind;
  1559. }
  1560. public function getKind() {
  1561. return $this->kind;
  1562. }
  1563. public function setDescription($description) {
  1564. $this->description = $description;
  1565. }
  1566. public function getDescription() {
  1567. return $this->description;
  1568. }
  1569. public function setRules(TopicRules $rules) {
  1570. $this->rules = $rules;
  1571. }
  1572. public function getRules() {
  1573. return $this->rules;
  1574. }
  1575. public function setFeaturedSubmission(Submission $featuredSubmission) {
  1576. $this->featuredSubmission = $featuredSubmission;
  1577. }
  1578. public function getFeaturedSubmission() {
  1579. return $this->featuredSubmission;
  1580. }
  1581. public function setPresenter($presenter) {
  1582. $this->presenter = $presenter;
  1583. }
  1584. public function getPresenter() {
  1585. return $this->presenter;
  1586. }
  1587. public function setCounters(TopicCounters $counters) {
  1588. $this->counters = $counters;
  1589. }
  1590. public function getCounters() {
  1591. return $this->counters;
  1592. }
  1593. public function setId(TopicId $id) {
  1594. $this->id = $id;
  1595. }
  1596. public function getId() {
  1597. return $this->id;
  1598. }
  1599. public function setName($name) {
  1600. $this->name = $name;
  1601. }
  1602. public function getName() {
  1603. return $this->name;
  1604. }
  1605. }
  1606. class TopicCounters extends apiModel {
  1607. public $users;
  1608. public $noneVotes;
  1609. public $videoSubmissions;
  1610. public $minusVotes;
  1611. public $submissions;
  1612. public $plusVotes;
  1613. public function setUsers($users) {
  1614. $this->users = $users;
  1615. }
  1616. public function getUsers() {
  1617. return $this->users;
  1618. }
  1619. public function setNoneVotes($noneVotes) {
  1620. $this->noneVotes = $noneVotes;
  1621. }
  1622. public function getNoneVotes() {
  1623. return $this->noneVotes;
  1624. }
  1625. public function setVideoSubmissions($videoSubmissions) {
  1626. $this->videoSubmissions = $videoSubmissions;
  1627. }
  1628. public function getVideoSubmissions() {
  1629. return $this->videoSubmissions;
  1630. }
  1631. public function setMinusVotes($minusVotes) {
  1632. $this->minusVotes = $minusVotes;
  1633. }
  1634. public function getMinusVotes() {
  1635. return $this->minusVotes;
  1636. }
  1637. public function setSubmissions($submissions) {
  1638. $this->submissions = $submissions;
  1639. }
  1640. public function getSubmissions() {
  1641. return $this->submissions;
  1642. }
  1643. public function setPlusVotes($plusVotes) {
  1644. $this->plusVotes = $plusVotes;
  1645. }
  1646. public function getPlusVotes() {
  1647. return $this->plusVotes;
  1648. }
  1649. }
  1650. class TopicId extends apiModel {
  1651. public $seriesId;
  1652. public $topicId;
  1653. public function setSeriesId($seriesId) {
  1654. $this->seriesId = $seriesId;
  1655. }
  1656. public function getSeriesId() {
  1657. return $this->seriesId;
  1658. }
  1659. public function setTopicId($topicId) {
  1660. $this->topicId = $topicId;
  1661. }
  1662. public function getTopicId() {
  1663. return $this->topicId;
  1664. }
  1665. }
  1666. class TopicList extends apiModel {
  1667. protected $__itemsType = 'Topic';
  1668. protected $__itemsDataType = 'array';
  1669. public $items;
  1670. public $kind;
  1671. public function setItems(/* array(Topic) */ $items) {
  1672. $this->assertIsArray($items, 'Topic', __METHOD__);
  1673. $this->items = $items;
  1674. }
  1675. public function getItems() {
  1676. return $this->items;
  1677. }
  1678. public function setKind($kind) {
  1679. $this->kind = $kind;
  1680. }
  1681. public function getKind() {
  1682. return $this->kind;
  1683. }
  1684. }
  1685. class TopicRules extends apiModel {
  1686. protected $__votesType = 'TopicRulesVotes';
  1687. protected $__votesDataType = '';
  1688. public $votes;
  1689. protected $__submissionsType = 'TopicRulesSubmissions';
  1690. protected $__submissionsDataType = '';
  1691. public $submissions;
  1692. public function setVotes(TopicRulesVotes $votes) {
  1693. $this->votes = $votes;
  1694. }
  1695. public function getVotes() {
  1696. return $this->votes;
  1697. }
  1698. public function setSubmissions(TopicRulesSubmissions $submissions) {
  1699. $this->submissions = $submissions;
  1700. }
  1701. public function getSubmissions() {
  1702. return $this->submissions;
  1703. }
  1704. }
  1705. class TopicRulesSubmissions extends apiModel {
  1706. public $close;
  1707. public $open;
  1708. public function setClose($close) {
  1709. $this->close = $close;
  1710. }
  1711. public function getClose() {
  1712. return $this->close;
  1713. }
  1714. public function setOpen($open) {
  1715. $this->open = $open;
  1716. }
  1717. public function getOpen() {
  1718. return $this->open;
  1719. }
  1720. }
  1721. class TopicRulesVotes extends apiModel {
  1722. public $close;
  1723. public $open;
  1724. public function setClose($close) {
  1725. $this->close = $close;
  1726. }
  1727. public function getClose() {
  1728. return $this->close;
  1729. }
  1730. public function setOpen($open) {
  1731. $this->open = $open;
  1732. }
  1733. public function getOpen() {
  1734. return $this->open;
  1735. }
  1736. }
  1737. class Vote extends apiModel {
  1738. public $vote;
  1739. public $flag;
  1740. protected $__idType = 'VoteId';
  1741. protected $__idDataType = '';
  1742. public $id;
  1743. public $kind;
  1744. public function setVote($vote) {
  1745. $this->vote = $vote;
  1746. }
  1747. public function getVote() {
  1748. return $this->vote;
  1749. }
  1750. public function setFlag($flag) {
  1751. $this->flag = $flag;
  1752. }
  1753. public function getFlag() {
  1754. return $this->flag;
  1755. }
  1756. public function setId(VoteId $id) {
  1757. $this->id = $id;
  1758. }
  1759. public function getId() {
  1760. return $this->id;
  1761. }
  1762. public function setKind($kind) {
  1763. $this->kind = $kind;
  1764. }
  1765. public function getKind() {
  1766. return $this->kind;
  1767. }
  1768. }
  1769. class VoteId extends apiModel {
  1770. public $seriesId;
  1771. public $submissionId;
  1772. public function setSeriesId($seriesId) {
  1773. $this->seriesId = $seriesId;
  1774. }
  1775. public function getSeriesId() {
  1776. return $this->seriesId;
  1777. }
  1778. public function setSubmissionId($submissionId) {
  1779. $this->submissionId = $submissionId;
  1780. }
  1781. public function getSubmissionId() {
  1782. return $this->submissionId;
  1783. }
  1784. }
  1785. class VoteList extends apiModel {
  1786. protected $__itemsType = 'Vote';
  1787. protected $__itemsDataType = 'array';
  1788. public $items;
  1789. public $kind;
  1790. public function setItems(/* array(Vote) */ $items) {
  1791. $this->assertIsArray($items, 'Vote', __METHOD__);
  1792. $this->items = $items;
  1793. }
  1794. public function getItems() {
  1795. return $this->items;
  1796. }
  1797. public function setKind($kind) {
  1798. $this->kind = $kind;
  1799. }
  1800. public function getKind() {
  1801. return $this->kind;
  1802. }
  1803. }