PageRenderTime 47ms CodeModel.GetById 12ms RepoModel.GetById 0ms 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

Large files files are truncated, but you can click here to view the full file

  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 Seri

Large files files are truncated, but you can click here to view the full file