PageRenderTime 53ms CodeModel.GetById 11ms 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
  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() {
  884. return $this->totalParticipants;
  885. }
  886. }
  887. class AclItems extends apiModel {
  888. public $type;
  889. public $id;
  890. public function setType($type) {
  891. $this->type = $type;
  892. }
  893. public function getType() {
  894. return $this->type;
  895. }
  896. public function setId($id) {
  897. $this->id = $id;
  898. }
  899. public function getId() {
  900. return $this->id;
  901. }
  902. }
  903. class Activity extends apiModel {
  904. public $kind;
  905. protected $__linksType = 'OrkutLinkResource';
  906. protected $__linksDataType = 'array';
  907. public $links;
  908. public $title;
  909. protected $__objectType = 'ActivityObject';
  910. protected $__objectDataType = '';
  911. public $object;
  912. public $updated;
  913. protected $__actorType = 'OrkutAuthorResource';
  914. protected $__actorDataType = '';
  915. public $actor;
  916. protected $__accessType = 'Acl';
  917. protected $__accessDataType = '';
  918. public $access;
  919. public $verb;
  920. public $published;
  921. public $id;
  922. public function setKind($kind) {
  923. $this->kind = $kind;
  924. }
  925. public function getKind() {
  926. return $this->kind;
  927. }
  928. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  929. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  930. $this->links = $links;
  931. }
  932. public function getLinks() {
  933. return $this->links;
  934. }
  935. public function setTitle($title) {
  936. $this->title = $title;
  937. }
  938. public function getTitle() {
  939. return $this->title;
  940. }
  941. public function setObject(ActivityObject $object) {
  942. $this->object = $object;
  943. }
  944. public function getObject() {
  945. return $this->object;
  946. }
  947. public function setUpdated($updated) {
  948. $this->updated = $updated;
  949. }
  950. public function getUpdated() {
  951. return $this->updated;
  952. }
  953. public function setActor(OrkutAuthorResource $actor) {
  954. $this->actor = $actor;
  955. }
  956. public function getActor() {
  957. return $this->actor;
  958. }
  959. public function setAccess(Acl $access) {
  960. $this->access = $access;
  961. }
  962. public function getAccess() {
  963. return $this->access;
  964. }
  965. public function setVerb($verb) {
  966. $this->verb = $verb;
  967. }
  968. public function getVerb() {
  969. return $this->verb;
  970. }
  971. public function setPublished($published) {
  972. $this->published = $published;
  973. }
  974. public function getPublished() {
  975. return $this->published;
  976. }
  977. public function setId($id) {
  978. $this->id = $id;
  979. }
  980. public function getId() {
  981. return $this->id;
  982. }
  983. }
  984. class ActivityList extends apiModel {
  985. public $nextPageToken;
  986. protected $__itemsType = 'Activity';
  987. protected $__itemsDataType = 'array';
  988. public $items;
  989. public $kind;
  990. public function setNextPageToken($nextPageToken) {
  991. $this->nextPageToken = $nextPageToken;
  992. }
  993. public function getNextPageToken() {
  994. return $this->nextPageToken;
  995. }
  996. public function setItems(/* array(Activity) */ $items) {
  997. $this->assertIsArray($items, 'Activity', __METHOD__);
  998. $this->items = $items;
  999. }
  1000. public function getItems() {
  1001. return $this->items;
  1002. }
  1003. public function setKind($kind) {
  1004. $this->kind = $kind;
  1005. }
  1006. public function getKind() {
  1007. return $this->kind;
  1008. }
  1009. }
  1010. class ActivityObject extends apiModel {
  1011. public $content;
  1012. protected $__itemsType = 'OrkutActivityobjectsResource';
  1013. protected $__itemsDataType = 'array';
  1014. public $items;
  1015. protected $__repliesType = 'ActivityObjectReplies';
  1016. protected $__repliesDataType = '';
  1017. public $replies;
  1018. public $objectType;
  1019. public function setContent($content) {
  1020. $this->content = $content;
  1021. }
  1022. public function getContent() {
  1023. return $this->content;
  1024. }
  1025. public function setItems(/* array(OrkutActivityobjectsResource) */ $items) {
  1026. $this->assertIsArray($items, 'OrkutActivityobjectsResource', __METHOD__);
  1027. $this->items = $items;
  1028. }
  1029. public function getItems() {
  1030. return $this->items;
  1031. }
  1032. public function setReplies(ActivityObjectReplies $replies) {
  1033. $this->replies = $replies;
  1034. }
  1035. public function getReplies() {
  1036. return $this->replies;
  1037. }
  1038. public function setObjectType($objectType) {
  1039. $this->objectType = $objectType;
  1040. }
  1041. public function getObjectType() {
  1042. return $this->objectType;
  1043. }
  1044. }
  1045. class ActivityObjectReplies extends apiModel {
  1046. public $totalItems;
  1047. protected $__itemsType = 'Comment';
  1048. protected $__itemsDataType = 'array';
  1049. public $items;
  1050. public $url;
  1051. public function setTotalItems($totalItems) {
  1052. $this->totalItems = $totalItems;
  1053. }
  1054. public function getTotalItems() {
  1055. return $this->totalItems;
  1056. }
  1057. public function setItems(/* array(Comment) */ $items) {
  1058. $this->assertIsArray($items, 'Comment', __METHOD__);
  1059. $this->items = $items;
  1060. }
  1061. public function getItems() {
  1062. return $this->items;
  1063. }
  1064. public function setUrl($url) {
  1065. $this->url = $url;
  1066. }
  1067. public function getUrl() {
  1068. return $this->url;
  1069. }
  1070. }
  1071. class Badge extends apiModel {
  1072. public $badgeSmallLogo;
  1073. public $kind;
  1074. public $description;
  1075. public $sponsorLogo;
  1076. public $sponsorName;
  1077. public $badgeLargeLogo;
  1078. public $caption;
  1079. public $sponsorUrl;
  1080. public $id;
  1081. public function setBadgeSmallLogo($badgeSmallLogo) {
  1082. $this->badgeSmallLogo = $badgeSmallLogo;
  1083. }
  1084. public function getBadgeSmallLogo() {
  1085. return $this->badgeSmallLogo;
  1086. }
  1087. public function setKind($kind) {
  1088. $this->kind = $kind;
  1089. }
  1090. public function getKind() {
  1091. return $this->kind;
  1092. }
  1093. public function setDescription($description) {
  1094. $this->description = $description;
  1095. }
  1096. public function getDescription() {
  1097. return $this->description;
  1098. }
  1099. public function setSponsorLogo($sponsorLogo) {
  1100. $this->sponsorLogo = $sponsorLogo;
  1101. }
  1102. public function getSponsorLogo() {
  1103. return $this->sponsorLogo;
  1104. }
  1105. public function setSponsorName($sponsorName) {
  1106. $this->sponsorName = $sponsorName;
  1107. }
  1108. public function getSponsorName() {
  1109. return $this->sponsorName;
  1110. }
  1111. public function setBadgeLargeLogo($badgeLargeLogo) {
  1112. $this->badgeLargeLogo = $badgeLargeLogo;
  1113. }
  1114. public function getBadgeLargeLogo() {
  1115. return $this->badgeLargeLogo;
  1116. }
  1117. public function setCaption($caption) {
  1118. $this->caption = $caption;
  1119. }
  1120. public function getCaption() {
  1121. return $this->caption;
  1122. }
  1123. public function setSponsorUrl($sponsorUrl) {
  1124. $this->sponsorUrl = $sponsorUrl;
  1125. }
  1126. public function getSponsorUrl() {
  1127. return $this->sponsorUrl;
  1128. }
  1129. public function setId($id) {
  1130. $this->id = $id;
  1131. }
  1132. public function getId() {
  1133. return $this->id;
  1134. }
  1135. }
  1136. class BadgeList extends apiModel {
  1137. protected $__itemsType = 'Badge';
  1138. protected $__itemsDataType = 'array';
  1139. public $items;
  1140. public $kind;
  1141. public function setItems(/* array(Badge) */ $items) {
  1142. $this->assertIsArray($items, 'Badge', __METHOD__);
  1143. $this->items = $items;
  1144. }
  1145. public function getItems() {
  1146. return $this->items;
  1147. }
  1148. public function setKind($kind) {
  1149. $this->kind = $kind;
  1150. }
  1151. public function getKind() {
  1152. return $this->kind;
  1153. }
  1154. }
  1155. class Comment extends apiModel {
  1156. protected $__inReplyToType = 'CommentInReplyTo';
  1157. protected $__inReplyToDataType = '';
  1158. public $inReplyTo;
  1159. public $kind;
  1160. protected $__linksType = 'OrkutLinkResource';
  1161. protected $__linksDataType = 'array';
  1162. public $links;
  1163. protected $__actorType = 'OrkutAuthorResource';
  1164. protected $__actorDataType = '';
  1165. public $actor;
  1166. public $content;
  1167. public $published;
  1168. public $id;
  1169. public function setInReplyTo(CommentInReplyTo $inReplyTo) {
  1170. $this->inReplyTo = $inReplyTo;
  1171. }
  1172. public function getInReplyTo() {
  1173. return $this->inReplyTo;
  1174. }
  1175. public function setKind($kind) {
  1176. $this->kind = $kind;
  1177. }
  1178. public function getKind() {
  1179. return $this->kind;
  1180. }
  1181. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  1182. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  1183. $this->links = $links;
  1184. }
  1185. public function getLinks() {
  1186. return $this->links;
  1187. }
  1188. public function setActor(OrkutAuthorResource $actor) {
  1189. $this->actor = $actor;
  1190. }
  1191. public function getActor() {
  1192. return $this->actor;
  1193. }
  1194. public function setContent($content) {
  1195. $this->content = $content;
  1196. }
  1197. public function getContent() {
  1198. return $this->content;
  1199. }
  1200. public function setPublished($published) {
  1201. $this->published = $published;
  1202. }
  1203. public function getPublished() {
  1204. return $this->published;
  1205. }
  1206. public function setId($id) {
  1207. $this->id = $id;
  1208. }
  1209. public function getId() {
  1210. return $this->id;
  1211. }
  1212. }
  1213. class CommentInReplyTo extends apiModel {
  1214. public $type;
  1215. public $href;
  1216. public $ref;
  1217. public $rel;
  1218. public function setType($type) {
  1219. $this->type = $type;
  1220. }
  1221. public function getType() {
  1222. return $this->type;
  1223. }
  1224. public function setHref($href) {
  1225. $this->href = $href;
  1226. }
  1227. public function getHref() {
  1228. return $this->href;
  1229. }
  1230. public function setRef($ref) {
  1231. $this->ref = $ref;
  1232. }
  1233. public function getRef() {
  1234. return $this->ref;
  1235. }
  1236. public function setRel($rel) {
  1237. $this->rel = $rel;
  1238. }
  1239. public function getRel() {
  1240. return $this->rel;
  1241. }
  1242. }
  1243. class CommentList extends apiModel {
  1244. public $nextPageToken;
  1245. protected $__itemsType = 'Comment';
  1246. protected $__itemsDataType = 'array';
  1247. public $items;
  1248. public $kind;
  1249. public $previousPageToken;
  1250. public function setNextPageToken($nextPageToken) {
  1251. $this->nextPageToken = $nextPageToken;
  1252. }
  1253. public function getNextPageToken() {
  1254. return $this->nextPageToken;
  1255. }
  1256. public function setItems(/* array(Comment) */ $items) {
  1257. $this->assertIsArray($items, 'Comment', __METHOD__);
  1258. $this->items = $items;
  1259. }
  1260. public function getItems() {
  1261. return $this->items;
  1262. }
  1263. public function setKind($kind) {
  1264. $this->kind = $kind;
  1265. }
  1266. public function getKind() {
  1267. return $this->kind;
  1268. }
  1269. public function setPreviousPageToken($previousPageToken) {
  1270. $this->previousPageToken = $previousPageToken;
  1271. }
  1272. public function getPreviousPageToken() {
  1273. return $this->previousPageToken;
  1274. }
  1275. }
  1276. class Community extends apiModel {
  1277. public $category;
  1278. public $kind;
  1279. public $member_count;
  1280. public $description;
  1281. public $language;
  1282. protected $__linksType = 'OrkutLinkResource';
  1283. protected $__linksDataType = 'array';
  1284. public $links;
  1285. public $creation_date;
  1286. protected $__ownerType = 'OrkutAuthorResource';
  1287. protected $__ownerDataType = '';
  1288. public $owner;
  1289. protected $__moderatorsType = 'OrkutAuthorResource';
  1290. protected $__moderatorsDataType = 'array';
  1291. public $moderators;
  1292. public $location;
  1293. protected $__co_ownersType = 'OrkutAuthorResource';
  1294. protected $__co_ownersDataType = 'array';
  1295. public $co_owners;
  1296. public $photo_url;
  1297. public $id;
  1298. public $name;
  1299. public function setCategory($category) {
  1300. $this->category = $category;
  1301. }
  1302. public function getCategory() {
  1303. return $this->category;
  1304. }
  1305. public function setKind($kind) {
  1306. $this->kind = $kind;
  1307. }
  1308. public function getKind() {
  1309. return $this->kind;
  1310. }
  1311. public function setMember_count($member_count) {
  1312. $this->member_count = $member_count;
  1313. }
  1314. public function getMember_count() {
  1315. return $this->member_count;
  1316. }
  1317. public function setDescription($description) {
  1318. $this->description = $description;
  1319. }
  1320. public function getDescription() {
  1321. return $this->description;
  1322. }
  1323. public function setLanguage($language) {
  1324. $this->language = $language;
  1325. }
  1326. public function getLanguage() {
  1327. return $this->language;
  1328. }
  1329. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  1330. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  1331. $this->links = $links;
  1332. }
  1333. public function getLinks() {
  1334. return $this->links;
  1335. }
  1336. public function setCreation_date($creation_date) {
  1337. $this->creation_date = $creation_date;
  1338. }
  1339. public function getCreation_date() {
  1340. return $this->creation_date;
  1341. }
  1342. public function setOwner(OrkutAuthorResource $owner) {
  1343. $this->owner = $owner;
  1344. }
  1345. public function getOwner() {
  1346. return $this->owner;
  1347. }
  1348. public function setModerators(/* array(OrkutAuthorResource) */ $moderators) {
  1349. $this->assertIsArray($moderators, 'OrkutAuthorResource', __METHOD__);
  1350. $this->moderators = $moderators;
  1351. }
  1352. public function getModerators() {
  1353. return $this->moderators;
  1354. }
  1355. public function setLocation($location) {
  1356. $this->location = $location;
  1357. }
  1358. public function getLocation() {
  1359. return $this->location;
  1360. }
  1361. public function setCo_owners(/* array(OrkutAuthorResource) */ $co_owners) {
  1362. $this->assertIsArray($co_owners, 'OrkutAuthorResource', __METHOD__);
  1363. $this->co_owners = $co_owners;
  1364. }
  1365. public function getCo_owners() {
  1366. return $this->co_owners;
  1367. }
  1368. public function setPhoto_url($photo_url) {
  1369. $this->photo_url = $photo_url;
  1370. }
  1371. public function getPhoto_url() {
  1372. return $this->photo_url;
  1373. }
  1374. public function setId($id) {
  1375. $this->id = $id;
  1376. }
  1377. public function getId() {
  1378. return $this->id;
  1379. }
  1380. public function setName($name) {
  1381. $this->name = $name;
  1382. }
  1383. public function getName() {
  1384. return $this->name;
  1385. }
  1386. }
  1387. class CommunityList extends apiModel {
  1388. protected $__itemsType = 'Community';
  1389. protected $__itemsDataType = 'array';
  1390. public $items;
  1391. public $kind;
  1392. public function setItems(/* array(Community) */ $items) {
  1393. $this->assertIsArray($items, 'Community', __METHOD__);
  1394. $this->items = $items;
  1395. }
  1396. public function getItems() {
  1397. return $this->items;
  1398. }
  1399. public function setKind($kind) {
  1400. $this->kind = $kind;
  1401. }
  1402. public function getKind() {
  1403. return $this->kind;
  1404. }
  1405. }
  1406. class CommunityMembers extends apiModel {
  1407. protected $__communityMembershipStatusType = 'CommunityMembershipStatus';
  1408. protected $__communityMembershipStatusDataType = '';
  1409. public $communityMembershipStatus;
  1410. protected $__personType = 'OrkutActivitypersonResource';
  1411. protected $__personDataType = '';
  1412. public $person;
  1413. public $kind;
  1414. public function setCommunityMembershipStatus(CommunityMembershipStatus $communityMembershipStatus) {
  1415. $this->communityMembershipStatus = $communityMembershipStatus;
  1416. }
  1417. public function getCommunityMembershipStatus() {
  1418. return $this->communityMembershipStatus;
  1419. }
  1420. public function setPerson(OrkutActivitypersonResource $person) {
  1421. $this->person = $person;
  1422. }
  1423. public function getPerson() {
  1424. return $this->person;
  1425. }
  1426. public function setKind($kind) {
  1427. $this->kind = $kind;
  1428. }
  1429. public function getKind() {
  1430. return $this->kind;
  1431. }
  1432. }
  1433. class CommunityMembersList extends apiModel {
  1434. public $nextPageToken;
  1435. public $kind;
  1436. protected $__itemsType = 'CommunityMembers';
  1437. protected $__itemsDataType = 'array';
  1438. public $items;
  1439. public $prevPageToken;
  1440. public $lastPageToken;
  1441. public $firstPageToken;
  1442. public function setNextPageToken($nextPageToken) {
  1443. $this->nextPageToken = $nextPageToken;
  1444. }
  1445. public function getNextPageToken() {
  1446. return $this->nextPageToken;
  1447. }
  1448. public function setKind($kind) {
  1449. $this->kind = $kind;
  1450. }
  1451. public function getKind() {
  1452. return $this->kind;
  1453. }
  1454. public function setItems(/* array(CommunityMembers) */ $items) {
  1455. $this->assertIsArray($items, 'CommunityMembers', __METHOD__);
  1456. $this->items = $items;
  1457. }
  1458. public function getItems() {
  1459. return $this->items;
  1460. }
  1461. public function setPrevPageToken($prevPageToken) {
  1462. $this->prevPageToken = $prevPageToken;
  1463. }
  1464. public function getPrevPageToken() {
  1465. return $this->prevPageToken;
  1466. }
  1467. public function setLastPageToken($lastPageToken) {
  1468. $this->lastPageToken = $lastPageToken;
  1469. }
  1470. public function getLastPageToken() {
  1471. return $this->lastPageToken;
  1472. }
  1473. public function setFirstPageToken($firstPageToken) {
  1474. $this->firstPageToken = $firstPageToken;
  1475. }
  1476. public function getFirstPageToken() {
  1477. return $this->firstPageToken;
  1478. }
  1479. }
  1480. class CommunityMembershipStatus extends apiModel {
  1481. public $status;
  1482. public $isFollowing;
  1483. public $isRestoreAvailable;
  1484. public $isModerator;
  1485. public $kind;
  1486. public $isCoOwner;
  1487. public $canCreatePoll;
  1488. public $canShout;
  1489. public $isOwner;
  1490. public $canCreateTopic;
  1491. public $isTakebackAvailable;
  1492. public function setStatus($status) {
  1493. $this->status = $status;
  1494. }
  1495. public function getStatus() {
  1496. return $this->status;
  1497. }
  1498. public function setIsFollowing($isFollowing) {
  1499. $this->isFollowing = $isFollowing;
  1500. }
  1501. public function getIsFollowing() {
  1502. return $this->isFollowing;
  1503. }
  1504. public function setIsRestoreAvailable($isRestoreAvailable) {
  1505. $this->isRestoreAvailable = $isRestoreAvailable;
  1506. }
  1507. public function getIsRestoreAvailable() {
  1508. return $this->isRestoreAvailable;
  1509. }
  1510. public function setIsModerator($isModerator) {
  1511. $this->isModerator = $isModerator;
  1512. }
  1513. public function getIsModerator() {
  1514. return $this->isModerator;
  1515. }
  1516. public function setKind($kind) {
  1517. $this->kind = $kind;
  1518. }
  1519. public function getKind() {
  1520. return $this->kind;
  1521. }
  1522. public function setIsCoOwner($isCoOwner) {
  1523. $this->isCoOwner = $isCoOwner;
  1524. }
  1525. public function getIsCoOwner() {
  1526. return $this->isCoOwner;
  1527. }
  1528. public function setCanCreatePoll($canCreatePoll) {
  1529. $this->canCreatePoll = $canCreatePoll;
  1530. }
  1531. public function getCanCreatePoll() {
  1532. return $this->canCreatePoll;
  1533. }
  1534. public function setCanShout($canShout) {
  1535. $this->canShout = $canShout;
  1536. }
  1537. public function getCanShout() {
  1538. return $this->canShout;
  1539. }
  1540. public function setIsOwner($isOwner) {
  1541. $this->isOwner = $isOwner;
  1542. }
  1543. public function getIsOwner() {
  1544. return $this->isOwner;
  1545. }
  1546. public function setCanCreateTopic($canCreateTopic) {
  1547. $this->canCreateTopic = $canCreateTopic;
  1548. }
  1549. public function getCanCreateTopic() {
  1550. return $this->canCreateTopic;
  1551. }
  1552. public function setIsTakebackAvailable($isTakebackAvailable) {
  1553. $this->isTakebackAvailable = $isTakebackAvailable;
  1554. }
  1555. public function getIsTakebackAvailable() {
  1556. return $this->isTakebackAvailable;
  1557. }
  1558. }
  1559. class CommunityMessage extends apiModel {
  1560. public $body;
  1561. public $kind;
  1562. protected $__linksType = 'OrkutLinkResource';
  1563. protected $__linksDataType = 'array';
  1564. public $links;
  1565. protected $__authorType = 'OrkutAuthorResource';
  1566. protected $__authorDataType = '';
  1567. public $author;
  1568. public $id;
  1569. public $addedDate;
  1570. public $isSpam;
  1571. public $subject;
  1572. public function setBody($body) {
  1573. $this->body = $body;
  1574. }
  1575. public function getBody() {
  1576. return $this->body;
  1577. }
  1578. public function setKind($kind) {
  1579. $this->kind = $kind;
  1580. }
  1581. public function getKind() {
  1582. return $this->kind;
  1583. }
  1584. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  1585. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  1586. $this->links = $links;
  1587. }
  1588. public function getLinks() {
  1589. return $this->links;
  1590. }
  1591. public function setAuthor(OrkutAuthorResource $author) {
  1592. $this->author = $author;
  1593. }
  1594. public function getAuthor() {
  1595. return $this->author;
  1596. }
  1597. public function setId($id) {
  1598. $this->id = $id;
  1599. }
  1600. public function getId() {
  1601. return $this->id;
  1602. }
  1603. public function setAddedDate($addedDate) {
  1604. $this->addedDate = $addedDate;
  1605. }
  1606. public function getAddedDate() {
  1607. return $this->addedDate;
  1608. }
  1609. public function setIsSpam($isSpam) {
  1610. $this->isSpam = $isSpam;
  1611. }
  1612. public function getIsSpam() {
  1613. return $this->isSpam;
  1614. }
  1615. public function setSubject($subject) {
  1616. $this->subject = $subject;
  1617. }
  1618. public function getSubject() {
  1619. return $this->subject;
  1620. }
  1621. }
  1622. class CommunityMessageList extends apiModel {
  1623. public $nextPageToken;
  1624. public $kind;
  1625. protected $__itemsType = 'CommunityMessage';
  1626. protected $__itemsDataType = 'array';
  1627. public $items;
  1628. public $prevPageToken;
  1629. public $lastPageToken;
  1630. public $firstPageToken;
  1631. public function setNextPageToken($nextPageToken) {
  1632. $this->nextPageToken = $nextPageToken;
  1633. }
  1634. public function getNextPageToken() {
  1635. return $this->nextPageToken;
  1636. }
  1637. public function setKind($kind) {
  1638. $this->kind = $kind;
  1639. }
  1640. public function getKind() {
  1641. return $this->kind;
  1642. }
  1643. public function setItems(/* array(CommunityMessage) */ $items) {
  1644. $this->assertIsArray($items, 'CommunityMessage', __METHOD__);
  1645. $this->items = $items;
  1646. }
  1647. public function getItems() {
  1648. return $this->items;
  1649. }
  1650. public function setPrevPageToken($prevPageToken) {
  1651. $this->prevPageToken = $prevPageToken;
  1652. }
  1653. public function getPrevPageToken() {
  1654. return $this->prevPageToken;
  1655. }
  1656. public function setLastPageToken($lastPageToken) {
  1657. $this->lastPageToken = $lastPageToken;
  1658. }
  1659. public function getLastPageToken() {
  1660. return $this->lastPageToken;
  1661. }
  1662. public function setFirstPageToken($firstPageToken) {
  1663. $this->firstPageToken = $firstPageToken;
  1664. }
  1665. public function getFirstPageToken() {
  1666. return $this->firstPageToken;
  1667. }
  1668. }
  1669. class CommunityPoll extends apiModel {
  1670. protected $__linksType = 'OrkutLinkResource';
  1671. protected $__linksDataType = 'array';
  1672. public $links;
  1673. public $isMultipleAnswers;
  1674. protected $__imageType = 'CommunityPollImage';
  1675. protected $__imageDataType = '';
  1676. public $image;
  1677. public $endingTime;
  1678. public $isVotingAllowedForNonMembers;
  1679. public $isSpam;
  1680. public $totalNumberOfVotes;
  1681. protected $__authorType = 'OrkutAuthorResource';
  1682. protected $__authorDataType = '';
  1683. public $author;
  1684. public $question;
  1685. public $id;
  1686. public $isRestricted;
  1687. public $communityId;
  1688. public $isUsersVotePublic;
  1689. public $lastUpdate;
  1690. public $description;
  1691. public $votedOptions;
  1692. public $isOpenForVoting;
  1693. public $isClosed;
  1694. public $hasVoted;
  1695. public $kind;
  1696. public $creationTime;
  1697. protected $__optionsType = 'OrkutCommunitypolloptionResource';
  1698. protected $__optionsDataType = 'array';
  1699. public $options;
  1700. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  1701. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  1702. $this->links = $links;
  1703. }
  1704. public function getLinks() {
  1705. return $this->links;
  1706. }
  1707. public function setIsMultipleAnswers($isMultipleAnswers) {
  1708. $this->isMultipleAnswers = $isMultipleAnswers;
  1709. }
  1710. public function getIsMultipleAnswers() {
  1711. return $this->isMultipleAnswers;
  1712. }
  1713. public function setImage(CommunityPollImage $image) {
  1714. $this->image = $image;
  1715. }
  1716. public function getImage() {
  1717. return $this->image;
  1718. }
  1719. public function setEndingTime($endingTime) {
  1720. $this->endingTime = $endingTime;
  1721. }
  1722. public function getEndingTime() {
  1723. return $this->endingTime;
  1724. }
  1725. public function setIsVotingAllowedForNonMembers($isVotingAllowedForNonMembers) {
  1726. $this->isVotingAllowedForNonMembers = $isVotingAllowedForNonMembers;
  1727. }
  1728. public function getIsVotingAllowedForNonMembers() {
  1729. return $this->isVotingAllowedForNonMembers;
  1730. }
  1731. public function setIsSpam($isSpam) {
  1732. $this->isSpam = $isSpam;
  1733. }
  1734. public function getIsSpam() {
  1735. return $this->isSpam;
  1736. }
  1737. public function setTotalNumberOfVotes($totalNumberOfVotes) {
  1738. $this->totalNumberOfVotes = $totalNumberOfVotes;
  1739. }
  1740. public function getTotalNumberOfVotes() {
  1741. return $this->totalNumberOfVotes;
  1742. }
  1743. public function setAuthor(OrkutAuthorResource $author) {
  1744. $this->author = $author;
  1745. }
  1746. public function getAuthor() {
  1747. return $this->author;
  1748. }
  1749. public function setQuestion($question) {
  1750. $this->question = $question;
  1751. }
  1752. public function getQuestion() {
  1753. return $this->question;
  1754. }
  1755. public function setId($id) {
  1756. $this->id = $id;
  1757. }
  1758. public function getId() {
  1759. return $this->id;
  1760. }
  1761. public function setIsRestricted($isRestricted) {
  1762. $this->isRestricted = $isRestricted;
  1763. }
  1764. public function getIsRestricted() {
  1765. return $this->isRestricted;
  1766. }
  1767. public function setCommunityId($communityId) {
  1768. $this->communityId = $communityId;
  1769. }
  1770. public function getCommunityId() {
  1771. return $this->communityId;
  1772. }
  1773. public function setIsUsersVotePublic($isUsersVotePublic) {
  1774. $this->isUsersVotePublic = $isUsersVotePublic;
  1775. }
  1776. public function getIsUsersVotePublic() {
  1777. return $this->isUsersVotePublic;
  1778. }
  1779. public function setLastUpdate($lastUpdate) {
  1780. $this->lastUpdate = $lastUpdate;
  1781. }
  1782. public function getLastUpdate() {
  1783. return $this->lastUpdate;
  1784. }
  1785. public function setDescription($description) {
  1786. $this->description = $description;
  1787. }
  1788. public function getDescription() {
  1789. return $this->description;
  1790. }
  1791. public function setVotedOptions(/* array(int) */ $votedOptions) {
  1792. $this->assertIsArray($votedOptions, 'int', __METHOD__);
  1793. $this->votedOptions = $votedOptions;
  1794. }
  1795. public function getVotedOptions() {
  1796. return $this->votedOptions;
  1797. }
  1798. public function setIsOpenForVoting($isOpenForVoting) {
  1799. $this->isOpenForVoting = $isOpenForVoting;
  1800. }
  1801. public function getIsOpenForVoting() {
  1802. return $this->isOpenForVoting;
  1803. }
  1804. public function setIsClosed($isClosed) {
  1805. $this->isClosed = $isClosed;
  1806. }
  1807. public function getIsClosed() {
  1808. return $this->isClosed;
  1809. }
  1810. public function setHasVoted($hasVoted) {
  1811. $this->hasVoted = $hasVoted;
  1812. }
  1813. public function getHasVoted() {
  1814. return $this->hasVoted;
  1815. }
  1816. public function setKind($kind) {
  1817. $this->kind = $kind;
  1818. }
  1819. public function getKind() {
  1820. return $this->kind;
  1821. }
  1822. public function setCreationTime($creationTime) {
  1823. $this->creationTime = $creationTime;
  1824. }
  1825. public function getCreationTime() {
  1826. return $this->creationTime;
  1827. }
  1828. public function setOptions(/* array(OrkutCommunitypolloptionResource) */ $options) {
  1829. $this->assertIsArray($options, 'OrkutCommunitypolloptionResource', __METHOD__);
  1830. $this->options = $options;
  1831. }
  1832. public function getOptions() {
  1833. return $this->options;
  1834. }
  1835. }
  1836. class CommunityPollComment extends apiModel {
  1837. public $body;
  1838. public $kind;
  1839. public $addedDate;
  1840. public $id;
  1841. protected $__authorType = 'OrkutAuthorResource';
  1842. protected $__authorDataType = '';
  1843. public $author;
  1844. public function setBody($body) {
  1845. $this->body = $body;
  1846. }
  1847. public function getBody() {
  1848. return $this->body;
  1849. }
  1850. public function setKind($kind) {
  1851. $this->kind = $kind;
  1852. }
  1853. public function getKind() {
  1854. return $this->kind;
  1855. }
  1856. public function setAddedDate($addedDate) {
  1857. $this->addedDate = $addedDate;
  1858. }
  1859. public function getAddedDate() {
  1860. return $this->addedDate;
  1861. }
  1862. public function setId($id) {
  1863. $this->id = $id;
  1864. }
  1865. public function getId() {
  1866. return $this->id;
  1867. }
  1868. public function setAuthor(OrkutAuthorResource $author) {
  1869. $this->author = $author;
  1870. }
  1871. public function getAuthor() {
  1872. return $this->author;
  1873. }
  1874. }
  1875. class CommunityPollCommentList extends apiModel {
  1876. public $nextPageToken;
  1877. public $kind;
  1878. protected $__itemsType = 'CommunityPollComment';
  1879. protected $__itemsDataType = 'array';
  1880. public $items;
  1881. public $prevPageToken;
  1882. public $lastPageToken;
  1883. public $firstPageToken;
  1884. public function setNextPageToken($nextPageToken) {
  1885. $this->nextPageToken = $nextPageToken;
  1886. }
  1887. public function getNextPageToken() {
  1888. return $this->nextPageToken;
  1889. }
  1890. public function setKind($kind) {
  1891. $this->kind = $kind;
  1892. }
  1893. public function getKind() {
  1894. return $this->kind;
  1895. }
  1896. public function setItems(/* array(CommunityPollComment) */ $items) {
  1897. $this->assertIsArray($items, 'CommunityPollComment', __METHOD__);
  1898. $this->items = $items;
  1899. }
  1900. public function getItems() {
  1901. return $this->items;
  1902. }
  1903. public function setPrevPageToken($prevPageToken) {
  1904. $this->prevPageToken = $prevPageToken;
  1905. }
  1906. public function getPrevPageToken() {
  1907. return $this->prevPageToken;
  1908. }
  1909. public function setLastPageToken($lastPageToken) {
  1910. $this->lastPageToken = $lastPageToken;
  1911. }
  1912. public function getLastPageToken() {
  1913. return $this->lastPageToken;
  1914. }
  1915. public function setFirstPageToken($firstPageToken) {
  1916. $this->firstPageToken = $firstPageToken;
  1917. }
  1918. public function getFirstPageToken() {
  1919. return $this->firstPageToken;
  1920. }
  1921. }
  1922. class CommunityPollImage extends apiModel {
  1923. public $url;
  1924. public function setUrl($url) {
  1925. $this->url = $url;
  1926. }
  1927. public function getUrl() {
  1928. return $this->url;
  1929. }
  1930. }
  1931. class CommunityPollList extends apiModel {
  1932. public $nextPageToken;
  1933. public $kind;
  1934. protected $__itemsType = 'CommunityPoll';
  1935. protected $__itemsDataType = 'array';
  1936. public $items;
  1937. public $prevPageToken;
  1938. public $lastPageToken;
  1939. public $firstPageToken;
  1940. public function setNextPageToken($nextPageToken) {
  1941. $this->nextPageToken = $nextPageToken;
  1942. }
  1943. public function getNextPageToken() {
  1944. return $this->nextPageToken;
  1945. }
  1946. public function setKind($kind) {
  1947. $this->kind = $kind;
  1948. }
  1949. public function getKind() {
  1950. return $this->kind;
  1951. }
  1952. public function setItems(/* array(CommunityPoll) */ $items) {
  1953. $this->assertIsArray($items, 'CommunityPoll', __METHOD__);
  1954. $this->items = $items;
  1955. }
  1956. public function getItems() {
  1957. return $this->items;
  1958. }
  1959. public function setPrevPageToken($prevPageToken) {
  1960. $this->prevPageToken = $prevPageToken;
  1961. }
  1962. public function getPrevPageToken() {
  1963. return $this->prevPageToken;
  1964. }
  1965. public function setLastPageToken($lastPageToken) {
  1966. $this->lastPageToken = $lastPageToken;
  1967. }
  1968. public function getLastPageToken() {
  1969. return $this->lastPageToken;
  1970. }
  1971. public function setFirstPageToken($firstPageToken) {
  1972. $this->firstPageToken = $firstPageToken;
  1973. }
  1974. public function getFirstPageToken() {
  1975. return $this->firstPageToken;
  1976. }
  1977. }
  1978. class CommunityPollVote extends apiModel {
  1979. public $kind;
  1980. public $optionIds;
  1981. public $isVotevisible;
  1982. public function setKind($kind) {
  1983. $this->kind = $kind;
  1984. }
  1985. public function getKind() {
  1986. return $this->kind;
  1987. }
  1988. public function setOptionIds(/* array(int) */ $optionIds) {
  1989. $this->assertIsArray($optionIds, 'int', __METHOD__);
  1990. $this->optionIds = $optionIds;
  1991. }
  1992. public function getOptionIds() {
  1993. return $this->optionIds;
  1994. }
  1995. public function setIsVotevisible($isVotevisible) {
  1996. $this->isVotevisible = $isVotevisible;
  1997. }
  1998. public function getIsVotevisible() {
  1999. return $this->isVotevisible;
  2000. }
  2001. }
  2002. class CommunityTopic extends apiModel {
  2003. public $body;
  2004. public $lastUpdate;
  2005. public $kind;
  2006. protected $__linksType = 'OrkutLinkResource';
  2007. protected $__linksDataType = 'array';
  2008. public $links;
  2009. protected $__authorType = 'OrkutAuthorResource';
  2010. protected $__authorDataType = '';
  2011. public $author;
  2012. public $title;
  2013. protected $__messagesType = 'CommunityMessage';
  2014. protected $__messagesDataType = 'array';
  2015. public $messages;
  2016. public $latestMessageSnippet;
  2017. public $isClosed;
  2018. public $numberOfReplies;
  2019. public $id;
  2020. public function setBody($body) {
  2021. $this->body = $body;
  2022. }
  2023. public function getBody() {
  2024. return $this->body;
  2025. }
  2026. public function setLastUpdate($lastUpdate) {
  2027. $this->lastUpdate = $lastUpdate;
  2028. }
  2029. public function getLastUpdate() {
  2030. return $this->lastUpdate;
  2031. }
  2032. public function setKind($kind) {
  2033. $this->kind = $kind;
  2034. }
  2035. public function getKind() {
  2036. return $this->kind;
  2037. }
  2038. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  2039. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  2040. $this->links = $links;
  2041. }
  2042. public function getLinks() {
  2043. return $this->links;
  2044. }
  2045. public function setAuthor(OrkutAuthorResource $author) {
  2046. $this->author = $author;
  2047. }
  2048. public function getAuthor() {
  2049. return $this->author;
  2050. }
  2051. public function setTitle($title) {
  2052. $this->title = $title;
  2053. }
  2054. public function getTitle() {
  2055. return $this->title;
  2056. }
  2057. public function setMessages(/* array(CommunityMessage) */ $messages) {
  2058. $this->assertIsArray($messages, 'CommunityMessage', __METHOD__);
  2059. $this->messages = $messages;
  2060. }
  2061. public function getMessages() {
  2062. return $this->messages;
  2063. }
  2064. public function setLatestMessageSnippet($latestMessageSnippet) {
  2065. $this->latestMessageSnippet = $latestMessageSnippet;
  2066. }
  2067. public function getLatestMessageSnippet() {
  2068. return $this->latestMessageSnippet;
  2069. }
  2070. public function setIsClosed($isClosed) {
  2071. $this->isClosed = $isClosed;
  2072. }
  2073. public function getIsClosed() {
  2074. return $this->isClosed;
  2075. }
  2076. public function setNumberOfReplies($numberOfReplies) {
  2077. $this->numberOfReplies = $numberOfReplies;
  2078. }
  2079. public function getNumberOfReplies() {
  2080. return $this->numberOfReplies;
  2081. }
  2082. public function setId($id) {
  2083. $this->id = $id;
  2084. }
  2085. public function getId() {
  2086. return $this->id;
  2087. }
  2088. }
  2089. class CommunityTopicList extends apiModel {
  2090. public $nextPageToken;
  2091. public $kind;
  2092. protected $__itemsType = 'CommunityTopic';
  2093. protected $__itemsDataType = 'array';
  2094. public $items;
  2095. public $prevPageToken;
  2096. public $lastPageToken;
  2097. public $firstPageToken;
  2098. public function setNextPageToken($nextPageToken) {
  2099. $this->nextPageToken = $nextPageToken;
  2100. }
  2101. public function getNextPageToken() {
  2102. return $this->nextPageToken;
  2103. }
  2104. public function setKind($kind) {
  2105. $this->kind = $kind;
  2106. }
  2107. public function getKind() {
  2108. return $this->kind;
  2109. }
  2110. public function setItems(/* array(CommunityTopic) */ $items) {
  2111. $this->assertIsArray($items, 'CommunityTopic', __METHOD__);
  2112. $this->items = $items;
  2113. }
  2114. public function getItems() {
  2115. return $this->items;
  2116. }
  2117. public function setPrevPageToken($prevPageToken) {
  2118. $this->prevPageToken = $prevPageToken;
  2119. }
  2120. public function getPrevPageToken() {
  2121. return $this->prevPageToken;
  2122. }
  2123. public function setLastPageToken($lastPageToken) {
  2124. $this->lastPageToken = $lastPageToken;
  2125. }
  2126. public function getLastPageToken() {
  2127. return $this->lastPageToken;
  2128. }
  2129. public function setFirstPageToken($firstPageToken) {
  2130. $this->firstPageToken = $firstPageToken;
  2131. }
  2132. public function getFirstPageToken() {
  2133. return $this->firstPageToken;
  2134. }
  2135. }
  2136. class Counters extends apiModel {
  2137. protected $__itemsType = 'OrkutCounterResource';
  2138. protected $__itemsDataType = 'array';
  2139. public $items;
  2140. public $kind;
  2141. public function setItems(/* array(OrkutCounterResource) */ $items) {
  2142. $this->assertIsArray($items, 'OrkutCounterResource', __METHOD__);
  2143. $this->items = $items;
  2144. }
  2145. public function getItems() {
  2146. return $this->items;
  2147. }
  2148. public function setKind($kind) {
  2149. $this->kind = $kind;
  2150. }
  2151. public function getKind() {
  2152. return $this->kind;
  2153. }
  2154. }
  2155. class OrkutActivityobjectsResource extends apiModel {
  2156. public $displayName;
  2157. protected $__linksType = 'OrkutLinkResource';
  2158. protected $__linksDataType = 'array';
  2159. public $links;
  2160. public $content;
  2161. protected $__personType = 'OrkutActivitypersonResource';
  2162. protected $__personDataType = '';
  2163. public $person;
  2164. public $id;
  2165. public $objectType;
  2166. public function setDisplayName($displayName) {
  2167. $this->displayName = $displayName;
  2168. }
  2169. public function getDisplayName() {
  2170. return $this->displayName;
  2171. }
  2172. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  2173. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  2174. $this->links = $links;
  2175. }
  2176. public function getLinks() {
  2177. return $this->links;
  2178. }
  2179. public function setContent($content) {
  2180. $this->content = $content;
  2181. }
  2182. public function getContent() {
  2183. return $this->content;
  2184. }
  2185. public function setPerson(OrkutActivitypersonResource $person) {
  2186. $this->person = $person;
  2187. }
  2188. public function getPerson() {
  2189. return $this->person;
  2190. }
  2191. public function setId($id) {
  2192. $this->id = $id;
  2193. }
  2194. public function getId() {
  2195. return $this->id;
  2196. }
  2197. public function setObjectType($objectType) {
  2198. $this->objectType = $objectType;
  2199. }
  2200. public function getObjectType() {
  2201. return $this->objectType;
  2202. }
  2203. }
  2204. class OrkutActivitypersonResource extends apiModel {
  2205. protected $__nameType = 'OrkutActivitypersonResourceName';
  2206. protected $__nameDataType = '';
  2207. public $name;
  2208. public $url;
  2209. public $gender;
  2210. protected $__imageType = 'OrkutActivitypersonResourceImage';
  2211. protected $__imageDataType = '';
  2212. public $image;
  2213. public $birthday;
  2214. public $id;
  2215. public function setName(OrkutActivitypersonResourceName $name) {
  2216. $this->name = $name;
  2217. }
  2218. public function getName() {
  2219. return $this->name;
  2220. }
  2221. public function setUrl($url) {
  2222. $this->url = $url;
  2223. }
  2224. public function getUrl() {
  2225. return $this->url;
  2226. }
  2227. public function setGender($gender) {
  2228. $this->gender = $gender;
  2229. }
  2230. public function getGender() {
  2231. return $this->gender;
  2232. }
  2233. public function setImage(OrkutActivitypersonResourceImage $image) {
  2234. $this->image = $image;
  2235. }
  2236. public function getImage() {
  2237. return $this->image;
  2238. }
  2239. public function setBirthday($birthday) {
  2240. $this->birthday = $birthday;
  2241. }
  2242. public function getBirthday() {
  2243. return $this->birthday;
  2244. }
  2245. public function setId($id) {
  2246. $this->id = $id;
  2247. }
  2248. public function getId() {
  2249. return $this->id;
  2250. }
  2251. }
  2252. class OrkutActivitypersonResourceImage extends apiModel {
  2253. public $url;
  2254. public function setUrl($url) {
  2255. $this->url = $url;
  2256. }
  2257. public function getUrl() {
  2258. return $this->url;
  2259. }
  2260. }
  2261. class OrkutActivitypersonResourceName extends apiModel {
  2262. public $givenName;
  2263. public $familyName;
  2264. public function setGivenName($givenName) {
  2265. $this->givenName = $givenName;
  2266. }
  2267. public function getGivenName() {
  2268. return $this->givenName;
  2269. }
  2270. public function setFamilyName($familyName) {
  2271. $this->familyName = $familyName;
  2272. }
  2273. public function getFamilyName() {
  2274. return $this->familyName;
  2275. }
  2276. }
  2277. class OrkutAuthorResource extends apiModel {
  2278. public $url;
  2279. protected $__imageType = 'OrkutAuthorResourceImage';
  2280. protected $__imageDataType = '';
  2281. public $image;
  2282. public $displayName;
  2283. public $id;
  2284. public function setUrl($url) {
  2285. $this->url = $url;
  2286. }
  2287. public function getUrl() {
  2288. return $this->url;
  2289. }
  2290. public function setImage(OrkutAuthorResourceImage $image) {
  2291. $this->image = $image;
  2292. }
  2293. public function getImage() {
  2294. return $this->image;
  2295. }
  2296. public function setDisplayName($displayName) {
  2297. $this->displayName = $displayName;
  2298. }
  2299. public function getDisplayName() {
  2300. return $this->displayName;
  2301. }
  2302. public function setId($id) {
  2303. $this->id = $id;
  2304. }
  2305. public function getId() {
  2306. return $this->id;
  2307. }
  2308. }
  2309. class OrkutAuthorResourceImage extends apiModel {
  2310. public $url;
  2311. public function setUrl($url) {
  2312. $this->url = $url;
  2313. }
  2314. public function getUrl() {
  2315. return $this->url;
  2316. }
  2317. }
  2318. class OrkutCommunitypolloptionResource extends apiModel {
  2319. protected $__imageType = 'OrkutCommunitypolloptionResourceImage';
  2320. protected $__imageDataType = '';
  2321. public $image;
  2322. public $optionId;
  2323. public $description;
  2324. public $numberOfVotes;
  2325. public function setImage(OrkutCommunitypolloptionResourceImage $image) {
  2326. $this->image = $image;
  2327. }
  2328. public function getImage() {
  2329. return $this->image;
  2330. }
  2331. public function setOptionId($optionId) {
  2332. $this->optionId = $optionId;
  2333. }
  2334. public function getOptionId() {
  2335. return $this->optionId;
  2336. }
  2337. public function setDescription($description) {
  2338. $this->description = $description;
  2339. }
  2340. public function getDescription() {
  2341. return $this->description;
  2342. }
  2343. public function setNumberOfVotes($numberOfVotes) {
  2344. $this->numberOfVotes = $numberOfVotes;
  2345. }
  2346. public function getNumberOfVotes() {
  2347. return $this->numberOfVotes;
  2348. }
  2349. }
  2350. class OrkutCommunitypolloptionResourceImage extends apiModel {
  2351. public $url;
  2352. public function setUrl($url) {
  2353. $this->url = $url;
  2354. }
  2355. public function getUrl() {
  2356. return $this->url;
  2357. }
  2358. }
  2359. class OrkutCounterResource extends apiModel {
  2360. public $total;
  2361. protected $__linkType = 'OrkutLinkResource';
  2362. protected $__linkDataType = '';
  2363. public $link;
  2364. public $name;
  2365. public function setTotal($total) {
  2366. $this->total = $total;
  2367. }
  2368. public function getTotal() {
  2369. return $this->total;
  2370. }
  2371. public function setLink(OrkutLinkResource $link) {
  2372. $this->link = $link;
  2373. }
  2374. public function getLink() {
  2375. return $this->link;
  2376. }
  2377. public function setName($name) {
  2378. $this->name = $name;
  2379. }
  2380. public function getName() {
  2381. return $this->name;
  2382. }
  2383. }
  2384. class OrkutLinkResource extends apiModel {
  2385. public $href;
  2386. public $type;
  2387. public $rel;
  2388. public $title;
  2389. public function setHref($href) {
  2390. $this->href = $href;
  2391. }
  2392. public function getHref() {
  2393. return $this->href;
  2394. }
  2395. public function setType($type) {
  2396. $this->type = $type;
  2397. }
  2398. public function getType() {
  2399. return $this->type;
  2400. }
  2401. public function setRel($rel) {
  2402. $this->rel = $rel;
  2403. }
  2404. public function getRel() {
  2405. return $this->rel;
  2406. }
  2407. public function setTitle($title) {
  2408. $this->title = $title;
  2409. }
  2410. public function getTitle() {
  2411. return $this->title;
  2412. }
  2413. }
  2414. class Visibility extends apiModel {
  2415. public $kind;
  2416. public $visibility;
  2417. protected $__linksType = 'OrkutLinkResource';
  2418. protected $__linksDataType = 'array';
  2419. public $links;
  2420. public function setKind($kind) {
  2421. $this->kind = $kind;
  2422. }
  2423. public function getKind() {
  2424. return $this->kind;
  2425. }
  2426. public function setVisibility($visibility) {
  2427. $this->visibility = $visibility;
  2428. }
  2429. public function getVisibility() {
  2430. return $this->visibility;
  2431. }
  2432. public function setLinks(/* array(OrkutLinkResource) */ $links) {
  2433. $this->assertIsArray($links, 'OrkutLinkResource', __METHOD__);
  2434. $this->links = $links;
  2435. }
  2436. public function getLinks() {
  2437. return $this->links;
  2438. }
  2439. }