PageRenderTime 67ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/plus_comments/google_api/contrib/apiBuzzService.php

https://github.com/marmat/PlusComments
PHP | 3530 lines | 2876 code | 83 blank | 571 comment | 70 complexity | ea278eb115b03ff9d55f23e605c1dd13 MD5 | raw file
  1. <?php
  2. /*
  3. * Copyright (c) 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. require_once 'service/apiModel.php';
  18. require_once 'service/apiService.php';
  19. require_once 'service/apiServiceRequest.php';
  20. /**
  21. * The "activities" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $buzzService = new apiBuzzService(...);
  25. * $activities = $buzzService->activities;
  26. * </code>
  27. */
  28. class ActivitiesServiceResource extends apiServiceResource {
  29. /**
  30. * Get a count of link shares (activities.count)
  31. *
  32. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  33. *
  34. * @opt_param string url URLs for which to get share counts.
  35. * @opt_param string hl Language code to limit language results.
  36. * @return CountFeed
  37. */
  38. public function count($optParams = array()) {
  39. $params = array();
  40. $params = array_merge($params, $optParams);
  41. $data = $this->__call('count', array($params));
  42. if ($this->useObjects()) {
  43. return new CountFeed($data);
  44. } else {
  45. return $data;
  46. }
  47. }
  48. /**
  49. * Create a new activity (activities.insert)
  50. *
  51. * @param string $userId ID of the user being referenced.
  52. * @param $postBody the {@link Activity}
  53. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  54. *
  55. * @opt_param bool preview If true, only preview the action.
  56. * @opt_param string hl Language code to limit language results.
  57. * @return Activity
  58. */
  59. public function insert($userId, Activity $postBody, $optParams = array()) {
  60. $params = array('userId' => $userId, 'postBody' => $postBody);
  61. $params = array_merge($params, $optParams);
  62. $data = $this->__call('insert', array($params));
  63. if ($this->useObjects()) {
  64. return new Activity($data);
  65. } else {
  66. return $data;
  67. }
  68. }
  69. /**
  70. * Search for activities (activities.search)
  71. *
  72. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  73. *
  74. * @opt_param string max-results Maximum number of results to include.
  75. * @opt_param string c A continuation token that allows pagination.
  76. * @opt_param string pid ID of a place to use in a geographic location query.
  77. * @opt_param string lon Longitude to use in a geographic location query.
  78. * @opt_param string q Full-text search query string.
  79. * @opt_param bool truncateAtom Truncate the value of the atom:content element.
  80. * @opt_param string radius Radius to use in a geographic location query.
  81. * @opt_param string bbox Bounding box to use in a geographic location query.
  82. * @opt_param string hl Language code to limit language results.
  83. * @opt_param string lat Latitude to use in a geographic location query.
  84. * @return ActivityFeed
  85. */
  86. public function search($optParams = array()) {
  87. $params = array();
  88. $params = array_merge($params, $optParams);
  89. $data = $this->__call('search', array($params));
  90. if ($this->useObjects()) {
  91. return new ActivityFeed($data);
  92. } else {
  93. return $data;
  94. }
  95. }
  96. /**
  97. * Get an activity (activities.get)
  98. *
  99. * @param string $userId ID of the user whose post to get.
  100. * @param string $postId ID of the post to get.
  101. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  102. *
  103. * @opt_param bool truncateAtom Truncate the value of the atom:content element.
  104. * @opt_param string max-comments Maximum number of comments to include.
  105. * @opt_param string hl Language code to limit language results.
  106. * @opt_param string max-liked Maximum number of likes to include.
  107. * @return Activity
  108. */
  109. public function get($userId, $postId, $optParams = array()) {
  110. $params = array('userId' => $userId, 'postId' => $postId);
  111. $params = array_merge($params, $optParams);
  112. $data = $this->__call('get', array($params));
  113. if ($this->useObjects()) {
  114. return new Activity($data);
  115. } else {
  116. return $data;
  117. }
  118. }
  119. /**
  120. * Get real-time activity tracking information (activities.track)
  121. *
  122. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  123. *
  124. * @opt_param string max-results Maximum number of results to include.
  125. * @opt_param string c A continuation token that allows pagination.
  126. * @opt_param string pid ID of a place to use in a geographic location query.
  127. * @opt_param string lon Longitude to use in a geographic location query.
  128. * @opt_param string q Full-text search query string.
  129. * @opt_param string radius Radius to use in a geographic location query.
  130. * @opt_param string bbox Bounding box to use in a geographic location query.
  131. * @opt_param string hl Language code to limit language results.
  132. * @opt_param string lat Latitude to use in a geographic location query.
  133. * @return ActivityFeed
  134. */
  135. public function track($optParams = array()) {
  136. $params = array();
  137. $params = array_merge($params, $optParams);
  138. $data = $this->__call('track', array($params));
  139. if ($this->useObjects()) {
  140. return new ActivityFeed($data);
  141. } else {
  142. return $data;
  143. }
  144. }
  145. /**
  146. * List activities (activities.list)
  147. *
  148. * @param string $userId ID of the user being referenced.
  149. * @param string $scope The collection of activities to list.
  150. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  151. *
  152. * @opt_param string max-results Maximum number of results to include.
  153. * @opt_param string c A continuation token that allows pagination.
  154. * @opt_param bool truncateAtom Truncate the value of the atom:content element.
  155. * @opt_param string max-comments Maximum number of comments to include.
  156. * @opt_param string hl Language code to limit language results.
  157. * @opt_param string max-liked Maximum number of likes to include.
  158. * @return ActivityFeed
  159. */
  160. public function listActivities($userId, $scope, $optParams = array()) {
  161. $params = array('userId' => $userId, 'scope' => $scope);
  162. $params = array_merge($params, $optParams);
  163. $data = $this->__call('list', array($params));
  164. if ($this->useObjects()) {
  165. return new ActivityFeed($data);
  166. } else {
  167. return $data;
  168. }
  169. }
  170. /**
  171. * Update an activity (activities.update)
  172. *
  173. * @param string $userId ID of the user whose post to update.
  174. * @param string $scope The collection to which the activity belongs.
  175. * @param string $postId ID of the activity to update.
  176. * @param $postBody the {@link Activity}
  177. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  178. *
  179. * @opt_param string abuseType
  180. * @opt_param string hl Language code to limit language results.
  181. * @return Activity
  182. */
  183. public function update($userId, $scope, $postId, Activity $postBody, $optParams = array()) {
  184. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId, 'postBody' => $postBody);
  185. $params = array_merge($params, $optParams);
  186. $data = $this->__call('update', array($params));
  187. if ($this->useObjects()) {
  188. return new Activity($data);
  189. } else {
  190. return $data;
  191. }
  192. }
  193. /**
  194. * Update an activity. This method supports patch semantics. (activities.patch)
  195. *
  196. * @param string $userId ID of the user whose post to update.
  197. * @param string $scope The collection to which the activity belongs.
  198. * @param string $postId ID of the activity to update.
  199. * @param $postBody the {@link Activity}
  200. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  201. *
  202. * @opt_param string abuseType
  203. * @opt_param string hl Language code to limit language results.
  204. * @return Activity
  205. */
  206. public function patch($userId, $scope, $postId, Activity $postBody, $optParams = array()) {
  207. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId, 'postBody' => $postBody);
  208. $params = array_merge($params, $optParams);
  209. $data = $this->__call('patch', array($params));
  210. if ($this->useObjects()) {
  211. return new Activity($data);
  212. } else {
  213. return $data;
  214. }
  215. }
  216. /**
  217. * Search for people by topic (activities.extractPeopleFromSearch)
  218. *
  219. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  220. *
  221. * @opt_param string max-results Maximum number of results to include.
  222. * @opt_param string c A continuation token that allows pagination.
  223. * @opt_param string pid ID of a place to use in a geographic location query.
  224. * @opt_param string lon Longitude to use in a geographic location query.
  225. * @opt_param string q Full-text search query string.
  226. * @opt_param string radius Radius to use in a geographic location query.
  227. * @opt_param string bbox Bounding box to use in a geographic location query.
  228. * @opt_param string hl Language code to limit language results.
  229. * @opt_param string lat Latitude to use in a geographic location query.
  230. * @return PeopleFeed
  231. */
  232. public function extractPeopleFromSearch($optParams = array()) {
  233. $params = array();
  234. $params = array_merge($params, $optParams);
  235. $data = $this->__call('extractPeopleFromSearch', array($params));
  236. if ($this->useObjects()) {
  237. return new PeopleFeed($data);
  238. } else {
  239. return $data;
  240. }
  241. }
  242. /**
  243. * Delete an activity (activities.delete)
  244. *
  245. * @param string $userId ID of the user whose post to delete.
  246. * @param string $scope The collection to which the activity belongs.
  247. * @param string $postId ID of the activity to delete.
  248. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  249. *
  250. * @opt_param string hl Language code to limit language results.
  251. */
  252. public function delete($userId, $scope, $postId, $optParams = array()) {
  253. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId);
  254. $params = array_merge($params, $optParams);
  255. $data = $this->__call('delete', array($params));
  256. return $data;
  257. }
  258. }
  259. /**
  260. * The "people" collection of methods.
  261. * Typical usage is:
  262. * <code>
  263. * $buzzService = new apiBuzzService(...);
  264. * $people = $buzzService->people;
  265. * </code>
  266. */
  267. class PeopleServiceResource extends apiServiceResource {
  268. /**
  269. * Get people who liked an activity (people.liked)
  270. *
  271. * @param string $userId ID of the user being referenced.
  272. * @param string $scope
  273. * @param string $postId ID of the activity that was liked.
  274. * @param string $groupId
  275. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  276. *
  277. * @opt_param string max-results Maximum number of results to include.
  278. * @opt_param string c A continuation token that allows pagination.
  279. * @opt_param string hl Language code to limit language results.
  280. * @return PeopleFeed
  281. */
  282. public function liked($userId, $scope, $postId, $groupId, $optParams = array()) {
  283. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId, 'groupId' => $groupId);
  284. $params = array_merge($params, $optParams);
  285. $data = $this->__call('liked', array($params));
  286. if ($this->useObjects()) {
  287. return new PeopleFeed($data);
  288. } else {
  289. return $data;
  290. }
  291. }
  292. /**
  293. * Get a user profile (people.get)
  294. *
  295. * @param string $userId ID of the user being referenced.
  296. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  297. *
  298. * @opt_param string hl Language code to limit language results.
  299. * @return Person
  300. */
  301. public function get($userId, $optParams = array()) {
  302. $params = array('userId' => $userId);
  303. $params = array_merge($params, $optParams);
  304. $data = $this->__call('get', array($params));
  305. if ($this->useObjects()) {
  306. return new Person($data);
  307. } else {
  308. return $data;
  309. }
  310. }
  311. /**
  312. * Add a person to a group (people.update)
  313. *
  314. * @param string $userId ID of the owner of the group.
  315. * @param string $groupId ID of the group to which to add the person.
  316. * @param string $personId ID of the person to add to the group.
  317. * @param $postBody the {@link Person}
  318. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  319. *
  320. * @opt_param string hl Language code to limit language results.
  321. * @return Person
  322. */
  323. public function update($userId, $groupId, $personId, Person $postBody, $optParams = array()) {
  324. $params = array('userId' => $userId, 'groupId' => $groupId, 'personId' => $personId, 'postBody' => $postBody);
  325. $params = array_merge($params, $optParams);
  326. $data = $this->__call('update', array($params));
  327. if ($this->useObjects()) {
  328. return new Person($data);
  329. } else {
  330. return $data;
  331. }
  332. }
  333. /**
  334. * Get people in a group (people.list)
  335. *
  336. * @param string $userId ID of the user being referenced.
  337. * @param string $groupId ID of the group for which to list users.
  338. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  339. *
  340. * @opt_param string max-results Maximum number of results to include.
  341. * @opt_param string c A continuation token that allows pagination.
  342. * @opt_param string hl Language code to limit language results.
  343. * @return PeopleFeed
  344. */
  345. public function listPeople($userId, $groupId, $optParams = array()) {
  346. $params = array('userId' => $userId, 'groupId' => $groupId);
  347. $params = array_merge($params, $optParams);
  348. $data = $this->__call('list', array($params));
  349. if ($this->useObjects()) {
  350. return new PeopleFeed($data);
  351. } else {
  352. return $data;
  353. }
  354. }
  355. /**
  356. * Search for people (people.search)
  357. *
  358. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  359. *
  360. * @opt_param string max-results Maximum number of results to include.
  361. * @opt_param string q Full-text search query string.
  362. * @opt_param string c A continuation token that allows pagination.
  363. * @opt_param string hl Language code to limit language results.
  364. * @return PeopleFeed
  365. */
  366. public function search($optParams = array()) {
  367. $params = array();
  368. $params = array_merge($params, $optParams);
  369. $data = $this->__call('search', array($params));
  370. if ($this->useObjects()) {
  371. return new PeopleFeed($data);
  372. } else {
  373. return $data;
  374. }
  375. }
  376. /**
  377. * Add a person to a group. This method supports patch semantics. (people.patch)
  378. *
  379. * @param string $userId ID of the owner of the group.
  380. * @param string $groupId ID of the group to which to add the person.
  381. * @param string $personId ID of the person to add to the group.
  382. * @param $postBody the {@link Person}
  383. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  384. *
  385. * @opt_param string hl Language code to limit language results.
  386. * @return Person
  387. */
  388. public function patch($userId, $groupId, $personId, Person $postBody, $optParams = array()) {
  389. $params = array('userId' => $userId, 'groupId' => $groupId, 'personId' => $personId, 'postBody' => $postBody);
  390. $params = array_merge($params, $optParams);
  391. $data = $this->__call('patch', array($params));
  392. if ($this->useObjects()) {
  393. return new Person($data);
  394. } else {
  395. return $data;
  396. }
  397. }
  398. /**
  399. * Get people who reshared an activity (people.reshared)
  400. *
  401. * @param string $userId ID of the user being referenced.
  402. * @param string $scope
  403. * @param string $postId ID of the activity that was reshared.
  404. * @param string $groupId
  405. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  406. *
  407. * @opt_param string max-results Maximum number of results to include.
  408. * @opt_param string c A continuation token that allows pagination.
  409. * @opt_param string hl Language code to limit language results.
  410. * @return PeopleFeed
  411. */
  412. public function reshared($userId, $scope, $postId, $groupId, $optParams = array()) {
  413. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId, 'groupId' => $groupId);
  414. $params = array_merge($params, $optParams);
  415. $data = $this->__call('reshared', array($params));
  416. if ($this->useObjects()) {
  417. return new PeopleFeed($data);
  418. } else {
  419. return $data;
  420. }
  421. }
  422. /**
  423. * Remove a person from a group (people.delete)
  424. *
  425. * @param string $userId ID of the owner of the group.
  426. * @param string $groupId ID of the group from which to remove the person.
  427. * @param string $personId ID of the person to remove from the group.
  428. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  429. *
  430. * @opt_param string hl Language code to limit language results.
  431. */
  432. public function delete($userId, $groupId, $personId, $optParams = array()) {
  433. $params = array('userId' => $userId, 'groupId' => $groupId, 'personId' => $personId);
  434. $params = array_merge($params, $optParams);
  435. $data = $this->__call('delete', array($params));
  436. return $data;
  437. }
  438. }
  439. /**
  440. * The "photoAlbums" collection of methods.
  441. * Typical usage is:
  442. * <code>
  443. * $buzzService = new apiBuzzService(...);
  444. * $photoAlbums = $buzzService->photoAlbums;
  445. * </code>
  446. */
  447. class PhotoAlbumsServiceResource extends apiServiceResource {
  448. /**
  449. * Create a photo album (photoAlbums.insert)
  450. *
  451. * @param string $userId ID of the user being referenced.
  452. * @param $postBody the {@link Album}
  453. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  454. *
  455. * @opt_param string hl Language code to limit language results.
  456. * @return Album
  457. */
  458. public function insert($userId, Album $postBody, $optParams = array()) {
  459. $params = array('userId' => $userId, 'postBody' => $postBody);
  460. $params = array_merge($params, $optParams);
  461. $data = $this->__call('insert', array($params));
  462. if ($this->useObjects()) {
  463. return new Album($data);
  464. } else {
  465. return $data;
  466. }
  467. }
  468. /**
  469. * Get a photo album (photoAlbums.get)
  470. *
  471. * @param string $userId ID of the user being referenced.
  472. * @param string $albumId ID of the album to get.
  473. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  474. *
  475. * @opt_param string hl Language code to limit language results.
  476. * @return Album
  477. */
  478. public function get($userId, $albumId, $optParams = array()) {
  479. $params = array('userId' => $userId, 'albumId' => $albumId);
  480. $params = array_merge($params, $optParams);
  481. $data = $this->__call('get', array($params));
  482. if ($this->useObjects()) {
  483. return new Album($data);
  484. } else {
  485. return $data;
  486. }
  487. }
  488. /**
  489. * List a user's photo albums (photoAlbums.list)
  490. *
  491. * @param string $userId ID of the user being referenced.
  492. * @param string $scope The collection of albums to list.
  493. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  494. *
  495. * @opt_param string max-results Maximum number of results to include.
  496. * @opt_param string c A continuation token that allows pagination.
  497. * @opt_param string hl Language code to limit language results.
  498. * @return AlbumsFeed
  499. */
  500. public function listPhotoAlbums($userId, $scope, $optParams = array()) {
  501. $params = array('userId' => $userId, 'scope' => $scope);
  502. $params = array_merge($params, $optParams);
  503. $data = $this->__call('list', array($params));
  504. if ($this->useObjects()) {
  505. return new AlbumsFeed($data);
  506. } else {
  507. return $data;
  508. }
  509. }
  510. /**
  511. * Delete a photo album (photoAlbums.delete)
  512. *
  513. * @param string $userId ID of the user being referenced.
  514. * @param string $albumId ID of the album to delete.
  515. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  516. *
  517. * @opt_param string hl Language code to limit language results.
  518. */
  519. public function delete($userId, $albumId, $optParams = array()) {
  520. $params = array('userId' => $userId, 'albumId' => $albumId);
  521. $params = array_merge($params, $optParams);
  522. $data = $this->__call('delete', array($params));
  523. return $data;
  524. }
  525. }
  526. /**
  527. * The "comments" collection of methods.
  528. * Typical usage is:
  529. * <code>
  530. * $buzzService = new apiBuzzService(...);
  531. * $comments = $buzzService->comments;
  532. * </code>
  533. */
  534. class CommentsServiceResource extends apiServiceResource {
  535. /**
  536. * Create a comment (comments.insert)
  537. *
  538. * @param string $userId ID of the user on whose behalf to comment.
  539. * @param string $postId ID of the activity on which to comment.
  540. * @param $postBody the {@link Comment}
  541. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  542. *
  543. * @opt_param string hl Language code to limit language results.
  544. * @return Comment
  545. */
  546. public function insert($userId, $postId, Comment $postBody, $optParams = array()) {
  547. $params = array('userId' => $userId, 'postId' => $postId, 'postBody' => $postBody);
  548. $params = array_merge($params, $optParams);
  549. $data = $this->__call('insert', array($params));
  550. if ($this->useObjects()) {
  551. return new Comment($data);
  552. } else {
  553. return $data;
  554. }
  555. }
  556. /**
  557. * Get a comment (comments.get)
  558. *
  559. * @param string $userId ID of the user being referenced.
  560. * @param string $postId ID of the activity for which to get comments.
  561. * @param string $commentId ID of the comment being referenced.
  562. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  563. *
  564. * @opt_param string hl Language code to limit language results.
  565. * @return Comment
  566. */
  567. public function get($userId, $postId, $commentId, $optParams = array()) {
  568. $params = array('userId' => $userId, 'postId' => $postId, 'commentId' => $commentId);
  569. $params = array_merge($params, $optParams);
  570. $data = $this->__call('get', array($params));
  571. if ($this->useObjects()) {
  572. return new Comment($data);
  573. } else {
  574. return $data;
  575. }
  576. }
  577. /**
  578. * List comments (comments.list)
  579. *
  580. * @param string $userId ID of the user for whose post to get comments.
  581. * @param string $scope The collection to which the activity belongs.
  582. * @param string $postId ID of the activity for which to get comments.
  583. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  584. *
  585. * @opt_param string max-results Maximum number of results to include.
  586. * @opt_param string c A continuation token that allows pagination.
  587. * @opt_param string hl Language code to limit language results.
  588. * @return CommentFeed
  589. */
  590. public function listComments($userId, $scope, $postId, $optParams = array()) {
  591. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId);
  592. $params = array_merge($params, $optParams);
  593. $data = $this->__call('list', array($params));
  594. if ($this->useObjects()) {
  595. return new CommentFeed($data);
  596. } else {
  597. return $data;
  598. }
  599. }
  600. /**
  601. * Update a comment (comments.update)
  602. *
  603. * @param string $userId ID of the user being referenced.
  604. * @param string $scope The collection to which the activity belongs.
  605. * @param string $postId ID of the activity for which to update the comment.
  606. * @param string $commentId ID of the comment being referenced.
  607. * @param $postBody the {@link Comment}
  608. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  609. *
  610. * @opt_param string abuseType
  611. * @opt_param string hl Language code to limit language results.
  612. * @return Comment
  613. */
  614. public function update($userId, $scope, $postId, $commentId, Comment $postBody, $optParams = array()) {
  615. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId, 'commentId' => $commentId, 'postBody' => $postBody);
  616. $params = array_merge($params, $optParams);
  617. $data = $this->__call('update', array($params));
  618. if ($this->useObjects()) {
  619. return new Comment($data);
  620. } else {
  621. return $data;
  622. }
  623. }
  624. /**
  625. * Update a comment. This method supports patch semantics. (comments.patch)
  626. *
  627. * @param string $userId ID of the user being referenced.
  628. * @param string $scope The collection to which the activity belongs.
  629. * @param string $postId ID of the activity for which to update the comment.
  630. * @param string $commentId ID of the comment being referenced.
  631. * @param $postBody the {@link Comment}
  632. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  633. *
  634. * @opt_param string abuseType
  635. * @opt_param string hl Language code to limit language results.
  636. * @return Comment
  637. */
  638. public function patch($userId, $scope, $postId, $commentId, Comment $postBody, $optParams = array()) {
  639. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId, 'commentId' => $commentId, 'postBody' => $postBody);
  640. $params = array_merge($params, $optParams);
  641. $data = $this->__call('patch', array($params));
  642. if ($this->useObjects()) {
  643. return new Comment($data);
  644. } else {
  645. return $data;
  646. }
  647. }
  648. /**
  649. * Delete a comment (comments.delete)
  650. *
  651. * @param string $userId ID of the user being referenced.
  652. * @param string $postId ID of the activity for which to delete the comment.
  653. * @param string $commentId ID of the comment being referenced.
  654. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  655. *
  656. * @opt_param string hl Language code to limit language results.
  657. */
  658. public function delete($userId, $postId, $commentId, $optParams = array()) {
  659. $params = array('userId' => $userId, 'postId' => $postId, 'commentId' => $commentId);
  660. $params = array_merge($params, $optParams);
  661. $data = $this->__call('delete', array($params));
  662. return $data;
  663. }
  664. }
  665. /**
  666. * The "photos" collection of methods.
  667. * Typical usage is:
  668. * <code>
  669. * $buzzService = new apiBuzzService(...);
  670. * $photos = $buzzService->photos;
  671. * </code>
  672. */
  673. class PhotosServiceResource extends apiServiceResource {
  674. /**
  675. * Upload a photo to an album (photos.insert2)
  676. *
  677. * @param string $userId ID of the user being referenced.
  678. * @param string $albumId ID of the album to which to upload.
  679. * @param $postBody the {@link ChiliPhotosResourceJson}
  680. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  681. *
  682. * @opt_param string hl Language code to limit language results.
  683. * @return ChiliPhotosResourceJson
  684. */
  685. public function insert2($userId, $albumId, ChiliPhotosResourceJson $postBody, $optParams = array()) {
  686. $params = array('userId' => $userId, 'albumId' => $albumId, 'postBody' => $postBody);
  687. $params = array_merge($params, $optParams);
  688. $data = $this->__call('insert2', array($params));
  689. if ($this->useObjects()) {
  690. return new ChiliPhotosResourceJson($data);
  691. } else {
  692. return $data;
  693. }
  694. }
  695. /**
  696. * Upload a photo to an album (photos.insert)
  697. *
  698. * @param string $userId ID of the user being referenced.
  699. * @param string $albumId ID of the album to which to upload.
  700. * @param $postBody the {@link AlbumLite}
  701. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  702. *
  703. * @opt_param string hl Language code to limit language results.
  704. * @return AlbumLite
  705. */
  706. public function insert($userId, $albumId, AlbumLite $postBody, $optParams = array()) {
  707. $params = array('userId' => $userId, 'albumId' => $albumId, 'postBody' => $postBody);
  708. $params = array_merge($params, $optParams);
  709. $data = $this->__call('insert', array($params));
  710. if ($this->useObjects()) {
  711. return new AlbumLite($data);
  712. } else {
  713. return $data;
  714. }
  715. }
  716. /**
  717. * Get photo metadata (photos.get)
  718. *
  719. * @param string $userId ID of the user being referenced.
  720. * @param string $albumId ID of the album containing the photo.
  721. * @param string $photoId ID of the photo for which to get metadata.
  722. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  723. *
  724. * @opt_param string hl Language code to limit language results.
  725. * @return ChiliPhotosResourceJson
  726. */
  727. public function get($userId, $albumId, $photoId, $optParams = array()) {
  728. $params = array('userId' => $userId, 'albumId' => $albumId, 'photoId' => $photoId);
  729. $params = array_merge($params, $optParams);
  730. $data = $this->__call('get', array($params));
  731. if ($this->useObjects()) {
  732. return new ChiliPhotosResourceJson($data);
  733. } else {
  734. return $data;
  735. }
  736. }
  737. /**
  738. * Get a user's photos (photos.listByScope)
  739. *
  740. * @param string $userId ID of the user being referenced.
  741. * @param string $scope The collection of photos to list.
  742. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  743. *
  744. * @opt_param string max-results Maximum number of results to include.
  745. * @opt_param string c A continuation token that allows pagination.
  746. * @opt_param string hl Language code to limit language results.
  747. * @return PhotosFeed
  748. */
  749. public function listByScope($userId, $scope, $optParams = array()) {
  750. $params = array('userId' => $userId, 'scope' => $scope);
  751. $params = array_merge($params, $optParams);
  752. $data = $this->__call('listByScope', array($params));
  753. if ($this->useObjects()) {
  754. return new PhotosFeed($data);
  755. } else {
  756. return $data;
  757. }
  758. }
  759. /**
  760. * Delete a photo (photos.delete)
  761. *
  762. * @param string $userId ID of the user being referenced.
  763. * @param string $albumId ID of the album to which to photo belongs.
  764. * @param string $photoId ID of the photo to delete.
  765. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  766. *
  767. * @opt_param string hl Language code to limit language results.
  768. */
  769. public function delete($userId, $albumId, $photoId, $optParams = array()) {
  770. $params = array('userId' => $userId, 'albumId' => $albumId, 'photoId' => $photoId);
  771. $params = array_merge($params, $optParams);
  772. $data = $this->__call('delete', array($params));
  773. return $data;
  774. }
  775. /**
  776. * List photos in an album (photos.listByAlbum)
  777. *
  778. * @param string $userId ID of the user being referenced.
  779. * @param string $albumId ID of the album for which to list photos.
  780. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  781. *
  782. * @opt_param string max-results Maximum number of results to include.
  783. * @opt_param string c A continuation token that allows pagination.
  784. * @opt_param string hl Language code to limit language results.
  785. * @return PhotosFeed
  786. */
  787. public function listByAlbum($userId, $albumId, $optParams = array()) {
  788. $params = array('userId' => $userId, 'albumId' => $albumId);
  789. $params = array_merge($params, $optParams);
  790. $data = $this->__call('listByAlbum', array($params));
  791. if ($this->useObjects()) {
  792. return new PhotosFeed($data);
  793. } else {
  794. return $data;
  795. }
  796. }
  797. }
  798. /**
  799. * The "related" collection of methods.
  800. * Typical usage is:
  801. * <code>
  802. * $buzzService = new apiBuzzService(...);
  803. * $related = $buzzService->related;
  804. * </code>
  805. */
  806. class RelatedServiceResource extends apiServiceResource {
  807. /**
  808. * Get related links for an activity (related.list)
  809. *
  810. * @param string $userId ID of the user being referenced.
  811. * @param string $scope The collection to which the activity belongs.
  812. * @param string $postId ID of the activity to which to get related links.
  813. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  814. *
  815. * @opt_param string hl Language code to limit language results.
  816. * @return RelatedFeed
  817. */
  818. public function listRelated($userId, $scope, $postId, $optParams = array()) {
  819. $params = array('userId' => $userId, 'scope' => $scope, 'postId' => $postId);
  820. $params = array_merge($params, $optParams);
  821. $data = $this->__call('list', array($params));
  822. if ($this->useObjects()) {
  823. return new RelatedFeed($data);
  824. } else {
  825. return $data;
  826. }
  827. }
  828. }
  829. /**
  830. * The "groups" collection of methods.
  831. * Typical usage is:
  832. * <code>
  833. * $buzzService = new apiBuzzService(...);
  834. * $groups = $buzzService->groups;
  835. * </code>
  836. */
  837. class GroupsServiceResource extends apiServiceResource {
  838. /**
  839. * Create a group (groups.insert)
  840. *
  841. * @param string $userId ID of the user being referenced.
  842. * @param $postBody the {@link Group}
  843. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  844. *
  845. * @opt_param string hl Language code to limit language results.
  846. * @return Group
  847. */
  848. public function insert($userId, Group $postBody, $optParams = array()) {
  849. $params = array('userId' => $userId, 'postBody' => $postBody);
  850. $params = array_merge($params, $optParams);
  851. $data = $this->__call('insert', array($params));
  852. if ($this->useObjects()) {
  853. return new Group($data);
  854. } else {
  855. return $data;
  856. }
  857. }
  858. /**
  859. * Get a group (groups.get)
  860. *
  861. * @param string $userId ID of the user being referenced.
  862. * @param string $groupId ID of the group to get.
  863. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  864. *
  865. * @opt_param string hl Language code to limit language results.
  866. * @return Group
  867. */
  868. public function get($userId, $groupId, $optParams = array()) {
  869. $params = array('userId' => $userId, 'groupId' => $groupId);
  870. $params = array_merge($params, $optParams);
  871. $data = $this->__call('get', array($params));
  872. if ($this->useObjects()) {
  873. return new Group($data);
  874. } else {
  875. return $data;
  876. }
  877. }
  878. /**
  879. * Get a user's groups (groups.list)
  880. *
  881. * @param string $userId ID of the user being referenced.
  882. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  883. *
  884. * @opt_param string max-results Maximum number of results to include.
  885. * @opt_param string c A continuation token that allows pagination.
  886. * @opt_param string hl Language code to limit language results.
  887. * @return GroupFeed
  888. */
  889. public function listGroups($userId, $optParams = array()) {
  890. $params = array('userId' => $userId);
  891. $params = array_merge($params, $optParams);
  892. $data = $this->__call('list', array($params));
  893. if ($this->useObjects()) {
  894. return new GroupFeed($data);
  895. } else {
  896. return $data;
  897. }
  898. }
  899. /**
  900. * Update a group (groups.update)
  901. *
  902. * @param string $userId ID of the user being referenced.
  903. * @param string $groupId ID of the group to update.
  904. * @param $postBody the {@link Group}
  905. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  906. *
  907. * @opt_param string hl Language code to limit language results.
  908. * @return Group
  909. */
  910. public function update($userId, $groupId, Group $postBody, $optParams = array()) {
  911. $params = array('userId' => $userId, 'groupId' => $groupId, 'postBody' => $postBody);
  912. $params = array_merge($params, $optParams);
  913. $data = $this->__call('update', array($params));
  914. if ($this->useObjects()) {
  915. return new Group($data);
  916. } else {
  917. return $data;
  918. }
  919. }
  920. /**
  921. * Update a group. This method supports patch semantics. (groups.patch)
  922. *
  923. * @param string $userId ID of the user being referenced.
  924. * @param string $groupId ID of the group to update.
  925. * @param $postBody the {@link Group}
  926. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  927. *
  928. * @opt_param string hl Language code to limit language results.
  929. * @return Group
  930. */
  931. public function patch($userId, $groupId, Group $postBody, $optParams = array()) {
  932. $params = array('userId' => $userId, 'groupId' => $groupId, 'postBody' => $postBody);
  933. $params = array_merge($params, $optParams);
  934. $data = $this->__call('patch', array($params));
  935. if ($this->useObjects()) {
  936. return new Group($data);
  937. } else {
  938. return $data;
  939. }
  940. }
  941. /**
  942. * Delete a group (groups.delete)
  943. *
  944. * @param string $userId ID of the user being referenced.
  945. * @param string $groupId ID of the group to delete.
  946. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  947. *
  948. * @opt_param string hl Language code to limit language results.
  949. */
  950. public function delete($userId, $groupId, $optParams = array()) {
  951. $params = array('userId' => $userId, 'groupId' => $groupId);
  952. $params = array_merge($params, $optParams);
  953. $data = $this->__call('delete', array($params));
  954. return $data;
  955. }
  956. }
  957. /**
  958. * Service definition for Buzz (v1).
  959. *
  960. * <p>
  961. * Lets you share updates, photos, videos, and more with your friends around the world
  962. * </p>
  963. *
  964. * <p>
  965. * For more information about this service, see the
  966. * <a href="http://code.google.com/apis/buzz/v1/using_rest.html" target="_blank">API Documentation</a>
  967. * </p>
  968. *
  969. * @author Google, Inc.
  970. */
  971. class apiBuzzService extends apiService {
  972. public $activities;
  973. public $people;
  974. public $photoAlbums;
  975. public $comments;
  976. public $photos;
  977. public $related;
  978. public $groups;
  979. /**
  980. * Constructs the internal representation of the Buzz service.
  981. *
  982. * @param apiClient apiClient
  983. */
  984. public function __construct(apiClient $apiClient) {
  985. $this->rpcPath = '/rpc';
  986. $this->restBasePath = '/buzz/v1/';
  987. $this->version = 'v1';
  988. $this->serviceName = 'buzz';
  989. $this->io = $apiClient->getIo();
  990. $apiClient->addService($this->serviceName, $this->version);
  991. $this->activities = new ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"count": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"url": {"repeated": true, "type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}}, "response": {"$ref": "CountFeed"}, "httpMethod": "GET", "path": "activities/count", "id": "chili.activities.count"}, "insert": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "preview": {"default": "false", "type": "boolean", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "mediaUpload": {"maxSize": "10MB", "accept": ["image/*"], "protocols": {"simple": {"path": "/upload/buzz/v1/activities/{userId}/@self", "multipart": true}, "resumable": {"path": "/resumable/upload/buzz/v1/activities/{userId}/@self", "multipart": true}}}, "request": {"$ref": "Activity"}, "id": "chili.activities.insert", "httpMethod": "POST", "path": "activities/{userId}/@self", "response": {"$ref": "Activity"}}, "search": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "pid": {"type": "string", "location": "query"}, "lon": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "truncateAtom": {"type": "boolean", "location": "query"}, "radius": {"type": "string", "location": "query"}, "bbox": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "lat": {"type": "string", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "response": {"$ref": "ActivityFeed"}, "httpMethod": "GET", "path": "activities/search", "id": "chili.activities.search"}, "get": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "truncateAtom": {"type": "boolean", "location": "query"}, "max-comments": {"default": "0", "format": "uint32", "type": "integer", "location": "query"}, "hl": {"type": "string", "location": "query"}, "max-liked": {"default": "0", "format": "uint32", "type": "integer", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}}, "id": "chili.activities.get", "httpMethod": "GET", "path": "activities/{userId}/@self/{postId}", "response": {"$ref": "Activity"}}, "track": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "pid": {"type": "string", "location": "query"}, "lon": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "radius": {"type": "string", "location": "query"}, "bbox": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "lat": {"type": "string", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "response": {"$ref": "ActivityFeed"}, "httpMethod": "GET", "path": "activities/track", "id": "chili.activities.track"}, "list": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "truncateAtom": {"type": "boolean", "location": "query"}, "max-comments": {"default": "0", "format": "uint32", "type": "integer", "location": "query"}, "hl": {"type": "string", "location": "query"}, "max-liked": {"default": "0", "format": "uint32", "type": "integer", "location": "query"}, "scope": {"required": true, "enum": ["@comments", "@consumption", "@liked", "@public", "@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "id": "chili.activities.list", "httpMethod": "GET", "path": "activities/{userId}/{scope}", "response": {"$ref": "ActivityFeed"}}, "update": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "abuseType": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "enum": ["@abuse", "@liked", "@muted", "@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Activity"}, "id": "chili.activities.update", "httpMethod": "PUT", "path": "activities/{userId}/{scope}/{postId}", "response": {"$ref": "Activity"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "abuseType": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "enum": ["@abuse", "@liked", "@muted", "@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Activity"}, "id": "chili.activities.patch", "httpMethod": "PATCH", "path": "activities/{userId}/{scope}/{postId}", "response": {"$ref": "Activity"}}, "extractPeopleFromSearch": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "pid": {"type": "string", "location": "query"}, "lon": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "radius": {"type": "string", "location": "query"}, "bbox": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "lat": {"type": "string", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "response": {"$ref": "PeopleFeed"}, "httpMethod": "GET", "path": "activities/search/@people", "id": "chili.activities.extractPeopleFromSearch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"scope": {"required": true, "enum": ["@liked", "@muted", "@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "httpMethod": "DELETE", "path": "activities/{userId}/{scope}/{postId}", "id": "chili.activities.delete"}}}', true));
  992. $this->people = new PeopleServiceResource($this, $this->serviceName, 'people', json_decode('{"methods": {"search": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "c": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}}, "response": {"$ref": "PeopleFeed"}, "httpMethod": "GET", "path": "people/search", "id": "chili.people.search"}, "get": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "chili.people.get", "httpMethod": "GET", "path": "people/{userId}/@self", "response": {"$ref": "Person"}}, "update": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"personId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Person"}, "id": "chili.people.update", "httpMethod": "PUT", "path": "people/{userId}/@groups/{groupId}/{personId}", "response": {"$ref": "Person"}}, "list": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "groupId": {"required": true, "type": "string", "location": "path"}}, "id": "chili.people.list", "httpMethod": "GET", "path": "people/{userId}/@groups/{groupId}", "response": {"$ref": "PeopleFeed"}}, "liked": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path", "enum": ["@liked"]}}, "id": "chili.people.liked", "httpMethod": "GET", "path": "activities/{userId}/{scope}/{postId}/{groupId}", "response": {"$ref": "PeopleFeed"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"personId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Person"}, "id": "chili.people.patch", "httpMethod": "PATCH", "path": "people/{userId}/@groups/{groupId}/{personId}", "response": {"$ref": "Person"}}, "reshared": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path", "enum": ["@reshared"]}}, "id": "chili.people.reshared", "httpMethod": "GET", "path": "activities/{userId}/{scope}/{postId}/{groupId}", "response": {"$ref": "PeopleFeed"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"personId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "httpMethod": "DELETE", "path": "people/{userId}/@groups/{groupId}/{personId}", "id": "chili.people.delete"}}}', true));
  993. $this->photoAlbums = new PhotoAlbumsServiceResource($this, $this->serviceName, 'photoAlbums', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Album"}, "id": "chili.photoAlbums.insert", "httpMethod": "POST", "path": "photos/{userId}/@self", "response": {"$ref": "Album"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"albumId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "httpMethod": "DELETE", "path": "photos/{userId}/@self/{albumId}", "id": "chili.photoAlbums.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "enum": ["@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "id": "chili.photoAlbums.list", "httpMethod": "GET", "path": "photos/{userId}/{scope}", "response": {"$ref": "AlbumsFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"albumId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "chili.photoAlbums.get", "httpMethod": "GET", "path": "photos/{userId}/@self/{albumId}", "response": {"$ref": "Album"}}}}', true));
  994. $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Comment"}, "id": "chili.comments.insert", "httpMethod": "POST", "path": "activities/{userId}/@self/{postId}/@comments", "response": {"$ref": "Comment"}}, "get": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "chili.comments.get", "httpMethod": "GET", "path": "activities/{userId}/@self/{postId}/@comments/{commentId}", "response": {"$ref": "Comment"}}, "list": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "enum": ["@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}}, "id": "chili.comments.list", "httpMethod": "GET", "path": "activities/{userId}/{scope}/{postId}/@comments", "response": {"$ref": "CommentFeed"}}, "update": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "abuseType": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "commentId": {"required": true, "type": "string", "location": "path"}, "scope": {"required": true, "enum": ["@abuse", "@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "id": "chili.comments.update", "httpMethod": "PUT", "path": "activities/{userId}/{scope}/{postId}/@comments/{commentId}", "response": {"$ref": "Comment"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "abuseType": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "commentId": {"required": true, "type": "string", "location": "path"}, "scope": {"required": true, "enum": ["@abuse", "@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "id": "chili.comments.patch", "httpMethod": "PATCH", "path": "activities/{userId}/{scope}/{postId}/@comments/{commentId}", "response": {"$ref": "Comment"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "httpMethod": "DELETE", "path": "activities/{userId}/@self/{postId}/@comments/{commentId}", "id": "chili.comments.delete"}}}', true));
  995. $this->photos = new PhotosServiceResource($this, $this->serviceName, 'photos', json_decode('{"methods": {"insert2": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"albumId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "mediaUpload": {"maxSize": "30MB", "accept": ["image/*"], "protocols": {"simple": {"path": "/upload/buzz/v1/photos/{userId}/@self/{albumId}/@photos", "multipart": true}, "resumable": {"path": "/resumable/upload/buzz/v1/photos/{userId}/@self/{albumId}/@photos", "multipart": true}}}, "request": {"$ref": "ChiliPhotosResourceJson"}, "id": "chili.photos.insert2", "httpMethod": "POST", "path": "photos/{userId}/@self/{albumId}/@photos", "response": {"$ref": "ChiliPhotosResourceJson"}}, "insert": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"albumId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "mediaUpload": {"maxSize": "30MB", "accept": ["image/*"], "protocols": {"simple": {"path": "/upload/buzz/v1/photos/{userId}/{albumId}", "multipart": true}, "resumable": {"path": "/resumable/upload/buzz/v1/photos/{userId}/{albumId}", "multipart": true}}}, "request": {"$ref": "AlbumLite"}, "id": "chili.photos.insert", "httpMethod": "POST", "path": "photos/{userId}/{albumId}", "response": {"$ref": "AlbumLite"}}, "get": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"albumId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "photoId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "chili.photos.get", "httpMethod": "GET", "path": "photos/{userId}/@self/{albumId}/@photos/{photoId}", "response": {"$ref": "ChiliPhotosResourceJson"}}, "listByScope": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "scope": {"required": true, "enum": ["@recent"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "id": "chili.photos.listByScope", "httpMethod": "GET", "path": "photos/{userId}/@self/{scope}/@photos", "response": {"$ref": "PhotosFeed"}}, "listByAlbum": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "c": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "albumId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}}, "id": "chili.photos.listByAlbum", "httpMethod": "GET", "path": "photos/{userId}/@self/{albumId}/@photos", "response": {"$ref": "PhotosFeed"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/picasa"], "parameters": {"albumId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "photoId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "photos/{userId}/@self/{albumId}/@photos/{photoId}", "id": "chili.photos.delete"}}}', true));
  996. $this->related = new RelatedServiceResource($this, $this->serviceName, 'related', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"scope": {"required": true, "enum": ["@self"], "location": "path", "type": "string"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "postId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "chili.related.list", "httpMethod": "GET", "path": "activities/{userId}/{scope}/{postId}/@related", "response": {"$ref": "RelatedFeed"}}}}', true));
  997. $this->groups = new GroupsServiceResource($this, $this->serviceName, 'groups', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Group"}, "id": "chili.groups.insert", "httpMethod": "POST", "path": "people/{userId}/@groups", "response": {"$ref": "Group"}}, "get": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "chili.groups.get", "httpMethod": "GET", "path": "people/{userId}/@groups/{groupId}/@self", "response": {"$ref": "Group"}}, "list": {"scopes": ["https://www.googleapis.com/auth/buzz", "https://www.googleapis.com/auth/buzz.readonly"], "parameters": {"max-results": {"default": "20", "format": "uint32", "type": "integer", "location": "query"}, "alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "c": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}}, "id": "chili.groups.list", "httpMethod": "GET", "path": "people/{userId}/@groups", "response": {"$ref": "GroupFeed"}}, "update": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Group"}, "id": "chili.groups.update", "httpMethod": "PUT", "path": "people/{userId}/@groups/{groupId}/@self", "response": {"$ref": "Group"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "request": {"$ref": "Group"}, "id": "chili.groups.patch", "httpMethod": "PATCH", "path": "people/{userId}/@groups/{groupId}/@self", "response": {"$ref": "Group"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/buzz"], "parameters": {"alt": {"default": "atom", "enum": ["atom", "json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "groupId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "httpMethod": "DELETE", "path": "people/{userId}/@groups/{groupId}", "id": "chili.groups.delete"}}}', true));
  998. }
  999. }
  1000. class Activity extends apiModel {
  1001. public $untranslatedTitle;
  1002. protected $__linksType = 'ActivityLinks';
  1003. public $links;
  1004. public $radius;
  1005. public $id;
  1006. public $title;
  1007. public $geocode;
  1008. protected $__actorType = 'ActivityActor';
  1009. public $actor;
  1010. protected $__sourceType = 'ActivitySource';
  1011. public $source;
  1012. public $verbs;
  1013. public $crosspostSource;
  1014. public $placeName;
  1015. public $updated;
  1016. protected $__objectType = 'ActivityObject';
  1017. public $object;
  1018. protected $__visibilityType = 'ActivityVisibility';
  1019. public $visibility;
  1020. public $detectedlLang;
  1021. public $address;
  1022. public $placeholder;
  1023. public $annotation;
  1024. protected $__categoriesType = 'ActivityCategories';
  1025. public $categories;
  1026. public $targetLang;
  1027. public $kind;
  1028. public $placeId;
  1029. public $published;
  1030. public function setUntranslatedTitle($untranslatedTitle) {
  1031. $this->untranslatedTitle = $untranslatedTitle;
  1032. }
  1033. public function getUntranslatedTitle() {
  1034. return $this->untranslatedTitle;
  1035. }
  1036. public function setLinks(ActivityLinks $links) {
  1037. $this->links = $links;
  1038. }
  1039. public function getLinks() {
  1040. return $this->links;
  1041. }
  1042. public function setRadius($radius) {
  1043. $this->radius = $radius;
  1044. }
  1045. public function getRadius() {
  1046. return $this->radius;
  1047. }
  1048. public function setId($id) {
  1049. $this->id = $id;
  1050. }
  1051. public function getId() {
  1052. return $this->id;
  1053. }
  1054. public function setTitle($title) {
  1055. $this->title = $title;
  1056. }
  1057. public function getTitle() {
  1058. return $this->title;
  1059. }
  1060. public function setGeocode($geocode) {
  1061. $this->geocode = $geocode;
  1062. }
  1063. public function getGeocode() {
  1064. return $this->geocode;
  1065. }
  1066. public function setActor(ActivityActor $actor) {
  1067. $this->actor = $actor;
  1068. }
  1069. public function getActor() {
  1070. return $this->actor;
  1071. }
  1072. public function setSource(ActivitySource $source) {
  1073. $this->source = $source;
  1074. }
  1075. public function getSource() {
  1076. return $this->source;
  1077. }
  1078. public function setVerbs(/* array(string) */ $verbs) {
  1079. $this->verbs = $verbs;
  1080. }
  1081. public function getVerbs() {
  1082. return $this->verbs;
  1083. }
  1084. public function setCrosspostSource($crosspostSource) {
  1085. $this->crosspostSource = $crosspostSource;
  1086. }
  1087. public function getCrosspostSource() {
  1088. return $this->crosspostSource;
  1089. }
  1090. public function setPlaceName($placeName) {
  1091. $this->placeName = $placeName;
  1092. }
  1093. public function getPlaceName() {
  1094. return $this->placeName;
  1095. }
  1096. public function setUpdated($updated) {
  1097. $this->updated = $updated;
  1098. }
  1099. public function getUpdated() {
  1100. return $this->updated;
  1101. }
  1102. public function setObject(ActivityObject $object) {
  1103. $this->object = $object;
  1104. }
  1105. public function getObject() {
  1106. return $this->object;
  1107. }
  1108. public function setVisibility(ActivityVisibility $visibility) {
  1109. $this->visibility = $visibility;
  1110. }
  1111. public function getVisibility() {
  1112. return $this->visibility;
  1113. }
  1114. public function setDetectedlLang($detectedlLang) {
  1115. $this->detectedlLang = $detectedlLang;
  1116. }
  1117. public function getDetectedlLang() {
  1118. return $this->detectedlLang;
  1119. }
  1120. public function setAddress($address) {
  1121. $this->address = $address;
  1122. }
  1123. public function getAddress() {
  1124. return $this->address;
  1125. }
  1126. public function setPlaceholder($placeholder) {
  1127. $this->placeholder = $placeholder;
  1128. }
  1129. public function getPlaceholder() {
  1130. return $this->placeholder;
  1131. }
  1132. public function setAnnotation($annotation) {
  1133. $this->annotation = $annotation;
  1134. }
  1135. public function getAnnotation() {
  1136. return $this->annotation;
  1137. }
  1138. public function setCategories(/* array(ActivityCategories) */ $categories) {
  1139. $this->categories = $categories;
  1140. }
  1141. public function getCategories() {
  1142. return $this->categories;
  1143. }
  1144. public function setTargetLang($targetLang) {
  1145. $this->targetLang = $targetLang;
  1146. }
  1147. public function getTargetLang() {
  1148. return $this->targetLang;
  1149. }
  1150. public function setKind($kind) {
  1151. $this->kind = $kind;
  1152. }
  1153. public function getKind() {
  1154. return $this->kind;
  1155. }
  1156. public function setPlaceId($placeId) {
  1157. $this->placeId = $placeId;
  1158. }
  1159. public function getPlaceId() {
  1160. return $this->placeId;
  1161. }
  1162. public function setPublished($published) {
  1163. $this->published = $published;
  1164. }
  1165. public function getPublished() {
  1166. return $this->published;
  1167. }
  1168. }
  1169. class ActivityActor extends apiModel {
  1170. public $profileUrl;
  1171. public $thumbnailUrl;
  1172. public $id;
  1173. public $name;
  1174. public function setProfileUrl($profileUrl) {
  1175. $this->profileUrl = $profileUrl;
  1176. }
  1177. public function getProfileUrl() {
  1178. return $this->profileUrl;
  1179. }
  1180. public function setThumbnailUrl($thumbnailUrl) {
  1181. $this->thumbnailUrl = $thumbnailUrl;
  1182. }
  1183. public function getThumbnailUrl() {
  1184. return $this->thumbnailUrl;
  1185. }
  1186. public function setId($id) {
  1187. $this->id = $id;
  1188. }
  1189. public function getId() {
  1190. return $this->id;
  1191. }
  1192. public function setName($name) {
  1193. $this->name = $name;
  1194. }
  1195. public function getName() {
  1196. return $this->name;
  1197. }
  1198. }
  1199. class ActivityCategories extends apiModel {
  1200. public $term;
  1201. public $schema;
  1202. public $label;
  1203. public function setTerm($term) {
  1204. $this->term = $term;
  1205. }
  1206. public function getTerm() {
  1207. return $this->term;
  1208. }
  1209. public function setSchema($schema) {
  1210. $this->schema = $schema;
  1211. }
  1212. public function getSchema() {
  1213. return $this->schema;
  1214. }
  1215. public function setLabel($label) {
  1216. $this->label = $label;
  1217. }
  1218. public function getLabel() {
  1219. return $this->label;
  1220. }
  1221. }
  1222. class ActivityFeed extends apiModel {
  1223. public $kind;
  1224. protected $__linksType = 'ActivityFeedLinksItems';
  1225. public $links;
  1226. public $title;
  1227. protected $__itemsType = 'Activity';
  1228. public $items;
  1229. public $updated;
  1230. public $id;
  1231. public function setKind($kind) {
  1232. $this->kind = $kind;
  1233. }
  1234. public function getKind() {
  1235. return $this->kind;
  1236. }
  1237. public function setLinks(ActivityFeedLinksItems $links) {
  1238. $this->links = $links;
  1239. }
  1240. public function getLinks() {
  1241. return $this->links;
  1242. }
  1243. public function setTitle($title) {
  1244. $this->title = $title;
  1245. }
  1246. public function getTitle() {
  1247. return $this->title;
  1248. }
  1249. public function setItems(/* array(Activity) */ $items) {
  1250. $this->items = $items;
  1251. }
  1252. public function getItems() {
  1253. return $this->items;
  1254. }
  1255. public function setUpdated($updated) {
  1256. $this->updated = $updated;
  1257. }
  1258. public function getUpdated() {
  1259. return $this->updated;
  1260. }
  1261. public function setId($id) {
  1262. $this->id = $id;
  1263. }
  1264. public function getId() {
  1265. return $this->id;
  1266. }
  1267. }
  1268. class ActivityFeedLinksItems extends apiModel {
  1269. public $count;
  1270. public $updated;
  1271. public $title;
  1272. public $height;
  1273. public $width;
  1274. public $href;
  1275. public $type;
  1276. public function setCount($count) {
  1277. $this->count = $count;
  1278. }
  1279. public function getCount() {
  1280. return $this->count;
  1281. }
  1282. public function setUpdated($updated) {
  1283. $this->updated = $updated;
  1284. }
  1285. public function getUpdated() {
  1286. return $this->updated;
  1287. }
  1288. public function setTitle($title) {
  1289. $this->title = $title;
  1290. }
  1291. public function getTitle() {
  1292. return $this->title;
  1293. }
  1294. public function setHeight($height) {
  1295. $this->height = $height;
  1296. }
  1297. public function getHeight() {
  1298. return $this->height;
  1299. }
  1300. public function setWidth($width) {
  1301. $this->width = $width;
  1302. }
  1303. public function getWidth() {
  1304. return $this->width;
  1305. }
  1306. public function setHref($href) {
  1307. $this->href = $href;
  1308. }
  1309. public function getHref() {
  1310. return $this->href;
  1311. }
  1312. public function setType($type) {
  1313. $this->type = $type;
  1314. }
  1315. public function getType() {
  1316. return $this->type;
  1317. }
  1318. }
  1319. class ActivityLinks extends apiModel {
  1320. protected $__likedType = 'ActivityLinksLiked';
  1321. public $liked;
  1322. public function setLiked(/* array(ActivityLinksLiked) */ $liked) {
  1323. $this->liked = $liked;
  1324. }
  1325. public function getLiked() {
  1326. return $this->liked;
  1327. }
  1328. }
  1329. class ActivityLinksLiked extends apiModel {
  1330. public $count;
  1331. public $href;
  1332. public $type;
  1333. public function setCount($count) {
  1334. $this->count = $count;
  1335. }
  1336. public function getCount() {
  1337. return $this->count;
  1338. }
  1339. public function setHref($href) {
  1340. $this->href = $href;
  1341. }
  1342. public function getHref() {
  1343. return $this->href;
  1344. }
  1345. public function setType($type) {
  1346. $this->type = $type;
  1347. }
  1348. public function getType() {
  1349. return $this->type;
  1350. }
  1351. }
  1352. class ActivityObject extends apiModel {
  1353. public $targetLang;
  1354. protected $__likedType = 'Person';
  1355. public $liked;
  1356. protected $__attachmentsType = 'ActivityObjectAttachments';
  1357. public $attachments;
  1358. protected $__linksType = 'ActivityObjectLinksItems';
  1359. public $links;
  1360. public $originalContent;
  1361. protected $__actorType = 'ActivityObjectActor';
  1362. public $actor;
  1363. protected $__shareOriginalType = 'Activity';
  1364. public $shareOriginal;
  1365. public $content;
  1366. public $detectedlLang;
  1367. protected $__commentsType = 'Comment';
  1368. public $comments;
  1369. public $type;
  1370. public $id;
  1371. public $untranslatedContent;
  1372. public function setTargetLang($targetLang) {
  1373. $this->targetLang = $targetLang;
  1374. }
  1375. public function getTargetLang() {
  1376. return $this->targetLang;
  1377. }
  1378. public function setLiked(/* array(Person) */ $liked) {
  1379. $this->liked = $liked;
  1380. }
  1381. public function getLiked() {
  1382. return $this->liked;
  1383. }
  1384. public function setAttachments(/* array(ActivityObjectAttachments) */ $attachments) {
  1385. $this->attachments = $attachments;
  1386. }
  1387. public function getAttachments() {
  1388. return $this->attachments;
  1389. }
  1390. public function setLinks(ActivityObjectLinksItems $links) {
  1391. $this->links = $links;
  1392. }
  1393. public function getLinks() {
  1394. return $this->links;
  1395. }
  1396. public function setOriginalContent($originalContent) {
  1397. $this->originalContent = $originalContent;
  1398. }
  1399. public function getOriginalContent() {
  1400. return $this->originalContent;
  1401. }
  1402. public function setActor(ActivityObjectActor $actor) {
  1403. $this->actor = $actor;
  1404. }
  1405. public function getActor() {
  1406. return $this->actor;
  1407. }
  1408. public function setShareOriginal(Activity $shareOriginal) {
  1409. $this->shareOriginal = $shareOriginal;
  1410. }
  1411. public function getShareOriginal() {
  1412. return $this->shareOriginal;
  1413. }
  1414. public function setContent($content) {
  1415. $this->content = $content;
  1416. }
  1417. public function getContent() {
  1418. return $this->content;
  1419. }
  1420. public function setDetectedlLang($detectedlLang) {
  1421. $this->detectedlLang = $detectedlLang;
  1422. }
  1423. public function getDetectedlLang() {
  1424. return $this->detectedlLang;
  1425. }
  1426. public function setComments(/* array(Comment) */ $comments) {
  1427. $this->comments = $comments;
  1428. }
  1429. public function getComments() {
  1430. return $this->comments;
  1431. }
  1432. public function setType($type) {
  1433. $this->type = $type;
  1434. }
  1435. public function getType() {
  1436. return $this->type;
  1437. }
  1438. public function setId($id) {
  1439. $this->id = $id;
  1440. }
  1441. public function getId() {
  1442. return $this->id;
  1443. }
  1444. public function setUntranslatedContent($untranslatedContent) {
  1445. $this->untranslatedContent = $untranslatedContent;
  1446. }
  1447. public function getUntranslatedContent() {
  1448. return $this->untranslatedContent;
  1449. }
  1450. }
  1451. class ActivityObjectActor extends apiModel {
  1452. public $profileUrl;
  1453. public $thumbnailUrl;
  1454. public $id;
  1455. public $name;
  1456. public function setProfileUrl($profileUrl) {
  1457. $this->profileUrl = $profileUrl;
  1458. }
  1459. public function getProfileUrl() {
  1460. return $this->profileUrl;
  1461. }
  1462. public function setThumbnailUrl($thumbnailUrl) {
  1463. $this->thumbnailUrl = $thumbnailUrl;
  1464. }
  1465. public function getThumbnailUrl() {
  1466. return $this->thumbnailUrl;
  1467. }
  1468. public function setId($id) {
  1469. $this->id = $id;
  1470. }
  1471. public function getId() {
  1472. return $this->id;
  1473. }
  1474. public function setName($name) {
  1475. $this->name = $name;
  1476. }
  1477. public function getName() {
  1478. return $this->name;
  1479. }
  1480. }
  1481. class ActivityObjectAttachments extends apiModel {
  1482. public $content;
  1483. public $type;
  1484. public $id;
  1485. protected $__linksType = 'ActivityObjectAttachmentsLinksItems';
  1486. public $links;
  1487. public $title;
  1488. public function setContent($content) {
  1489. $this->content = $content;
  1490. }
  1491. public function getContent() {
  1492. return $this->content;
  1493. }
  1494. public function setType($type) {
  1495. $this->type = $type;
  1496. }
  1497. public function getType() {
  1498. return $this->type;
  1499. }
  1500. public function setId($id) {
  1501. $this->id = $id;
  1502. }
  1503. public function getId() {
  1504. return $this->id;
  1505. }
  1506. public function setLinks(ActivityObjectAttachmentsLinksItems $links) {
  1507. $this->links = $links;
  1508. }
  1509. public function getLinks() {
  1510. return $this->links;
  1511. }
  1512. public function setTitle($title) {
  1513. $this->title = $title;
  1514. }
  1515. public function getTitle() {
  1516. return $this->title;
  1517. }
  1518. }
  1519. class ActivityObjectAttachmentsLinksItems extends apiModel {
  1520. public $count;
  1521. public $updated;
  1522. public $title;
  1523. public $height;
  1524. public $width;
  1525. public $href;
  1526. public $type;
  1527. public function setCount($count) {
  1528. $this->count = $count;
  1529. }
  1530. public function getCount() {
  1531. return $this->count;
  1532. }
  1533. public function setUpdated($updated) {
  1534. $this->updated = $updated;
  1535. }
  1536. public function getUpdated() {
  1537. return $this->updated;
  1538. }
  1539. public function setTitle($title) {
  1540. $this->title = $title;
  1541. }
  1542. public function getTitle() {
  1543. return $this->title;
  1544. }
  1545. public function setHeight($height) {
  1546. $this->height = $height;
  1547. }
  1548. public function getHeight() {
  1549. return $this->height;
  1550. }
  1551. public function setWidth($width) {
  1552. $this->width = $width;
  1553. }
  1554. public function getWidth() {
  1555. return $this->width;
  1556. }
  1557. public function setHref($href) {
  1558. $this->href = $href;
  1559. }
  1560. public function getHref() {
  1561. return $this->href;
  1562. }
  1563. public function setType($type) {
  1564. $this->type = $type;
  1565. }
  1566. public function getType() {
  1567. return $this->type;
  1568. }
  1569. }
  1570. class ActivityObjectLinksItems extends apiModel {
  1571. public $href;
  1572. public $type;
  1573. public function setHref($href) {
  1574. $this->href = $href;
  1575. }
  1576. public function getHref() {
  1577. return $this->href;
  1578. }
  1579. public function setType($type) {
  1580. $this->type = $type;
  1581. }
  1582. public function getType() {
  1583. return $this->type;
  1584. }
  1585. }
  1586. class ActivitySource extends apiModel {
  1587. public $title;
  1588. public function setTitle($title) {
  1589. $this->title = $title;
  1590. }
  1591. public function getTitle() {
  1592. return $this->title;
  1593. }
  1594. }
  1595. class ActivityVisibility extends apiModel {
  1596. protected $__entriesType = 'ActivityVisibilityEntries';
  1597. public $entries;
  1598. public function setEntries(/* array(ActivityVisibilityEntries) */ $entries) {
  1599. $this->entries = $entries;
  1600. }
  1601. public function getEntries() {
  1602. return $this->entries;
  1603. }
  1604. }
  1605. class ActivityVisibilityEntries extends apiModel {
  1606. public $id;
  1607. public $title;
  1608. public function setId($id) {
  1609. $this->id = $id;
  1610. }
  1611. public function getId() {
  1612. return $this->id;
  1613. }
  1614. public function setTitle($title) {
  1615. $this->title = $title;
  1616. }
  1617. public function getTitle() {
  1618. return $this->title;
  1619. }
  1620. }
  1621. class Album extends apiModel {
  1622. public $kind;
  1623. public $description;
  1624. protected $__linksType = 'AlbumLinks';
  1625. public $links;
  1626. public $created;
  1627. public $lastModified;
  1628. public $tags;
  1629. public $version;
  1630. public $firstPhotoId;
  1631. protected $__ownerType = 'AlbumOwner';
  1632. public $owner;
  1633. public $title;
  1634. public $id;
  1635. public function setKind($kind) {
  1636. $this->kind = $kind;
  1637. }
  1638. public function getKind() {
  1639. return $this->kind;
  1640. }
  1641. public function setDescription($description) {
  1642. $this->description = $description;
  1643. }
  1644. public function getDescription() {
  1645. return $this->description;
  1646. }
  1647. public function setLinks(AlbumLinks $links) {
  1648. $this->links = $links;
  1649. }
  1650. public function getLinks() {
  1651. return $this->links;
  1652. }
  1653. public function setCreated($created) {
  1654. $this->created = $created;
  1655. }
  1656. public function getCreated() {
  1657. return $this->created;
  1658. }
  1659. public function setLastModified($lastModified) {
  1660. $this->lastModified = $lastModified;
  1661. }
  1662. public function getLastModified() {
  1663. return $this->lastModified;
  1664. }
  1665. public function setTags(/* array(string) */ $tags) {
  1666. $this->tags = $tags;
  1667. }
  1668. public function getTags() {
  1669. return $this->tags;
  1670. }
  1671. public function setVersion($version) {
  1672. $this->version = $version;
  1673. }
  1674. public function getVersion() {
  1675. return $this->version;
  1676. }
  1677. public function setFirstPhotoId($firstPhotoId) {
  1678. $this->firstPhotoId = $firstPhotoId;
  1679. }
  1680. public function getFirstPhotoId() {
  1681. return $this->firstPhotoId;
  1682. }
  1683. public function setOwner(AlbumOwner $owner) {
  1684. $this->owner = $owner;
  1685. }
  1686. public function getOwner() {
  1687. return $this->owner;
  1688. }
  1689. public function setTitle($title) {
  1690. $this->title = $title;
  1691. }
  1692. public function getTitle() {
  1693. return $this->title;
  1694. }
  1695. public function setId($id) {
  1696. $this->id = $id;
  1697. }
  1698. public function getId() {
  1699. return $this->id;
  1700. }
  1701. }
  1702. class AlbumLinks extends apiModel {
  1703. protected $__alternateType = 'Link';
  1704. public $alternate;
  1705. protected $__enclosureType = 'Link';
  1706. public $enclosure;
  1707. public function setAlternate(Link $alternate) {
  1708. $this->alternate = $alternate;
  1709. }
  1710. public function getAlternate() {
  1711. return $this->alternate;
  1712. }
  1713. public function setEnclosure(Link $enclosure) {
  1714. $this->enclosure = $enclosure;
  1715. }
  1716. public function getEnclosure() {
  1717. return $this->enclosure;
  1718. }
  1719. }
  1720. class AlbumLite extends apiModel {
  1721. public $kind;
  1722. protected $__collectionType = 'AlbumLiteCollection';
  1723. public $collection;
  1724. public function setKind($kind) {
  1725. $this->kind = $kind;
  1726. }
  1727. public function getKind() {
  1728. return $this->kind;
  1729. }
  1730. public function setCollection(AlbumLiteCollection $collection) {
  1731. $this->collection = $collection;
  1732. }
  1733. public function getCollection() {
  1734. return $this->collection;
  1735. }
  1736. }
  1737. class AlbumLiteCollection extends apiModel {
  1738. public $album;
  1739. public $albumId;
  1740. protected $__photoType = 'AlbumLiteCollectionPhoto';
  1741. public $photo;
  1742. public function setAlbum($album) {
  1743. $this->album = $album;
  1744. }
  1745. public function getAlbum() {
  1746. return $this->album;
  1747. }
  1748. public function setAlbumId($albumId) {
  1749. $this->albumId = $albumId;
  1750. }
  1751. public function getAlbumId() {
  1752. return $this->albumId;
  1753. }
  1754. public function setPhoto(AlbumLiteCollectionPhoto $photo) {
  1755. $this->photo = $photo;
  1756. }
  1757. public function getPhoto() {
  1758. return $this->photo;
  1759. }
  1760. }
  1761. class AlbumLiteCollectionPhoto extends apiModel {
  1762. public $photoUrl;
  1763. public function setPhotoUrl($photoUrl) {
  1764. $this->photoUrl = $photoUrl;
  1765. }
  1766. public function getPhotoUrl() {
  1767. return $this->photoUrl;
  1768. }
  1769. }
  1770. class AlbumOwner extends apiModel {
  1771. public $profileUrl;
  1772. public $thumbnailUrl;
  1773. public $id;
  1774. public $name;
  1775. public function setProfileUrl($profileUrl) {
  1776. $this->profileUrl = $profileUrl;
  1777. }
  1778. public function getProfileUrl() {
  1779. return $this->profileUrl;
  1780. }
  1781. public function setThumbnailUrl($thumbnailUrl) {
  1782. $this->thumbnailUrl = $thumbnailUrl;
  1783. }
  1784. public function getThumbnailUrl() {
  1785. return $this->thumbnailUrl;
  1786. }
  1787. public function setId($id) {
  1788. $this->id = $id;
  1789. }
  1790. public function getId() {
  1791. return $this->id;
  1792. }
  1793. public function setName($name) {
  1794. $this->name = $name;
  1795. }
  1796. public function getName() {
  1797. return $this->name;
  1798. }
  1799. }
  1800. class AlbumsFeed extends apiModel {
  1801. protected $__itemsType = 'Album';
  1802. public $items;
  1803. public $kind;
  1804. public function setItems(/* array(Album) */ $items) {
  1805. $this->items = $items;
  1806. }
  1807. public function getItems() {
  1808. return $this->items;
  1809. }
  1810. public function setKind($kind) {
  1811. $this->kind = $kind;
  1812. }
  1813. public function getKind() {
  1814. return $this->kind;
  1815. }
  1816. }
  1817. class ChiliPhotosResourceJson extends apiModel {
  1818. protected $__albumType = 'ChiliPhotosResourceJsonAlbum';
  1819. public $album;
  1820. public $kind;
  1821. public $description;
  1822. protected $__linksType = 'ChiliPhotosResourceJsonLinks';
  1823. public $links;
  1824. public $created;
  1825. public $lastModified;
  1826. public $title;
  1827. public $version;
  1828. protected $__videoType = 'Video';
  1829. public $video;
  1830. public $fileSize;
  1831. public $timestamp;
  1832. protected $__ownerType = 'ChiliPhotosResourceJsonOwner';
  1833. public $owner;
  1834. public $id;
  1835. public function setAlbum(ChiliPhotosResourceJsonAlbum $album) {
  1836. $this->album = $album;
  1837. }
  1838. public function getAlbum() {
  1839. return $this->album;
  1840. }
  1841. public function setKind($kind) {
  1842. $this->kind = $kind;
  1843. }
  1844. public function getKind() {
  1845. return $this->kind;
  1846. }
  1847. public function setDescription($description) {
  1848. $this->description = $description;
  1849. }
  1850. public function getDescription() {
  1851. return $this->description;
  1852. }
  1853. public function setLinks(ChiliPhotosResourceJsonLinks $links) {
  1854. $this->links = $links;
  1855. }
  1856. public function getLinks() {
  1857. return $this->links;
  1858. }
  1859. public function setCreated($created) {
  1860. $this->created = $created;
  1861. }
  1862. public function getCreated() {
  1863. return $this->created;
  1864. }
  1865. public function setLastModified($lastModified) {
  1866. $this->lastModified = $lastModified;
  1867. }
  1868. public function getLastModified() {
  1869. return $this->lastModified;
  1870. }
  1871. public function setTitle($title) {
  1872. $this->title = $title;
  1873. }
  1874. public function getTitle() {
  1875. return $this->title;
  1876. }
  1877. public function setVersion($version) {
  1878. $this->version = $version;
  1879. }
  1880. public function getVersion() {
  1881. return $this->version;
  1882. }
  1883. public function setVideo(Video $video) {
  1884. $this->video = $video;
  1885. }
  1886. public function getVideo() {
  1887. return $this->video;
  1888. }
  1889. public function setFileSize($fileSize) {
  1890. $this->fileSize = $fileSize;
  1891. }
  1892. public function getFileSize() {
  1893. return $this->fileSize;
  1894. }
  1895. public function setTimestamp($timestamp) {
  1896. $this->timestamp = $timestamp;
  1897. }
  1898. public function getTimestamp() {
  1899. return $this->timestamp;
  1900. }
  1901. public function setOwner(ChiliPhotosResourceJsonOwner $owner) {
  1902. $this->owner = $owner;
  1903. }
  1904. public function getOwner() {
  1905. return $this->owner;
  1906. }
  1907. public function setId($id) {
  1908. $this->id = $id;
  1909. }
  1910. public function getId() {
  1911. return $this->id;
  1912. }
  1913. }
  1914. class ChiliPhotosResourceJsonAlbum extends apiModel {
  1915. public $id;
  1916. protected $__page_linkType = 'Link';
  1917. public $page_link;
  1918. public function setId($id) {
  1919. $this->id = $id;
  1920. }
  1921. public function getId() {
  1922. return $this->id;
  1923. }
  1924. public function setPage_link(Link $page_link) {
  1925. $this->page_link = $page_link;
  1926. }
  1927. public function getPage_link() {
  1928. return $this->page_link;
  1929. }
  1930. }
  1931. class ChiliPhotosResourceJsonLinks extends apiModel {
  1932. protected $__alternateType = 'Link';
  1933. public $alternate;
  1934. public function setAlternate(/* array(Link) */ $alternate) {
  1935. $this->alternate = $alternate;
  1936. }
  1937. public function getAlternate() {
  1938. return $this->alternate;
  1939. }
  1940. }
  1941. class ChiliPhotosResourceJsonOwner extends apiModel {
  1942. public $profileUrl;
  1943. public $thumbnailUrl;
  1944. public $id;
  1945. public $name;
  1946. public function setProfileUrl($profileUrl) {
  1947. $this->profileUrl = $profileUrl;
  1948. }
  1949. public function getProfileUrl() {
  1950. return $this->profileUrl;
  1951. }
  1952. public function setThumbnailUrl($thumbnailUrl) {
  1953. $this->thumbnailUrl = $thumbnailUrl;
  1954. }
  1955. public function getThumbnailUrl() {
  1956. return $this->thumbnailUrl;
  1957. }
  1958. public function setId($id) {
  1959. $this->id = $id;
  1960. }
  1961. public function getId() {
  1962. return $this->id;
  1963. }
  1964. public function setName($name) {
  1965. $this->name = $name;
  1966. }
  1967. public function getName() {
  1968. return $this->name;
  1969. }
  1970. }
  1971. class Comment extends apiModel {
  1972. public $targetLang;
  1973. public $kind;
  1974. public $untranslatedContent;
  1975. protected $__linksType = 'CommentLinks';
  1976. public $links;
  1977. public $originalContent;
  1978. public $updated;
  1979. protected $__actorType = 'CommentActor';
  1980. public $actor;
  1981. public $content;
  1982. public $published;
  1983. public $detectedLang;
  1984. public $placeholder;
  1985. public $id;
  1986. public function setTargetLang($targetLang) {
  1987. $this->targetLang = $targetLang;
  1988. }
  1989. public function getTargetLang() {
  1990. return $this->targetLang;
  1991. }
  1992. public function setKind($kind) {
  1993. $this->kind = $kind;
  1994. }
  1995. public function getKind() {
  1996. return $this->kind;
  1997. }
  1998. public function setUntranslatedContent($untranslatedContent) {
  1999. $this->untranslatedContent = $untranslatedContent;
  2000. }
  2001. public function getUntranslatedContent() {
  2002. return $this->untranslatedContent;
  2003. }
  2004. public function setLinks(CommentLinks $links) {
  2005. $this->links = $links;
  2006. }
  2007. public function getLinks() {
  2008. return $this->links;
  2009. }
  2010. public function setOriginalContent($originalContent) {
  2011. $this->originalContent = $originalContent;
  2012. }
  2013. public function getOriginalContent() {
  2014. return $this->originalContent;
  2015. }
  2016. public function setUpdated($updated) {
  2017. $this->updated = $updated;
  2018. }
  2019. public function getUpdated() {
  2020. return $this->updated;
  2021. }
  2022. public function setActor(CommentActor $actor) {
  2023. $this->actor = $actor;
  2024. }
  2025. public function getActor() {
  2026. return $this->actor;
  2027. }
  2028. public function setContent($content) {
  2029. $this->content = $content;
  2030. }
  2031. public function getContent() {
  2032. return $this->content;
  2033. }
  2034. public function setPublished($published) {
  2035. $this->published = $published;
  2036. }
  2037. public function getPublished() {
  2038. return $this->published;
  2039. }
  2040. public function setDetectedLang($detectedLang) {
  2041. $this->detectedLang = $detectedLang;
  2042. }
  2043. public function getDetectedLang() {
  2044. return $this->detectedLang;
  2045. }
  2046. public function setPlaceholder($placeholder) {
  2047. $this->placeholder = $placeholder;
  2048. }
  2049. public function getPlaceholder() {
  2050. return $this->placeholder;
  2051. }
  2052. public function setId($id) {
  2053. $this->id = $id;
  2054. }
  2055. public function getId() {
  2056. return $this->id;
  2057. }
  2058. }
  2059. class CommentActor extends apiModel {
  2060. public $profileUrl;
  2061. public $thumbnailUrl;
  2062. public $id;
  2063. public $name;
  2064. public function setProfileUrl($profileUrl) {
  2065. $this->profileUrl = $profileUrl;
  2066. }
  2067. public function getProfileUrl() {
  2068. return $this->profileUrl;
  2069. }
  2070. public function setThumbnailUrl($thumbnailUrl) {
  2071. $this->thumbnailUrl = $thumbnailUrl;
  2072. }
  2073. public function getThumbnailUrl() {
  2074. return $this->thumbnailUrl;
  2075. }
  2076. public function setId($id) {
  2077. $this->id = $id;
  2078. }
  2079. public function getId() {
  2080. return $this->id;
  2081. }
  2082. public function setName($name) {
  2083. $this->name = $name;
  2084. }
  2085. public function getName() {
  2086. return $this->name;
  2087. }
  2088. }
  2089. class CommentFeed extends apiModel {
  2090. public $kind;
  2091. protected $__linksType = 'CommentFeedLinksItems';
  2092. public $links;
  2093. public $title;
  2094. protected $__itemsType = 'Comment';
  2095. public $items;
  2096. public $updated;
  2097. public $id;
  2098. public function setKind($kind) {
  2099. $this->kind = $kind;
  2100. }
  2101. public function getKind() {
  2102. return $this->kind;
  2103. }
  2104. public function setLinks(CommentFeedLinksItems $links) {
  2105. $this->links = $links;
  2106. }
  2107. public function getLinks() {
  2108. return $this->links;
  2109. }
  2110. public function setTitle($title) {
  2111. $this->title = $title;
  2112. }
  2113. public function getTitle() {
  2114. return $this->title;
  2115. }
  2116. public function setItems(/* array(Comment) */ $items) {
  2117. $this->items = $items;
  2118. }
  2119. public function getItems() {
  2120. return $this->items;
  2121. }
  2122. public function setUpdated($updated) {
  2123. $this->updated = $updated;
  2124. }
  2125. public function getUpdated() {
  2126. return $this->updated;
  2127. }
  2128. public function setId($id) {
  2129. $this->id = $id;
  2130. }
  2131. public function getId() {
  2132. return $this->id;
  2133. }
  2134. }
  2135. class CommentFeedLinksItems extends apiModel {
  2136. public $count;
  2137. public $updated;
  2138. public $title;
  2139. public $height;
  2140. public $width;
  2141. public $href;
  2142. public $type;
  2143. public function setCount($count) {
  2144. $this->count = $count;
  2145. }
  2146. public function getCount() {
  2147. return $this->count;
  2148. }
  2149. public function setUpdated($updated) {
  2150. $this->updated = $updated;
  2151. }
  2152. public function getUpdated() {
  2153. return $this->updated;
  2154. }
  2155. public function setTitle($title) {
  2156. $this->title = $title;
  2157. }
  2158. public function getTitle() {
  2159. return $this->title;
  2160. }
  2161. public function setHeight($height) {
  2162. $this->height = $height;
  2163. }
  2164. public function getHeight() {
  2165. return $this->height;
  2166. }
  2167. public function setWidth($width) {
  2168. $this->width = $width;
  2169. }
  2170. public function getWidth() {
  2171. return $this->width;
  2172. }
  2173. public function setHref($href) {
  2174. $this->href = $href;
  2175. }
  2176. public function getHref() {
  2177. return $this->href;
  2178. }
  2179. public function setType($type) {
  2180. $this->type = $type;
  2181. }
  2182. public function getType() {
  2183. return $this->type;
  2184. }
  2185. }
  2186. class CommentLinks extends apiModel {
  2187. protected $__inReplyToType = 'CommentLinksInReplyTo';
  2188. public $inReplyTo;
  2189. public function setInReplyTo(/* array(CommentLinksInReplyTo) */ $inReplyTo) {
  2190. $this->inReplyTo = $inReplyTo;
  2191. }
  2192. public function getInReplyTo() {
  2193. return $this->inReplyTo;
  2194. }
  2195. }
  2196. class CommentLinksInReplyTo extends apiModel {
  2197. public $source;
  2198. public $href;
  2199. public $ref;
  2200. public function setSource($source) {
  2201. $this->source = $source;
  2202. }
  2203. public function getSource() {
  2204. return $this->source;
  2205. }
  2206. public function setHref($href) {
  2207. $this->href = $href;
  2208. }
  2209. public function getHref() {
  2210. return $this->href;
  2211. }
  2212. public function setRef($ref) {
  2213. $this->ref = $ref;
  2214. }
  2215. public function getRef() {
  2216. return $this->ref;
  2217. }
  2218. }
  2219. class CountFeed extends apiModel {
  2220. protected $__countsType = 'CountFeedCountsItems';
  2221. public $counts;
  2222. public $kind;
  2223. public function setCounts(CountFeedCountsItems $counts) {
  2224. $this->counts = $counts;
  2225. }
  2226. public function getCounts() {
  2227. return $this->counts;
  2228. }
  2229. public function setKind($kind) {
  2230. $this->kind = $kind;
  2231. }
  2232. public function getKind() {
  2233. return $this->kind;
  2234. }
  2235. }
  2236. class CountFeedCountsItems extends apiModel {
  2237. public $count;
  2238. public $timestamp;
  2239. public function setCount($count) {
  2240. $this->count = $count;
  2241. }
  2242. public function getCount() {
  2243. return $this->count;
  2244. }
  2245. public function setTimestamp($timestamp) {
  2246. $this->timestamp = $timestamp;
  2247. }
  2248. public function getTimestamp() {
  2249. return $this->timestamp;
  2250. }
  2251. }
  2252. class Group extends apiModel {
  2253. public $memberCount;
  2254. public $kind;
  2255. public $id;
  2256. protected $__linksType = 'GroupLinks';
  2257. public $links;
  2258. public $title;
  2259. public function setMemberCount($memberCount) {
  2260. $this->memberCount = $memberCount;
  2261. }
  2262. public function getMemberCount() {
  2263. return $this->memberCount;
  2264. }
  2265. public function setKind($kind) {
  2266. $this->kind = $kind;
  2267. }
  2268. public function getKind() {
  2269. return $this->kind;
  2270. }
  2271. public function setId($id) {
  2272. $this->id = $id;
  2273. }
  2274. public function getId() {
  2275. return $this->id;
  2276. }
  2277. public function setLinks(GroupLinks $links) {
  2278. $this->links = $links;
  2279. }
  2280. public function getLinks() {
  2281. return $this->links;
  2282. }
  2283. public function setTitle($title) {
  2284. $this->title = $title;
  2285. }
  2286. public function getTitle() {
  2287. return $this->title;
  2288. }
  2289. }
  2290. class GroupFeed extends apiModel {
  2291. protected $__itemsType = 'Group';
  2292. public $items;
  2293. public $kind;
  2294. protected $__linksType = 'GroupFeedLinksItems';
  2295. public $links;
  2296. public function setItems(/* array(Group) */ $items) {
  2297. $this->items = $items;
  2298. }
  2299. public function getItems() {
  2300. return $this->items;
  2301. }
  2302. public function setKind($kind) {
  2303. $this->kind = $kind;
  2304. }
  2305. public function getKind() {
  2306. return $this->kind;
  2307. }
  2308. public function setLinks(GroupFeedLinksItems $links) {
  2309. $this->links = $links;
  2310. }
  2311. public function getLinks() {
  2312. return $this->links;
  2313. }
  2314. }
  2315. class GroupFeedLinksItems extends apiModel {
  2316. public $count;
  2317. public $updated;
  2318. public $title;
  2319. public $height;
  2320. public $width;
  2321. public $href;
  2322. public $type;
  2323. public function setCount($count) {
  2324. $this->count = $count;
  2325. }
  2326. public function getCount() {
  2327. return $this->count;
  2328. }
  2329. public function setUpdated($updated) {
  2330. $this->updated = $updated;
  2331. }
  2332. public function getUpdated() {
  2333. return $this->updated;
  2334. }
  2335. public function setTitle($title) {
  2336. $this->title = $title;
  2337. }
  2338. public function getTitle() {
  2339. return $this->title;
  2340. }
  2341. public function setHeight($height) {
  2342. $this->height = $height;
  2343. }
  2344. public function getHeight() {
  2345. return $this->height;
  2346. }
  2347. public function setWidth($width) {
  2348. $this->width = $width;
  2349. }
  2350. public function getWidth() {
  2351. return $this->width;
  2352. }
  2353. public function setHref($href) {
  2354. $this->href = $href;
  2355. }
  2356. public function getHref() {
  2357. return $this->href;
  2358. }
  2359. public function setType($type) {
  2360. $this->type = $type;
  2361. }
  2362. public function getType() {
  2363. return $this->type;
  2364. }
  2365. }
  2366. class GroupLinks extends apiModel {
  2367. protected $__selfType = 'GroupLinksSelf';
  2368. public $self;
  2369. public function setSelf(/* array(GroupLinksSelf) */ $self) {
  2370. $this->self = $self;
  2371. }
  2372. public function getSelf() {
  2373. return $this->self;
  2374. }
  2375. }
  2376. class GroupLinksSelf extends apiModel {
  2377. public $href;
  2378. public $type;
  2379. public function setHref($href) {
  2380. $this->href = $href;
  2381. }
  2382. public function getHref() {
  2383. return $this->href;
  2384. }
  2385. public function setType($type) {
  2386. $this->type = $type;
  2387. }
  2388. public function getType() {
  2389. return $this->type;
  2390. }
  2391. }
  2392. class Link extends apiModel {
  2393. public $count;
  2394. public $updated;
  2395. public $title;
  2396. public $height;
  2397. public $width;
  2398. public $href;
  2399. public $type;
  2400. public function setCount($count) {
  2401. $this->count = $count;
  2402. }
  2403. public function getCount() {
  2404. return $this->count;
  2405. }
  2406. public function setUpdated($updated) {
  2407. $this->updated = $updated;
  2408. }
  2409. public function getUpdated() {
  2410. return $this->updated;
  2411. }
  2412. public function setTitle($title) {
  2413. $this->title = $title;
  2414. }
  2415. public function getTitle() {
  2416. return $this->title;
  2417. }
  2418. public function setHeight($height) {
  2419. $this->height = $height;
  2420. }
  2421. public function getHeight() {
  2422. return $this->height;
  2423. }
  2424. public function setWidth($width) {
  2425. $this->width = $width;
  2426. }
  2427. public function getWidth() {
  2428. return $this->width;
  2429. }
  2430. public function setHref($href) {
  2431. $this->href = $href;
  2432. }
  2433. public function getHref() {
  2434. return $this->href;
  2435. }
  2436. public function setType($type) {
  2437. $this->type = $type;
  2438. }
  2439. public function getType() {
  2440. return $this->type;
  2441. }
  2442. }
  2443. class PeopleFeed extends apiModel {
  2444. public $totalResults;
  2445. protected $__entryType = 'Person';
  2446. public $entry;
  2447. public $kind;
  2448. public $itemsPerPage;
  2449. public $startIndex;
  2450. public function setTotalResults($totalResults) {
  2451. $this->totalResults = $totalResults;
  2452. }
  2453. public function getTotalResults() {
  2454. return $this->totalResults;
  2455. }
  2456. public function setEntry(/* array(Person) */ $entry) {
  2457. $this->entry = $entry;
  2458. }
  2459. public function getEntry() {
  2460. return $this->entry;
  2461. }
  2462. public function setKind($kind) {
  2463. $this->kind = $kind;
  2464. }
  2465. public function getKind() {
  2466. return $this->kind;
  2467. }
  2468. public function setItemsPerPage($itemsPerPage) {
  2469. $this->itemsPerPage = $itemsPerPage;
  2470. }
  2471. public function getItemsPerPage() {
  2472. return $this->itemsPerPage;
  2473. }
  2474. public function setStartIndex($startIndex) {
  2475. $this->startIndex = $startIndex;
  2476. }
  2477. public function getStartIndex() {
  2478. return $this->startIndex;
  2479. }
  2480. }
  2481. class Person extends apiModel {
  2482. public $status;
  2483. protected $__phoneNumbersType = 'PersonPhoneNumbers';
  2484. public $phoneNumbers;
  2485. public $fashion;
  2486. protected $__addressesType = 'PersonAddresses';
  2487. public $addresses;
  2488. public $romance;
  2489. public $turnOffs;
  2490. public $preferredUsername;
  2491. public $quotes;
  2492. public $books;
  2493. protected $__accountsType = 'PersonAccounts';
  2494. public $accounts;
  2495. public $turnOns;
  2496. public $hasApp;
  2497. public $drinker;
  2498. public $sports;
  2499. public $languagesSpoken;
  2500. public $children;
  2501. public $ethnicity;
  2502. public $relationships;
  2503. public $note;
  2504. public $thumbnailUrl;
  2505. public $humor;
  2506. public $id;
  2507. public $tags;
  2508. public $anniversary;
  2509. public $happiestWhen;
  2510. public $currentLocation;
  2511. public $languages;
  2512. public $religion;
  2513. protected $__imsType = 'PersonIms';
  2514. public $ims;
  2515. public $music;
  2516. public $pets;
  2517. public $interests;
  2518. public $activities;
  2519. public $updated;
  2520. public $bodyType;
  2521. public $relationshipStatus;
  2522. public $sexualOrientation;
  2523. public $food;
  2524. public $cars;
  2525. public $aboutMe;
  2526. public $kind;
  2527. protected $__photosType = 'PersonPhotos';
  2528. public $photos;
  2529. public $birthday;
  2530. public $connected;
  2531. public $profileVideo;
  2532. public $heroes;
  2533. public $nickname;
  2534. protected $__emailsType = 'PersonEmails';
  2535. public $emails;
  2536. protected $__organizationsType = 'PersonOrganizations';
  2537. public $organizations;
  2538. public $jobInterests;
  2539. public $displayName;
  2540. protected $__nameType = 'PersonName';
  2541. public $name;
  2542. public $politicalViews;
  2543. public $tvShows;
  2544. public $gender;
  2545. public $profileSong;
  2546. public $smoker;
  2547. public $scaredOf;
  2548. public $profileUrl;
  2549. public $movies;
  2550. public $utcOffset;
  2551. protected $__urlsType = 'PersonUrls';
  2552. public $urls;
  2553. public $published;
  2554. public $livingArrangement;
  2555. public $lookingFor;
  2556. public function setStatus($status) {
  2557. $this->status = $status;
  2558. }
  2559. public function getStatus() {
  2560. return $this->status;
  2561. }
  2562. public function setPhoneNumbers(/* array(PersonPhoneNumbers) */ $phoneNumbers) {
  2563. $this->phoneNumbers = $phoneNumbers;
  2564. }
  2565. public function getPhoneNumbers() {
  2566. return $this->phoneNumbers;
  2567. }
  2568. public function setFashion($fashion) {
  2569. $this->fashion = $fashion;
  2570. }
  2571. public function getFashion() {
  2572. return $this->fashion;
  2573. }
  2574. public function setAddresses(/* array(PersonAddresses) */ $addresses) {
  2575. $this->addresses = $addresses;
  2576. }
  2577. public function getAddresses() {
  2578. return $this->addresses;
  2579. }
  2580. public function setRomance($romance) {
  2581. $this->romance = $romance;
  2582. }
  2583. public function getRomance() {
  2584. return $this->romance;
  2585. }
  2586. public function setTurnOffs(/* array(object) */ $turnOffs) {
  2587. $this->turnOffs = $turnOffs;
  2588. }
  2589. public function getTurnOffs() {
  2590. return $this->turnOffs;
  2591. }
  2592. public function setPreferredUsername($preferredUsername) {
  2593. $this->preferredUsername = $preferredUsername;
  2594. }
  2595. public function getPreferredUsername() {
  2596. return $this->preferredUsername;
  2597. }
  2598. public function setQuotes(/* array(object) */ $quotes) {
  2599. $this->quotes = $quotes;
  2600. }
  2601. public function getQuotes() {
  2602. return $this->quotes;
  2603. }
  2604. public function setBooks(/* array(object) */ $books) {
  2605. $this->books = $books;
  2606. }
  2607. public function getBooks() {
  2608. return $this->books;
  2609. }
  2610. public function setAccounts(/* array(PersonAccounts) */ $accounts) {
  2611. $this->accounts = $accounts;
  2612. }
  2613. public function getAccounts() {
  2614. return $this->accounts;
  2615. }
  2616. public function setTurnOns(/* array(object) */ $turnOns) {
  2617. $this->turnOns = $turnOns;
  2618. }
  2619. public function getTurnOns() {
  2620. return $this->turnOns;
  2621. }
  2622. public function setHasApp($hasApp) {
  2623. $this->hasApp = $hasApp;
  2624. }
  2625. public function getHasApp() {
  2626. return $this->hasApp;
  2627. }
  2628. public function setDrinker($drinker) {
  2629. $this->drinker = $drinker;
  2630. }
  2631. public function getDrinker() {
  2632. return $this->drinker;
  2633. }
  2634. public function setSports(/* array(object) */ $sports) {
  2635. $this->sports = $sports;
  2636. }
  2637. public function getSports() {
  2638. return $this->sports;
  2639. }
  2640. public function setLanguagesSpoken(/* array(object) */ $languagesSpoken) {
  2641. $this->languagesSpoken = $languagesSpoken;
  2642. }
  2643. public function getLanguagesSpoken() {
  2644. return $this->languagesSpoken;
  2645. }
  2646. public function setChildren(/* array(object) */ $children) {
  2647. $this->children = $children;
  2648. }
  2649. public function getChildren() {
  2650. return $this->children;
  2651. }
  2652. public function setEthnicity($ethnicity) {
  2653. $this->ethnicity = $ethnicity;
  2654. }
  2655. public function getEthnicity() {
  2656. return $this->ethnicity;
  2657. }
  2658. public function setRelationships(/* array(object) */ $relationships) {
  2659. $this->relationships = $relationships;
  2660. }
  2661. public function getRelationships() {
  2662. return $this->relationships;
  2663. }
  2664. public function setNote($note) {
  2665. $this->note = $note;
  2666. }
  2667. public function getNote() {
  2668. return $this->note;
  2669. }
  2670. public function setThumbnailUrl($thumbnailUrl) {
  2671. $this->thumbnailUrl = $thumbnailUrl;
  2672. }
  2673. public function getThumbnailUrl() {
  2674. return $this->thumbnailUrl;
  2675. }
  2676. public function setHumor($humor) {
  2677. $this->humor = $humor;
  2678. }
  2679. public function getHumor() {
  2680. return $this->humor;
  2681. }
  2682. public function setId($id) {
  2683. $this->id = $id;
  2684. }
  2685. public function getId() {
  2686. return $this->id;
  2687. }
  2688. public function setTags(/* array(object) */ $tags) {
  2689. $this->tags = $tags;
  2690. }
  2691. public function getTags() {
  2692. return $this->tags;
  2693. }
  2694. public function setAnniversary($anniversary) {
  2695. $this->anniversary = $anniversary;
  2696. }
  2697. public function getAnniversary() {
  2698. return $this->anniversary;
  2699. }
  2700. public function setHappiestWhen($happiestWhen) {
  2701. $this->happiestWhen = $happiestWhen;
  2702. }
  2703. public function getHappiestWhen() {
  2704. return $this->happiestWhen;
  2705. }
  2706. public function setCurrentLocation($currentLocation) {
  2707. $this->currentLocation = $currentLocation;
  2708. }
  2709. public function getCurrentLocation() {
  2710. return $this->currentLocation;
  2711. }
  2712. public function setLanguages(/* array(object) */ $languages) {
  2713. $this->languages = $languages;
  2714. }
  2715. public function getLanguages() {
  2716. return $this->languages;
  2717. }
  2718. public function setReligion($religion) {
  2719. $this->religion = $religion;
  2720. }
  2721. public function getReligion() {
  2722. return $this->religion;
  2723. }
  2724. public function setIms(/* array(PersonIms) */ $ims) {
  2725. $this->ims = $ims;
  2726. }
  2727. public function getIms() {
  2728. return $this->ims;
  2729. }
  2730. public function setMusic(/* array(object) */ $music) {
  2731. $this->music = $music;
  2732. }
  2733. public function getMusic() {
  2734. return $this->music;
  2735. }
  2736. public function setPets(/* array(object) */ $pets) {
  2737. $this->pets = $pets;
  2738. }
  2739. public function getPets() {
  2740. return $this->pets;
  2741. }
  2742. public function setInterests(/* array(object) */ $interests) {
  2743. $this->interests = $interests;
  2744. }
  2745. public function getInterests() {
  2746. return $this->interests;
  2747. }
  2748. public function setActivities(/* array(object) */ $activities) {
  2749. $this->activities = $activities;
  2750. }
  2751. public function getActivities() {
  2752. return $this->activities;
  2753. }
  2754. public function setUpdated($updated) {
  2755. $this->updated = $updated;
  2756. }
  2757. public function getUpdated() {
  2758. return $this->updated;
  2759. }
  2760. public function setBodyType($bodyType) {
  2761. $this->bodyType = $bodyType;
  2762. }
  2763. public function getBodyType() {
  2764. return $this->bodyType;
  2765. }
  2766. public function setRelationshipStatus($relationshipStatus) {
  2767. $this->relationshipStatus = $relationshipStatus;
  2768. }
  2769. public function getRelationshipStatus() {
  2770. return $this->relationshipStatus;
  2771. }
  2772. public function setSexualOrientation($sexualOrientation) {
  2773. $this->sexualOrientation = $sexualOrientation;
  2774. }
  2775. public function getSexualOrientation() {
  2776. return $this->sexualOrientation;
  2777. }
  2778. public function setFood(/* array(object) */ $food) {
  2779. $this->food = $food;
  2780. }
  2781. public function getFood() {
  2782. return $this->food;
  2783. }
  2784. public function setCars(/* array(object) */ $cars) {
  2785. $this->cars = $cars;
  2786. }
  2787. public function getCars() {
  2788. return $this->cars;
  2789. }
  2790. public function setAboutMe($aboutMe) {
  2791. $this->aboutMe = $aboutMe;
  2792. }
  2793. public function getAboutMe() {
  2794. return $this->aboutMe;
  2795. }
  2796. public function setKind($kind) {
  2797. $this->kind = $kind;
  2798. }
  2799. public function getKind() {
  2800. return $this->kind;
  2801. }
  2802. public function setPhotos(/* array(PersonPhotos) */ $photos) {
  2803. $this->photos = $photos;
  2804. }
  2805. public function getPhotos() {
  2806. return $this->photos;
  2807. }
  2808. public function setBirthday($birthday) {
  2809. $this->birthday = $birthday;
  2810. }
  2811. public function getBirthday() {
  2812. return $this->birthday;
  2813. }
  2814. public function setConnected($connected) {
  2815. $this->connected = $connected;
  2816. }
  2817. public function getConnected() {
  2818. return $this->connected;
  2819. }
  2820. public function setProfileVideo($profileVideo) {
  2821. $this->profileVideo = $profileVideo;
  2822. }
  2823. public function getProfileVideo() {
  2824. return $this->profileVideo;
  2825. }
  2826. public function setHeroes(/* array(object) */ $heroes) {
  2827. $this->heroes = $heroes;
  2828. }
  2829. public function getHeroes() {
  2830. return $this->heroes;
  2831. }
  2832. public function setNickname($nickname) {
  2833. $this->nickname = $nickname;
  2834. }
  2835. public function getNickname() {
  2836. return $this->nickname;
  2837. }
  2838. public function setEmails(/* array(PersonEmails) */ $emails) {
  2839. $this->emails = $emails;
  2840. }
  2841. public function getEmails() {
  2842. return $this->emails;
  2843. }
  2844. public function setOrganizations(/* array(PersonOrganizations) */ $organizations) {
  2845. $this->organizations = $organizations;
  2846. }
  2847. public function getOrganizations() {
  2848. return $this->organizations;
  2849. }
  2850. public function setJobInterests(/* array(object) */ $jobInterests) {
  2851. $this->jobInterests = $jobInterests;
  2852. }
  2853. public function getJobInterests() {
  2854. return $this->jobInterests;
  2855. }
  2856. public function setDisplayName($displayName) {
  2857. $this->displayName = $displayName;
  2858. }
  2859. public function getDisplayName() {
  2860. return $this->displayName;
  2861. }
  2862. public function setName(PersonName $name) {
  2863. $this->name = $name;
  2864. }
  2865. public function getName() {
  2866. return $this->name;
  2867. }
  2868. public function setPoliticalViews(/* array(object) */ $politicalViews) {
  2869. $this->politicalViews = $politicalViews;
  2870. }
  2871. public function getPoliticalViews() {
  2872. return $this->politicalViews;
  2873. }
  2874. public function setTvShows(/* array(object) */ $tvShows) {
  2875. $this->tvShows = $tvShows;
  2876. }
  2877. public function getTvShows() {
  2878. return $this->tvShows;
  2879. }
  2880. public function setGender($gender) {
  2881. $this->gender = $gender;
  2882. }
  2883. public function getGender() {
  2884. return $this->gender;
  2885. }
  2886. public function setProfileSong($profileSong) {
  2887. $this->profileSong = $profileSong;
  2888. }
  2889. public function getProfileSong() {
  2890. return $this->profileSong;
  2891. }
  2892. public function setSmoker($smoker) {
  2893. $this->smoker = $smoker;
  2894. }
  2895. public function getSmoker() {
  2896. return $this->smoker;
  2897. }
  2898. public function setScaredOf($scaredOf) {
  2899. $this->scaredOf = $scaredOf;
  2900. }
  2901. public function getScaredOf() {
  2902. return $this->scaredOf;
  2903. }
  2904. public function setProfileUrl($profileUrl) {
  2905. $this->profileUrl = $profileUrl;
  2906. }
  2907. public function getProfileUrl() {
  2908. return $this->profileUrl;
  2909. }
  2910. public function setMovies(/* array(object) */ $movies) {
  2911. $this->movies = $movies;
  2912. }
  2913. public function getMovies() {
  2914. return $this->movies;
  2915. }
  2916. public function setUtcOffset($utcOffset) {
  2917. $this->utcOffset = $utcOffset;
  2918. }
  2919. public function getUtcOffset() {
  2920. return $this->utcOffset;
  2921. }
  2922. public function setUrls(/* array(PersonUrls) */ $urls) {
  2923. $this->urls = $urls;
  2924. }
  2925. public function getUrls() {
  2926. return $this->urls;
  2927. }
  2928. public function setPublished($published) {
  2929. $this->published = $published;
  2930. }
  2931. public function getPublished() {
  2932. return $this->published;
  2933. }
  2934. public function setLivingArrangement($livingArrangement) {
  2935. $this->livingArrangement = $livingArrangement;
  2936. }
  2937. public function getLivingArrangement() {
  2938. return $this->livingArrangement;
  2939. }
  2940. public function setLookingFor($lookingFor) {
  2941. $this->lookingFor = $lookingFor;
  2942. }
  2943. public function getLookingFor() {
  2944. return $this->lookingFor;
  2945. }
  2946. }
  2947. class PersonAccounts extends apiModel {
  2948. public $username;
  2949. public $domain;
  2950. public $userid;
  2951. public function setUsername($username) {
  2952. $this->username = $username;
  2953. }
  2954. public function getUsername() {
  2955. return $this->username;
  2956. }
  2957. public function setDomain($domain) {
  2958. $this->domain = $domain;
  2959. }
  2960. public function getDomain() {
  2961. return $this->domain;
  2962. }
  2963. public function setUserid($userid) {
  2964. $this->userid = $userid;
  2965. }
  2966. public function getUserid() {
  2967. return $this->userid;
  2968. }
  2969. }
  2970. class PersonAddresses extends apiModel {
  2971. public $locality;
  2972. public $country;
  2973. public $region;
  2974. public $primary;
  2975. public $formatted;
  2976. public $streetAddress;
  2977. public $postalCode;
  2978. public $type;
  2979. public function setLocality($locality) {
  2980. $this->locality = $locality;
  2981. }
  2982. public function getLocality() {
  2983. return $this->locality;
  2984. }
  2985. public function setCountry($country) {
  2986. $this->country = $country;
  2987. }
  2988. public function getCountry() {
  2989. return $this->country;
  2990. }
  2991. public function setRegion($region) {
  2992. $this->region = $region;
  2993. }
  2994. public function getRegion() {
  2995. return $this->region;
  2996. }
  2997. public function setPrimary($primary) {
  2998. $this->primary = $primary;
  2999. }
  3000. public function getPrimary() {
  3001. return $this->primary;
  3002. }
  3003. public function setFormatted($formatted) {
  3004. $this->formatted = $formatted;
  3005. }
  3006. public function getFormatted() {
  3007. return $this->formatted;
  3008. }
  3009. public function setStreetAddress($streetAddress) {
  3010. $this->streetAddress = $streetAddress;
  3011. }
  3012. public function getStreetAddress() {
  3013. return $this->streetAddress;
  3014. }
  3015. public function setPostalCode($postalCode) {
  3016. $this->postalCode = $postalCode;
  3017. }
  3018. public function getPostalCode() {
  3019. return $this->postalCode;
  3020. }
  3021. public function setType($type) {
  3022. $this->type = $type;
  3023. }
  3024. public function getType() {
  3025. return $this->type;
  3026. }
  3027. }
  3028. class PersonEmails extends apiModel {
  3029. public $type;
  3030. public $primary;
  3031. public $value;
  3032. public function setType($type) {
  3033. $this->type = $type;
  3034. }
  3035. public function getType() {
  3036. return $this->type;
  3037. }
  3038. public function setPrimary($primary) {
  3039. $this->primary = $primary;
  3040. }
  3041. public function getPrimary() {
  3042. return $this->primary;
  3043. }
  3044. public function setValue($value) {
  3045. $this->value = $value;
  3046. }
  3047. public function getValue() {
  3048. return $this->value;
  3049. }
  3050. }
  3051. class PersonIms extends apiModel {
  3052. public $type;
  3053. public $primary;
  3054. public $value;
  3055. public function setType($type) {
  3056. $this->type = $type;
  3057. }
  3058. public function getType() {
  3059. return $this->type;
  3060. }
  3061. public function setPrimary($primary) {
  3062. $this->primary = $primary;
  3063. }
  3064. public function getPrimary() {
  3065. return $this->primary;
  3066. }
  3067. public function setValue($value) {
  3068. $this->value = $value;
  3069. }
  3070. public function getValue() {
  3071. return $this->value;
  3072. }
  3073. }
  3074. class PersonName extends apiModel {
  3075. public $honorificPrefix;
  3076. public $middleName;
  3077. public $familyName;
  3078. public $formatted;
  3079. public $givenName;
  3080. public $honorificSuffix;
  3081. public function setHonorificPrefix($honorificPrefix) {
  3082. $this->honorificPrefix = $honorificPrefix;
  3083. }
  3084. public function getHonorificPrefix() {
  3085. return $this->honorificPrefix;
  3086. }
  3087. public function setMiddleName($middleName) {
  3088. $this->middleName = $middleName;
  3089. }
  3090. public function getMiddleName() {
  3091. return $this->middleName;
  3092. }
  3093. public function setFamilyName($familyName) {
  3094. $this->familyName = $familyName;
  3095. }
  3096. public function getFamilyName() {
  3097. return $this->familyName;
  3098. }
  3099. public function setFormatted($formatted) {
  3100. $this->formatted = $formatted;
  3101. }
  3102. public function getFormatted() {
  3103. return $this->formatted;
  3104. }
  3105. public function setGivenName($givenName) {
  3106. $this->givenName = $givenName;
  3107. }
  3108. public function getGivenName() {
  3109. return $this->givenName;
  3110. }
  3111. public function setHonorificSuffix($honorificSuffix) {
  3112. $this->honorificSuffix = $honorificSuffix;
  3113. }
  3114. public function getHonorificSuffix() {
  3115. return $this->honorificSuffix;
  3116. }
  3117. }
  3118. class PersonOrganizations extends apiModel {
  3119. public $startDate;
  3120. public $endDate;
  3121. public $description;
  3122. public $title;
  3123. public $primary;
  3124. public $location;
  3125. public $department;
  3126. public $type;
  3127. public $name;
  3128. public function setStartDate($startDate) {
  3129. $this->startDate = $startDate;
  3130. }
  3131. public function getStartDate() {
  3132. return $this->startDate;
  3133. }
  3134. public function setEndDate($endDate) {
  3135. $this->endDate = $endDate;
  3136. }
  3137. public function getEndDate() {
  3138. return $this->endDate;
  3139. }
  3140. public function setDescription($description) {
  3141. $this->description = $description;
  3142. }
  3143. public function getDescription() {
  3144. return $this->description;
  3145. }
  3146. public function setTitle($title) {
  3147. $this->title = $title;
  3148. }
  3149. public function getTitle() {
  3150. return $this->title;
  3151. }
  3152. public function setPrimary($primary) {
  3153. $this->primary = $primary;
  3154. }
  3155. public function getPrimary() {
  3156. return $this->primary;
  3157. }
  3158. public function setLocation($location) {
  3159. $this->location = $location;
  3160. }
  3161. public function getLocation() {
  3162. return $this->location;
  3163. }
  3164. public function setDepartment($department) {
  3165. $this->department = $department;
  3166. }
  3167. public function getDepartment() {
  3168. return $this->department;
  3169. }
  3170. public function setType($type) {
  3171. $this->type = $type;
  3172. }
  3173. public function getType() {
  3174. return $this->type;
  3175. }
  3176. public function setName($name) {
  3177. $this->name = $name;
  3178. }
  3179. public function getName() {
  3180. return $this->name;
  3181. }
  3182. }
  3183. class PersonPhoneNumbers extends apiModel {
  3184. public $type;
  3185. public $primary;
  3186. public $value;
  3187. public function setType($type) {
  3188. $this->type = $type;
  3189. }
  3190. public function getType() {
  3191. return $this->type;
  3192. }
  3193. public function setPrimary($primary) {
  3194. $this->primary = $primary;
  3195. }
  3196. public function getPrimary() {
  3197. return $this->primary;
  3198. }
  3199. public function setValue($value) {
  3200. $this->value = $value;
  3201. }
  3202. public function getValue() {
  3203. return $this->value;
  3204. }
  3205. }
  3206. class PersonPhotos extends apiModel {
  3207. public $width;
  3208. public $type;
  3209. public $primary;
  3210. public $value;
  3211. public $height;
  3212. public function setWidth($width) {
  3213. $this->width = $width;
  3214. }
  3215. public function getWidth() {
  3216. return $this->width;
  3217. }
  3218. public function setType($type) {
  3219. $this->type = $type;
  3220. }
  3221. public function getType() {
  3222. return $this->type;
  3223. }
  3224. public function setPrimary($primary) {
  3225. $this->primary = $primary;
  3226. }
  3227. public function getPrimary() {
  3228. return $this->primary;
  3229. }
  3230. public function setValue($value) {
  3231. $this->value = $value;
  3232. }
  3233. public function getValue() {
  3234. return $this->value;
  3235. }
  3236. public function setHeight($height) {
  3237. $this->height = $height;
  3238. }
  3239. public function getHeight() {
  3240. return $this->height;
  3241. }
  3242. }
  3243. class PersonUrls extends apiModel {
  3244. public $type;
  3245. public $primary;
  3246. public $value;
  3247. public function setType($type) {
  3248. $this->type = $type;
  3249. }
  3250. public function getType() {
  3251. return $this->type;
  3252. }
  3253. public function setPrimary($primary) {
  3254. $this->primary = $primary;
  3255. }
  3256. public function getPrimary() {
  3257. return $this->primary;
  3258. }
  3259. public function setValue($value) {
  3260. $this->value = $value;
  3261. }
  3262. public function getValue() {
  3263. return $this->value;
  3264. }
  3265. }
  3266. class PhotosFeed extends apiModel {
  3267. protected $__itemsType = 'ChiliPhotosResourceJson';
  3268. public $items;
  3269. public $kind;
  3270. public function setItems(/* array(ChiliPhotosResourceJson) */ $items) {
  3271. $this->items = $items;
  3272. }
  3273. public function getItems() {
  3274. return $this->items;
  3275. }
  3276. public function setKind($kind) {
  3277. $this->kind = $kind;
  3278. }
  3279. public function getKind() {
  3280. return $this->kind;
  3281. }
  3282. }
  3283. class Related extends apiModel {
  3284. public $title;
  3285. public $kind;
  3286. public $href;
  3287. public $id;
  3288. public $summary;
  3289. public function setTitle($title) {
  3290. $this->title = $title;
  3291. }
  3292. public function getTitle() {
  3293. return $this->title;
  3294. }
  3295. public function setKind($kind) {
  3296. $this->kind = $kind;
  3297. }
  3298. public function getKind() {
  3299. return $this->kind;
  3300. }
  3301. public function setHref($href) {
  3302. $this->href = $href;
  3303. }
  3304. public function getHref() {
  3305. return $this->href;
  3306. }
  3307. public function setId($id) {
  3308. $this->id = $id;
  3309. }
  3310. public function getId() {
  3311. return $this->id;
  3312. }
  3313. public function setSummary($summary) {
  3314. $this->summary = $summary;
  3315. }
  3316. public function getSummary() {
  3317. return $this->summary;
  3318. }
  3319. }
  3320. class RelatedFeed extends apiModel {
  3321. public $kind;
  3322. protected $__linksType = 'RelatedFeedLinksItems';
  3323. public $links;
  3324. public $title;
  3325. protected $__itemsType = 'Related';
  3326. public $items;
  3327. public $updated;
  3328. public $id;
  3329. public function setKind($kind) {
  3330. $this->kind = $kind;
  3331. }
  3332. public function getKind() {
  3333. return $this->kind;
  3334. }
  3335. public function setLinks(RelatedFeedLinksItems $links) {
  3336. $this->links = $links;
  3337. }
  3338. public function getLinks() {
  3339. return $this->links;
  3340. }
  3341. public function setTitle($title) {
  3342. $this->title = $title;
  3343. }
  3344. public function getTitle() {
  3345. return $this->title;
  3346. }
  3347. public function setItems(/* array(Related) */ $items) {
  3348. $this->items = $items;
  3349. }
  3350. public function getItems() {
  3351. return $this->items;
  3352. }
  3353. public function setUpdated($updated) {
  3354. $this->updated = $updated;
  3355. }
  3356. public function getUpdated() {
  3357. return $this->updated;
  3358. }
  3359. public function setId($id) {
  3360. $this->id = $id;
  3361. }
  3362. public function getId() {
  3363. return $this->id;
  3364. }
  3365. }
  3366. class RelatedFeedLinksItems extends apiModel {
  3367. public $count;
  3368. public $updated;
  3369. public $title;
  3370. public $height;
  3371. public $width;
  3372. public $href;
  3373. public $type;
  3374. public function setCount($count) {
  3375. $this->count = $count;
  3376. }
  3377. public function getCount() {
  3378. return $this->count;
  3379. }
  3380. public function setUpdated($updated) {
  3381. $this->updated = $updated;
  3382. }
  3383. public function getUpdated() {
  3384. return $this->updated;
  3385. }
  3386. public function setTitle($title) {
  3387. $this->title = $title;
  3388. }
  3389. public function getTitle() {
  3390. return $this->title;
  3391. }
  3392. public function setHeight($height) {
  3393. $this->height = $height;
  3394. }
  3395. public function getHeight() {
  3396. return $this->height;
  3397. }
  3398. public function setWidth($width) {
  3399. $this->width = $width;
  3400. }
  3401. public function getWidth() {
  3402. return $this->width;
  3403. }
  3404. public function setHref($href) {
  3405. $this->href = $href;
  3406. }
  3407. public function getHref() {
  3408. return $this->href;
  3409. }
  3410. public function setType($type) {
  3411. $this->type = $type;
  3412. }
  3413. public function getType() {
  3414. return $this->type;
  3415. }
  3416. }
  3417. class Video extends apiModel {
  3418. public $duration;
  3419. public $status;
  3420. protected $__streamsType = 'Link';
  3421. public $streams;
  3422. public $size;
  3423. public function setDuration($duration) {
  3424. $this->duration = $duration;
  3425. }
  3426. public function getDuration() {
  3427. return $this->duration;
  3428. }
  3429. public function setStatus($status) {
  3430. $this->status = $status;
  3431. }
  3432. public function getStatus() {
  3433. return $this->status;
  3434. }
  3435. public function setStreams(/* array(Link) */ $streams) {
  3436. $this->streams = $streams;
  3437. }
  3438. public function getStreams() {
  3439. return $this->streams;
  3440. }
  3441. public function setSize($size) {
  3442. $this->size = $size;
  3443. }
  3444. public function getSize() {
  3445. return $this->size;
  3446. }
  3447. }