PageRenderTime 58ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/webui/google-api/contrib/apiOrkutService.php

https://bitbucket.org/sailsdigital/piler-remi
PHP | 2531 lines | 1985 code | 92 blank | 454 comment | 56 complexity | a0699c2959b994d46546200d8b09fb2e MD5 | raw file
Possible License(s): GPL-3.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 "communityMembers" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $orkutService = new apiOrkutService(...);
  25. * $communityMembers = $orkutService->communityMembers;
  26. * </code>
  27. */
  28. class CommunityMembersServiceResource extends apiServiceResource {
  29. /**
  30. * Makes the user join a community. (communityMembers.insert)
  31. *
  32. * @param int $communityId ID of the community.
  33. * @param string $userId ID of the user.
  34. * @return CommunityMembers
  35. */
  36. public function insert($communityId, $userId, $optParams = array()) {
  37. $params = array('communityId' => $communityId, 'userId' => $userId);
  38. $params = array_merge($params, $optParams);
  39. $data = $this->__call('insert', array($params));
  40. if ($this->useObjects()) {
  41. return new CommunityMembers($data);
  42. } else {
  43. return $data;
  44. }
  45. }
  46. /**
  47. * Retrieves the relationship between a user and a community. (communityMembers.get)
  48. *
  49. * @param int $communityId ID of the community.
  50. * @param string $userId ID of the user.
  51. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  52. *
  53. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  54. * @return CommunityMembers
  55. */
  56. public function get($communityId, $userId, $optParams = array()) {
  57. $params = array('communityId' => $communityId, 'userId' => $userId);
  58. $params = array_merge($params, $optParams);
  59. $data = $this->__call('get', array($params));
  60. if ($this->useObjects()) {
  61. return new CommunityMembers($data);
  62. } else {
  63. return $data;
  64. }
  65. }
  66. /**
  67. * Lists members of a community. (communityMembers.list)
  68. *
  69. * @param int $communityId The ID of the community whose members will be listed.
  70. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  71. *
  72. * @opt_param string pageToken A continuation token that allows pagination.
  73. * @opt_param bool friendsOnly Whether to list only community members who are friends of the user.
  74. * @opt_param string maxResults The maximum number of members to include in the response.
  75. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  76. * @return CommunityMembersList
  77. */
  78. public function listCommunityMembers($communityId, $optParams = array()) {
  79. $params = array('communityId' => $communityId);
  80. $params = array_merge($params, $optParams);
  81. $data = $this->__call('list', array($params));
  82. if ($this->useObjects()) {
  83. return new CommunityMembersList($data);
  84. } else {
  85. return $data;
  86. }
  87. }
  88. /**
  89. * Makes the user leave a community. (communityMembers.delete)
  90. *
  91. * @param int $communityId ID of the community.
  92. * @param string $userId ID of the user.
  93. */
  94. public function delete($communityId, $userId, $optParams = array()) {
  95. $params = array('communityId' => $communityId, 'userId' => $userId);
  96. $params = array_merge($params, $optParams);
  97. $data = $this->__call('delete', array($params));
  98. return $data;
  99. }
  100. }
  101. /**
  102. * The "activities" collection of methods.
  103. * Typical usage is:
  104. * <code>
  105. * $orkutService = new apiOrkutService(...);
  106. * $activities = $orkutService->activities;
  107. * </code>
  108. */
  109. class ActivitiesServiceResource extends apiServiceResource {
  110. /**
  111. * Retrieves a list of activities. (activities.list)
  112. *
  113. * @param string $userId The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the authenticated user).
  114. * @param string $collection The collection of activities to list.
  115. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  116. *
  117. * @opt_param string pageToken A continuation token that allows pagination.
  118. * @opt_param string maxResults The maximum number of activities to include in the response.
  119. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  120. * @return ActivityList
  121. */
  122. public function listActivities($userId, $collection, $optParams = array()) {
  123. $params = array('userId' => $userId, 'collection' => $collection);
  124. $params = array_merge($params, $optParams);
  125. $data = $this->__call('list', array($params));
  126. if ($this->useObjects()) {
  127. return new ActivityList($data);
  128. } else {
  129. return $data;
  130. }
  131. }
  132. /**
  133. * Deletes an existing activity, if the access controls allow it. (activities.delete)
  134. *
  135. * @param string $activityId ID of the activity to remove.
  136. */
  137. public function delete($activityId, $optParams = array()) {
  138. $params = array('activityId' => $activityId);
  139. $params = array_merge($params, $optParams);
  140. $data = $this->__call('delete', array($params));
  141. return $data;
  142. }
  143. }
  144. /**
  145. * The "communityPollComments" collection of methods.
  146. * Typical usage is:
  147. * <code>
  148. * $orkutService = new apiOrkutService(...);
  149. * $communityPollComments = $orkutService->communityPollComments;
  150. * </code>
  151. */
  152. class CommunityPollCommentsServiceResource extends apiServiceResource {
  153. /**
  154. * Adds a comment on a community poll. (communityPollComments.insert)
  155. *
  156. * @param int $communityId The ID of the community whose poll is being commented.
  157. * @param string $pollId The ID of the poll being commented.
  158. * @param CommunityPollComment $postBody
  159. * @return CommunityPollComment
  160. */
  161. public function insert($communityId, $pollId, CommunityPollComment $postBody, $optParams = array()) {
  162. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
  163. $params = array_merge($params, $optParams);
  164. $data = $this->__call('insert', array($params));
  165. if ($this->useObjects()) {
  166. return new CommunityPollComment($data);
  167. } else {
  168. return $data;
  169. }
  170. }
  171. /**
  172. * Retrieves the comments of a community poll. (communityPollComments.list)
  173. *
  174. * @param int $communityId The ID of the community whose poll is having its comments listed.
  175. * @param string $pollId The ID of the community whose polls will be listed.
  176. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  177. *
  178. * @opt_param string pageToken A continuation token that allows pagination.
  179. * @opt_param string maxResults The maximum number of comments to include in the response.
  180. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  181. * @return CommunityPollCommentList
  182. */
  183. public function listCommunityPollComments($communityId, $pollId, $optParams = array()) {
  184. $params = array('communityId' => $communityId, 'pollId' => $pollId);
  185. $params = array_merge($params, $optParams);
  186. $data = $this->__call('list', array($params));
  187. if ($this->useObjects()) {
  188. return new CommunityPollCommentList($data);
  189. } else {
  190. return $data;
  191. }
  192. }
  193. }
  194. /**
  195. * The "communityPolls" collection of methods.
  196. * Typical usage is:
  197. * <code>
  198. * $orkutService = new apiOrkutService(...);
  199. * $communityPolls = $orkutService->communityPolls;
  200. * </code>
  201. */
  202. class CommunityPollsServiceResource extends apiServiceResource {
  203. /**
  204. * Retrieves the polls of a community. (communityPolls.list)
  205. *
  206. * @param string $communityId The ID of the community which polls will be listed.
  207. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  208. *
  209. * @opt_param string pageToken A continuation token that allows pagination.
  210. * @opt_param string maxResults The maximum number of polls to include in the response.
  211. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  212. * @return CommunityPollList
  213. */
  214. public function listCommunityPolls($communityId, $optParams = array()) {
  215. $params = array('communityId' => $communityId);
  216. $params = array_merge($params, $optParams);
  217. $data = $this->__call('list', array($params));
  218. if ($this->useObjects()) {
  219. return new CommunityPollList($data);
  220. } else {
  221. return $data;
  222. }
  223. }
  224. /**
  225. * Retrieves one specific poll of a community. (communityPolls.get)
  226. *
  227. * @param int $communityId The ID of the community for whose poll will be retrieved.
  228. * @param string $pollId The ID of the poll to get.
  229. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  230. *
  231. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  232. * @return CommunityPoll
  233. */
  234. public function get($communityId, $pollId, $optParams = array()) {
  235. $params = array('communityId' => $communityId, 'pollId' => $pollId);
  236. $params = array_merge($params, $optParams);
  237. $data = $this->__call('get', array($params));
  238. if ($this->useObjects()) {
  239. return new CommunityPoll($data);
  240. } else {
  241. return $data;
  242. }
  243. }
  244. }
  245. /**
  246. * The "communityMessages" collection of methods.
  247. * Typical usage is:
  248. * <code>
  249. * $orkutService = new apiOrkutService(...);
  250. * $communityMessages = $orkutService->communityMessages;
  251. * </code>
  252. */
  253. class CommunityMessagesServiceResource extends apiServiceResource {
  254. /**
  255. * Adds a message to a given community topic. (communityMessages.insert)
  256. *
  257. * @param int $communityId The ID of the community the message should be added to.
  258. * @param string $topicId The ID of the topic the message should be added to.
  259. * @param CommunityMessage $postBody
  260. * @return CommunityMessage
  261. */
  262. public function insert($communityId, $topicId, CommunityMessage $postBody, $optParams = array()) {
  263. $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody);
  264. $params = array_merge($params, $optParams);
  265. $data = $this->__call('insert', array($params));
  266. if ($this->useObjects()) {
  267. return new CommunityMessage($data);
  268. } else {
  269. return $data;
  270. }
  271. }
  272. /**
  273. * Retrieves the messages of a topic of a community. (communityMessages.list)
  274. *
  275. * @param int $communityId The ID of the community which messages will be listed.
  276. * @param string $topicId The ID of the topic which messages will be listed.
  277. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  278. *
  279. * @opt_param string pageToken A continuation token that allows pagination.
  280. * @opt_param string maxResults The maximum number of messages to include in the response.
  281. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  282. * @return CommunityMessageList
  283. */
  284. public function listCommunityMessages($communityId, $topicId, $optParams = array()) {
  285. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  286. $params = array_merge($params, $optParams);
  287. $data = $this->__call('list', array($params));
  288. if ($this->useObjects()) {
  289. return new CommunityMessageList($data);
  290. } else {
  291. return $data;
  292. }
  293. }
  294. /**
  295. * Moves a message of the community to the trash folder. (communityMessages.delete)
  296. *
  297. * @param int $communityId The ID of the community whose message will be moved to the trash folder.
  298. * @param string $topicId The ID of the topic whose message will be moved to the trash folder.
  299. * @param string $messageId The ID of the message to be moved to the trash folder.
  300. */
  301. public function delete($communityId, $topicId, $messageId, $optParams = array()) {
  302. $params = array('communityId' => $communityId, 'topicId' => $topicId, 'messageId' => $messageId);
  303. $params = array_merge($params, $optParams);
  304. $data = $this->__call('delete', array($params));
  305. return $data;
  306. }
  307. }
  308. /**
  309. * The "communityTopics" collection of methods.
  310. * Typical usage is:
  311. * <code>
  312. * $orkutService = new apiOrkutService(...);
  313. * $communityTopics = $orkutService->communityTopics;
  314. * </code>
  315. */
  316. class CommunityTopicsServiceResource extends apiServiceResource {
  317. /**
  318. * Adds a topic to a given community. (communityTopics.insert)
  319. *
  320. * @param int $communityId The ID of the community the topic should be added to.
  321. * @param CommunityTopic $postBody
  322. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  323. *
  324. * @opt_param bool isShout Whether this topic is a shout.
  325. * @return CommunityTopic
  326. */
  327. public function insert($communityId, CommunityTopic $postBody, $optParams = array()) {
  328. $params = array('communityId' => $communityId, 'postBody' => $postBody);
  329. $params = array_merge($params, $optParams);
  330. $data = $this->__call('insert', array($params));
  331. if ($this->useObjects()) {
  332. return new CommunityTopic($data);
  333. } else {
  334. return $data;
  335. }
  336. }
  337. /**
  338. * Retrieves a topic of a community. (communityTopics.get)
  339. *
  340. * @param int $communityId The ID of the community whose topic will be retrieved.
  341. * @param string $topicId The ID of the topic to get.
  342. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  343. *
  344. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  345. * @return CommunityTopic
  346. */
  347. public function get($communityId, $topicId, $optParams = array()) {
  348. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  349. $params = array_merge($params, $optParams);
  350. $data = $this->__call('get', array($params));
  351. if ($this->useObjects()) {
  352. return new CommunityTopic($data);
  353. } else {
  354. return $data;
  355. }
  356. }
  357. /**
  358. * Retrieves the topics of a community. (communityTopics.list)
  359. *
  360. * @param int $communityId The ID of the community which topics will be listed.
  361. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  362. *
  363. * @opt_param string pageToken A continuation token that allows pagination.
  364. * @opt_param string maxResults The maximum number of topics to include in the response.
  365. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  366. * @return CommunityTopicList
  367. */
  368. public function listCommunityTopics($communityId, $optParams = array()) {
  369. $params = array('communityId' => $communityId);
  370. $params = array_merge($params, $optParams);
  371. $data = $this->__call('list', array($params));
  372. if ($this->useObjects()) {
  373. return new CommunityTopicList($data);
  374. } else {
  375. return $data;
  376. }
  377. }
  378. /**
  379. * Moves a topic of the community to the trash folder. (communityTopics.delete)
  380. *
  381. * @param int $communityId The ID of the community whose topic will be moved to the trash folder.
  382. * @param string $topicId The ID of the topic to be moved to the trash folder.
  383. */
  384. public function delete($communityId, $topicId, $optParams = array()) {
  385. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  386. $params = array_merge($params, $optParams);
  387. $data = $this->__call('delete', array($params));
  388. return $data;
  389. }
  390. }
  391. /**
  392. * The "comments" collection of methods.
  393. * Typical usage is:
  394. * <code>
  395. * $orkutService = new apiOrkutService(...);
  396. * $comments = $orkutService->comments;
  397. * </code>
  398. */
  399. class CommentsServiceResource extends apiServiceResource {
  400. /**
  401. * Inserts a new comment to an activity. (comments.insert)
  402. *
  403. * @param string $activityId The ID of the activity to contain the new comment.
  404. * @param Comment $postBody
  405. * @return Comment
  406. */
  407. public function insert($activityId, Comment $postBody, $optParams = array()) {
  408. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  409. $params = array_merge($params, $optParams);
  410. $data = $this->__call('insert', array($params));
  411. if ($this->useObjects()) {
  412. return new Comment($data);
  413. } else {
  414. return $data;
  415. }
  416. }
  417. /**
  418. * Retrieves an existing comment. (comments.get)
  419. *
  420. * @param string $commentId ID of the comment to get.
  421. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  422. *
  423. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  424. * @return Comment
  425. */
  426. public function get($commentId, $optParams = array()) {
  427. $params = array('commentId' => $commentId);
  428. $params = array_merge($params, $optParams);
  429. $data = $this->__call('get', array($params));
  430. if ($this->useObjects()) {
  431. return new Comment($data);
  432. } else {
  433. return $data;
  434. }
  435. }
  436. /**
  437. * Retrieves a list of comments, possibly filtered. (comments.list)
  438. *
  439. * @param string $activityId The ID of the activity containing the comments.
  440. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  441. *
  442. * @opt_param string orderBy Sort search results.
  443. * @opt_param string pageToken A continuation token that allows pagination.
  444. * @opt_param string maxResults The maximum number of activities to include in the response.
  445. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  446. * @return CommentList
  447. */
  448. public function listComments($activityId, $optParams = array()) {
  449. $params = array('activityId' => $activityId);
  450. $params = array_merge($params, $optParams);
  451. $data = $this->__call('list', array($params));
  452. if ($this->useObjects()) {
  453. return new CommentList($data);
  454. } else {
  455. return $data;
  456. }
  457. }
  458. /**
  459. * Deletes an existing comment. (comments.delete)
  460. *
  461. * @param string $commentId ID of the comment to remove.
  462. */
  463. public function delete($commentId, $optParams = array()) {
  464. $params = array('commentId' => $commentId);
  465. $params = array_merge($params, $optParams);
  466. $data = $this->__call('delete', array($params));
  467. return $data;
  468. }
  469. }
  470. /**
  471. * The "acl" collection of methods.
  472. * Typical usage is:
  473. * <code>
  474. * $orkutService = new apiOrkutService(...);
  475. * $acl = $orkutService->acl;
  476. * </code>
  477. */
  478. class AclServiceResource extends apiServiceResource {
  479. /**
  480. * Excludes an element from the ACL of the activity. (acl.delete)
  481. *
  482. * @param string $activityId ID of the activity.
  483. * @param string $userId ID of the user to be removed from the activity.
  484. */
  485. public function delete($activityId, $userId, $optParams = array()) {
  486. $params = array('activityId' => $activityId, 'userId' => $userId);
  487. $params = array_merge($params, $optParams);
  488. $data = $this->__call('delete', array($params));
  489. return $data;
  490. }
  491. }
  492. /**
  493. * The "communityRelated" collection of methods.
  494. * Typical usage is:
  495. * <code>
  496. * $orkutService = new apiOrkutService(...);
  497. * $communityRelated = $orkutService->communityRelated;
  498. * </code>
  499. */
  500. class CommunityRelatedServiceResource extends apiServiceResource {
  501. /**
  502. * Retrieves the communities related to another one. (communityRelated.list)
  503. *
  504. * @param int $communityId The ID of the community whose related communities will be listed.
  505. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  506. *
  507. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  508. * @return CommunityList
  509. */
  510. public function listCommunityRelated($communityId, $optParams = array()) {
  511. $params = array('communityId' => $communityId);
  512. $params = array_merge($params, $optParams);
  513. $data = $this->__call('list', array($params));
  514. if ($this->useObjects()) {
  515. return new CommunityList($data);
  516. } else {
  517. return $data;
  518. }
  519. }
  520. }
  521. /**
  522. * The "scraps" collection of methods.
  523. * Typical usage is:
  524. * <code>
  525. * $orkutService = new apiOrkutService(...);
  526. * $scraps = $orkutService->scraps;
  527. * </code>
  528. */
  529. class ScrapsServiceResource extends apiServiceResource {
  530. /**
  531. * Creates a new scrap. (scraps.insert)
  532. *
  533. * @param Activity $postBody
  534. * @return Activity
  535. */
  536. public function insert(Activity $postBody, $optParams = array()) {
  537. $params = array('postBody' => $postBody);
  538. $params = array_merge($params, $optParams);
  539. $data = $this->__call('insert', array($params));
  540. if ($this->useObjects()) {
  541. return new Activity($data);
  542. } else {
  543. return $data;
  544. }
  545. }
  546. }
  547. /**
  548. * The "communityPollVotes" collection of methods.
  549. * Typical usage is:
  550. * <code>
  551. * $orkutService = new apiOrkutService(...);
  552. * $communityPollVotes = $orkutService->communityPollVotes;
  553. * </code>
  554. */
  555. class CommunityPollVotesServiceResource extends apiServiceResource {
  556. /**
  557. * Votes on a community poll. (communityPollVotes.insert)
  558. *
  559. * @param int $communityId The ID of the community whose poll is being voted.
  560. * @param string $pollId The ID of the poll being voted.
  561. * @param CommunityPollVote $postBody
  562. * @return CommunityPollVote
  563. */
  564. public function insert($communityId, $pollId, CommunityPollVote $postBody, $optParams = array()) {
  565. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
  566. $params = array_merge($params, $optParams);
  567. $data = $this->__call('insert', array($params));
  568. if ($this->useObjects()) {
  569. return new CommunityPollVote($data);
  570. } else {
  571. return $data;
  572. }
  573. }
  574. }
  575. /**
  576. * The "communities" collection of methods.
  577. * Typical usage is:
  578. * <code>
  579. * $orkutService = new apiOrkutService(...);
  580. * $communities = $orkutService->communities;
  581. * </code>
  582. */
  583. class CommunitiesServiceResource extends apiServiceResource {
  584. /**
  585. * Retrieves the communities an user is member of. (communities.list)
  586. *
  587. * @param string $userId The ID of the user whose communities will be listed. Can be me to refer to caller.
  588. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  589. *
  590. * @opt_param string orderBy How to order the communities by.
  591. * @opt_param string maxResults The maximum number of communities to include in the response.
  592. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  593. * @return CommunityList
  594. */
  595. public function listCommunities($userId, $optParams = array()) {
  596. $params = array('userId' => $userId);
  597. $params = array_merge($params, $optParams);
  598. $data = $this->__call('list', array($params));
  599. if ($this->useObjects()) {
  600. return new CommunityList($data);
  601. } else {
  602. return $data;
  603. }
  604. }
  605. /**
  606. * Retrieves the profile of a community. (communities.get)
  607. *
  608. * @param int $communityId The ID of the community to get.
  609. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  610. *
  611. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  612. * @return Community
  613. */
  614. public function get($communityId, $optParams = array()) {
  615. $params = array('communityId' => $communityId);
  616. $params = array_merge($params, $optParams);
  617. $data = $this->__call('get', array($params));
  618. if ($this->useObjects()) {
  619. return new Community($data);
  620. } else {
  621. return $data;
  622. }
  623. }
  624. }
  625. /**
  626. * The "communityFollow" collection of methods.
  627. * Typical usage is:
  628. * <code>
  629. * $orkutService = new apiOrkutService(...);
  630. * $communityFollow = $orkutService->communityFollow;
  631. * </code>
  632. */
  633. class CommunityFollowServiceResource extends apiServiceResource {
  634. /**
  635. * Adds an user as a follower of a community. (communityFollow.insert)
  636. *
  637. * @param int $communityId ID of the community.
  638. * @param string $userId ID of the user.
  639. * @return CommunityMembers
  640. */
  641. public function insert($communityId, $userId, $optParams = array()) {
  642. $params = array('communityId' => $communityId, 'userId' => $userId);
  643. $params = array_merge($params, $optParams);
  644. $data = $this->__call('insert', array($params));
  645. if ($this->useObjects()) {
  646. return new CommunityMembers($data);
  647. } else {
  648. return $data;
  649. }
  650. }
  651. /**
  652. * Removes an user from the followers of a community. (communityFollow.delete)
  653. *
  654. * @param int $communityId ID of the community.
  655. * @param string $userId ID of the user.
  656. */
  657. public function delete($communityId, $userId, $optParams = array()) {
  658. $params = array('communityId' => $communityId, 'userId' => $userId);
  659. $params = array_merge($params, $optParams);
  660. $data = $this->__call('delete', array($params));
  661. return $data;
  662. }
  663. }
  664. /**
  665. * The "activityVisibility" collection of methods.
  666. * Typical usage is:
  667. * <code>
  668. * $orkutService = new apiOrkutService(...);
  669. * $activityVisibility = $orkutService->activityVisibility;
  670. * </code>
  671. */
  672. class ActivityVisibilityServiceResource extends apiServiceResource {
  673. /**
  674. * Updates the visibility of an existing activity. This method supports patch semantics.
  675. * (activityVisibility.patch)
  676. *
  677. * @param string $activityId ID of the activity.
  678. * @param Visibility $postBody
  679. * @return Visibility
  680. */
  681. public function patch($activityId, Visibility $postBody, $optParams = array()) {
  682. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  683. $params = array_merge($params, $optParams);
  684. $data = $this->__call('patch', array($params));
  685. if ($this->useObjects()) {
  686. return new Visibility($data);
  687. } else {
  688. return $data;
  689. }
  690. }
  691. /**
  692. * Updates the visibility of an existing activity. (activityVisibility.update)
  693. *
  694. * @param string $activityId ID of the activity.
  695. * @param Visibility $postBody
  696. * @return Visibility
  697. */
  698. public function update($activityId, Visibility $postBody, $optParams = array()) {
  699. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  700. $params = array_merge($params, $optParams);
  701. $data = $this->__call('update', array($params));
  702. if ($this->useObjects()) {
  703. return new Visibility($data);
  704. } else {
  705. return $data;
  706. }
  707. }
  708. /**
  709. * Gets the visibility of an existing activity. (activityVisibility.get)
  710. *
  711. * @param string $activityId ID of the activity to get the visibility.
  712. * @return Visibility
  713. */
  714. public function get($activityId, $optParams = array()) {
  715. $params = array('activityId' => $activityId);
  716. $params = array_merge($params, $optParams);
  717. $data = $this->__call('get', array($params));
  718. if ($this->useObjects()) {
  719. return new Visibility($data);
  720. } else {
  721. return $data;
  722. }
  723. }
  724. }
  725. /**
  726. * The "badges" collection of methods.
  727. * Typical usage is:
  728. * <code>
  729. * $orkutService = new apiOrkutService(...);
  730. * $badges = $orkutService->badges;
  731. * </code>
  732. */
  733. class BadgesServiceResource extends apiServiceResource {
  734. /**
  735. * Retrieves the list of visible badges of a user. (badges.list)
  736. *
  737. * @param string $userId The id of the user whose badges will be listed. Can be me to refer to caller.
  738. * @return BadgeList
  739. */
  740. public function listBadges($userId, $optParams = array()) {
  741. $params = array('userId' => $userId);
  742. $params = array_merge($params, $optParams);
  743. $data = $this->__call('list', array($params));
  744. if ($this->useObjects()) {
  745. return new BadgeList($data);
  746. } else {
  747. return $data;
  748. }
  749. }
  750. /**
  751. * Retrieves a badge from a user. (badges.get)
  752. *
  753. * @param string $userId The ID of the user whose badges will be listed. Can be me to refer to caller.
  754. * @param string $badgeId The ID of the badge that will be retrieved.
  755. * @return Badge
  756. */
  757. public function get($userId, $badgeId, $optParams = array()) {
  758. $params = array('userId' => $userId, 'badgeId' => $badgeId);
  759. $params = array_merge($params, $optParams);
  760. $data = $this->__call('get', array($params));
  761. if ($this->useObjects()) {
  762. return new Badge($data);
  763. } else {
  764. return $data;
  765. }
  766. }
  767. }
  768. /**
  769. * The "counters" collection of methods.
  770. * Typical usage is:
  771. * <code>
  772. * $orkutService = new apiOrkutService(...);
  773. * $counters = $orkutService->counters;
  774. * </code>
  775. */
  776. class CountersServiceResource extends apiServiceResource {
  777. /**
  778. * Retrieves the counters of an user. (counters.list)
  779. *
  780. * @param string $userId The ID of the user whose counters will be listed. Can be me to refer to caller.
  781. * @return Counters
  782. */
  783. public function listCounters($userId, $optParams = array()) {
  784. $params = array('userId' => $userId);
  785. $params = array_merge($params, $optParams);
  786. $data = $this->__call('list', array($params));
  787. if ($this->useObjects()) {
  788. return new Counters($data);
  789. } else {
  790. return $data;
  791. }
  792. }
  793. }
  794. /**
  795. * Service definition for Orkut (v2).
  796. *
  797. * <p>
  798. * Lets you manage activities, comments and badges in Orkut. More stuff coming in time.
  799. * </p>
  800. *
  801. * <p>
  802. * For more information about this service, see the
  803. * <a href="http://code.google.com/apis/orkut/v2/reference.html" target="_blank">API Documentation</a>
  804. * </p>
  805. *
  806. * @author Google, Inc.
  807. */
  808. class apiOrkutService extends apiService {
  809. public $communityMembers;
  810. public $activities;
  811. public $communityPollComments;
  812. public $communityPolls;
  813. public $communityMessages;
  814. public $communityTopics;
  815. public $comments;
  816. public $acl;
  817. public $communityRelated;
  818. public $scraps;
  819. public $communityPollVotes;
  820. public $communities;
  821. public $communityFollow;
  822. public $activityVisibility;
  823. public $badges;
  824. public $counters;
  825. /**
  826. * Constructs the internal representation of the Orkut service.
  827. *
  828. * @param apiClient apiClient
  829. */
  830. public function __construct(apiClient $apiClient) {
  831. $this->rpcPath = '/rpc';
  832. $this->restBasePath = '/orkut/v2/';
  833. $this->version = 'v2';
  834. $this->serviceName = 'orkut';
  835. $apiClient->addService($this->serviceName, $this->version);
  836. $this->communityMembers = new CommunityMembersServiceResource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMembers.insert", "httpMethod": "POST", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/members/{userId}", "id": "orkut.communityMembers.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "friendsOnly": {"type": "boolean", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.communityMembers.list", "httpMethod": "GET", "path": "communities/{communityId}/members", "response": {"$ref": "CommunityMembersList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.get", "httpMethod": "GET", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}}}', true));
  837. $this->activities = new ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"collection": {"required": true, "enum": ["all", "scraps", "stream"], "location": "path", "type": "string"}, "pageToken": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "orkut.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "activities/{activityId}", "id": "orkut.activities.delete"}}}', true));
  838. $this->communityPollComments = new CommunityPollCommentsServiceResource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "id": "orkut.communityPollComments.insert", "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollComment"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityPollComments.list", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollCommentList"}}}}', true));
  839. $this->communityPolls = new CommunityPollsServiceResource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.communityPolls.list", "httpMethod": "GET", "path": "communities/{communityId}/polls", "response": {"$ref": "CommunityPollList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
  840. $this->communityMessages = new CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "CommunityMessage"}, "id": "orkut.communityMessages.insert", "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessage"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "messageId": {"format": "uint64", "required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete"}}}', true));
  841. $this->communityTopics = new CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "CommunityTopic"}, "id": "orkut.communityTopics.insert", "httpMethod": "POST", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopic"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}}}', true));
  842. $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "id": "orkut.comments.insert", "httpMethod": "POST", "path": "activities/{activityId}/comments", "response": {"$ref": "Comment"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "comments/{commentId}", "id": "orkut.comments.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "location": "query", "type": "string"}, "pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
  843. $this->acl = new AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "activities/{activityId}/acl/{userId}", "id": "orkut.acl.delete"}}}', true));
  844. $this->communityRelated = new CommunityRelatedServiceResource($this, $this->serviceName, 'communityRelated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityRelated.list", "httpMethod": "GET", "path": "communities/{communityId}/related", "response": {"$ref": "CommunityList"}}}}', true));
  845. $this->scraps = new ScrapsServiceResource($this, $this->serviceName, 'scraps', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "httpMethod": "POST", "path": "activities/scraps", "id": "orkut.scraps.insert"}}}', true));
  846. $this->communityPollVotes = new CommunityPollVotesServiceResource($this, $this->serviceName, 'communityPollVotes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollVote"}, "id": "orkut.communityPollVotes.insert", "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/votes", "response": {"$ref": "CommunityPollVote"}}}}', true));
  847. $this->communities = new CommunitiesServiceResource($this, $this->serviceName, 'communities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"enum": ["id", "ranked"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.communities.list", "httpMethod": "GET", "path": "people/{userId}/communities", "response": {"$ref": "CommunityList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.get", "httpMethod": "GET", "path": "communities/{communityId}", "response": {"$ref": "Community"}}}}', true));
  848. $this->communityFollow = new CommunityFollowServiceResource($this, $this->serviceName, 'communityFollow', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityFollow.insert", "httpMethod": "POST", "path": "communities/{communityId}/followers/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/followers/{userId}", "id": "orkut.communityFollow.delete"}}}', true));
  849. $this->activityVisibility = new ActivityVisibilityServiceResource($this, $this->serviceName, 'activityVisibility', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.activityVisibility.get", "httpMethod": "GET", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}, "update": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "id": "orkut.activityVisibility.update", "httpMethod": "PUT", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "id": "orkut.activityVisibility.patch", "httpMethod": "PATCH", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}}}', true));
  850. $this->badges = new BadgesServiceResource($this, $this->serviceName, 'badges', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.badges.list", "httpMethod": "GET", "path": "people/{userId}/badges", "response": {"$ref": "BadgeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "badgeId": {"format": "int64", "required": true, "type": "string", "location": "path"}}, "id": "orkut.badges.get", "httpMethod": "GET", "path": "people/{userId}/badges/{badgeId}", "response": {"$ref": "Badge"}}}}', true));
  851. $this->counters = new CountersServiceResource($this, $this->serviceName, 'counters', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.counters.list", "httpMethod": "GET", "path": "people/{userId}/counters", "response": {"$ref": "Counters"}}}}', true));
  852. }
  853. }
  854. class Acl extends apiModel {
  855. protected $__itemsType = 'AclItems';
  856. protected $__itemsDataType = 'array';
  857. public $items;
  858. public $kind;
  859. public $description;
  860. public $totalParticipants;
  861. public function setItems(/* array(AclItems) */ $items) {
  862. $this->assertIsArray($items, 'AclItems', __METHOD__);
  863. $this->items = $items;
  864. }
  865. public function getItems() {
  866. return $this->items;
  867. }
  868. public function setKind($kind) {
  869. $this->kind = $kind;
  870. }
  871. public function getKind() {
  872. return $this->kind;
  873. }
  874. public function setDescription($description) {
  875. $this->description = $description;
  876. }
  877. public function getDescription() {
  878. return $this->description;
  879. }
  880. public function setTotalParticipants($totalParticipants) {
  881. $this->totalParticipants = $totalParticipants;
  882. }
  883. public function getTotalParticipants() {

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