PluginProbe
Gianism / 1.1
Gianism v1.1
4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.4.0 5.0.0 5.0.1 5.0.2 5.1.0 5.2.1 5.2.2 5.3.0 6.0.0 6.0.1 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 65 releases
gianism / sdks / google / contrib / apiModeratorService.php

apiModeratorService.php in Gianism 1.1, at sdks/google/contrib/apiModeratorService.php

1,895 lines 68.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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
18 require_once 'service/apiModel.php';
19 require_once 'service/apiService.php';
20 require_once 'service/apiServiceRequest.php';
21
22
23 /**
24 * The "votes" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $moderatorService = new apiModeratorService(...);
28 * $votes = $moderatorService->votes;
29 * </code>
30 */
31 class VotesServiceResource extends apiServiceResource {
32
33
34 /**
35 * Inserts a new vote by the authenticated user for the specified submission within the specified
36 * series. (votes.insert)
37 *
38 * @param string $seriesId The decimal ID of the Series.
39 * @param string $submissionId The decimal ID of the Submission within the Series.
40 * @param Vote $postBody
41 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
42 *
43 * @opt_param string unauthToken User identifier for unauthenticated usage mode
44 * @return Vote
45 */
46 public function insert($seriesId, $submissionId, Vote $postBody, $optParams = array()) {
47 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
48 $params = array_merge($params, $optParams);
49 $data = $this->__call('insert', array($params));
50 if ($this->useObjects()) {
51 return new Vote($data);
52 } else {
53 return $data;
54 }
55 }
56 /**
57 * Updates the votes by the authenticated user for the specified submission within the specified
58 * series. This method supports patch semantics. (votes.patch)
59 *
60 * @param string $seriesId The decimal ID of the Series.
61 * @param string $submissionId The decimal ID of the Submission within the Series.
62 * @param Vote $postBody
63 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
64 *
65 * @opt_param string userId
66 * @opt_param string unauthToken User identifier for unauthenticated usage mode
67 * @return Vote
68 */
69 public function patch($seriesId, $submissionId, Vote $postBody, $optParams = array()) {
70 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
71 $params = array_merge($params, $optParams);
72 $data = $this->__call('patch', array($params));
73 if ($this->useObjects()) {
74 return new Vote($data);
75 } else {
76 return $data;
77 }
78 }
79 /**
80 * Lists the votes by the authenticated user for the given series. (votes.list)
81 *
82 * @param string $seriesId The decimal ID of the Series.
83 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
84 *
85 * @opt_param string max-results Maximum number of results to return.
86 * @opt_param string start-index Index of the first result to be retrieved.
87 * @return VoteList
88 */
89 public function listVotes($seriesId, $optParams = array()) {
90 $params = array('seriesId' => $seriesId);
91 $params = array_merge($params, $optParams);
92 $data = $this->__call('list', array($params));
93 if ($this->useObjects()) {
94 return new VoteList($data);
95 } else {
96 return $data;
97 }
98 }
99 /**
100 * Updates the votes by the authenticated user for the specified submission within the specified
101 * series. (votes.update)
102 *
103 * @param string $seriesId The decimal ID of the Series.
104 * @param string $submissionId The decimal ID of the Submission within the Series.
105 * @param Vote $postBody
106 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
107 *
108 * @opt_param string userId
109 * @opt_param string unauthToken User identifier for unauthenticated usage mode
110 * @return Vote
111 */
112 public function update($seriesId, $submissionId, Vote $postBody, $optParams = array()) {
113 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
114 $params = array_merge($params, $optParams);
115 $data = $this->__call('update', array($params));
116 if ($this->useObjects()) {
117 return new Vote($data);
118 } else {
119 return $data;
120 }
121 }
122 /**
123 * Returns the votes by the authenticated user for the specified submission within the specified
124 * series. (votes.get)
125 *
126 * @param string $seriesId The decimal ID of the Series.
127 * @param string $submissionId The decimal ID of the Submission within the Series.
128 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
129 *
130 * @opt_param string userId
131 * @opt_param string unauthToken User identifier for unauthenticated usage mode
132 * @return Vote
133 */
134 public function get($seriesId, $submissionId, $optParams = array()) {
135 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
136 $params = array_merge($params, $optParams);
137 $data = $this->__call('get', array($params));
138 if ($this->useObjects()) {
139 return new Vote($data);
140 } else {
141 return $data;
142 }
143 }
144 }
145
146 /**
147 * The "responses" collection of methods.
148 * Typical usage is:
149 * <code>
150 * $moderatorService = new apiModeratorService(...);
151 * $responses = $moderatorService->responses;
152 * </code>
153 */
154 class ResponsesServiceResource extends apiServiceResource {
155
156
157 /**
158 * Inserts a response for the specified submission in the specified topic within the specified
159 * series. (responses.insert)
160 *
161 * @param string $seriesId The decimal ID of the Series.
162 * @param string $topicId The decimal ID of the Topic within the Series.
163 * @param string $parentSubmissionId The decimal ID of the parent Submission within the Series.
164 * @param Submission $postBody
165 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
166 *
167 * @opt_param string unauthToken User identifier for unauthenticated usage mode
168 * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
169 * @return Submission
170 */
171 public function insert($seriesId, $topicId, $parentSubmissionId, Submission $postBody, $optParams = array()) {
172 $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmissionId' => $parentSubmissionId, 'postBody' => $postBody);
173 $params = array_merge($params, $optParams);
174 $data = $this->__call('insert', array($params));
175 if ($this->useObjects()) {
176 return new Submission($data);
177 } else {
178 return $data;
179 }
180 }
181 /**
182 * Lists or searches the responses for the specified submission within the specified series and
183 * returns the search results. (responses.list)
184 *
185 * @param string $seriesId The decimal ID of the Series.
186 * @param string $submissionId The decimal ID of the Submission within the Series.
187 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
188 *
189 * @opt_param string max-results Maximum number of results to return.
190 * @opt_param string sort Sort order.
191 * @opt_param string author Restricts the results to submissions by a specific author.
192 * @opt_param string start-index Index of the first result to be retrieved.
193 * @opt_param string q Search query.
194 * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
195 * @return SubmissionList
196 */
197 public function listResponses($seriesId, $submissionId, $optParams = array()) {
198 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
199 $params = array_merge($params, $optParams);
200 $data = $this->__call('list', array($params));
201 if ($this->useObjects()) {
202 return new SubmissionList($data);
203 } else {
204 return $data;
205 }
206 }
207 }
208
209 /**
210 * The "tags" collection of methods.
211 * Typical usage is:
212 * <code>
213 * $moderatorService = new apiModeratorService(...);
214 * $tags = $moderatorService->tags;
215 * </code>
216 */
217 class TagsServiceResource extends apiServiceResource {
218
219
220 /**
221 * Inserts a new tag for the specified submission within the specified series. (tags.insert)
222 *
223 * @param string $seriesId The decimal ID of the Series.
224 * @param string $submissionId The decimal ID of the Submission within the Series.
225 * @param Tag $postBody
226 * @return Tag
227 */
228 public function insert($seriesId, $submissionId, Tag $postBody, $optParams = array()) {
229 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
230 $params = array_merge($params, $optParams);
231 $data = $this->__call('insert', array($params));
232 if ($this->useObjects()) {
233 return new Tag($data);
234 } else {
235 return $data;
236 }
237 }
238 /**
239 * Lists all tags for the specified submission within the specified series. (tags.list)
240 *
241 * @param string $seriesId The decimal ID of the Series.
242 * @param string $submissionId The decimal ID of the Submission within the Series.
243 * @return TagList
244 */
245 public function listTags($seriesId, $submissionId, $optParams = array()) {
246 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
247 $params = array_merge($params, $optParams);
248 $data = $this->__call('list', array($params));
249 if ($this->useObjects()) {
250 return new TagList($data);
251 } else {
252 return $data;
253 }
254 }
255 /**
256 * Deletes the specified tag from the specified submission within the specified series.
257 * (tags.delete)
258 *
259 * @param string $seriesId The decimal ID of the Series.
260 * @param string $submissionId The decimal ID of the Submission within the Series.
261 * @param string $tagId
262 */
263 public function delete($seriesId, $submissionId, $tagId, $optParams = array()) {
264 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'tagId' => $tagId);
265 $params = array_merge($params, $optParams);
266 $data = $this->__call('delete', array($params));
267 return $data;
268 }
269 }
270
271 /**
272 * The "series" collection of methods.
273 * Typical usage is:
274 * <code>
275 * $moderatorService = new apiModeratorService(...);
276 * $series = $moderatorService->series;
277 * </code>
278 */
279 class SeriesServiceResource extends apiServiceResource {
280
281
282 /**
283 * Inserts a new series. (series.insert)
284 *
285 * @param Series $postBody
286 * @return Series
287 */
288 public function insert(Series $postBody, $optParams = array()) {
289 $params = array('postBody' => $postBody);
290 $params = array_merge($params, $optParams);
291 $data = $this->__call('insert', array($params));
292 if ($this->useObjects()) {
293 return new Series($data);
294 } else {
295 return $data;
296 }
297 }
298 /**
299 * Updates the specified series. This method supports patch semantics. (series.patch)
300 *
301 * @param string $seriesId The decimal ID of the Series.
302 * @param Series $postBody
303 * @return Series
304 */
305 public function patch($seriesId, Series $postBody, $optParams = array()) {
306 $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
307 $params = array_merge($params, $optParams);
308 $data = $this->__call('patch', array($params));
309 if ($this->useObjects()) {
310 return new Series($data);
311 } else {
312 return $data;
313 }
314 }
315 /**
316 * Searches the series and returns the search results. (series.list)
317 *
318 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
319 *
320 * @opt_param string max-results Maximum number of results to return.
321 * @opt_param string q Search query.
322 * @opt_param string start-index Index of the first result to be retrieved.
323 * @return SeriesList
324 */
325 public function listSeries($optParams = array()) {
326 $params = array();
327 $params = array_merge($params, $optParams);
328 $data = $this->__call('list', array($params));
329 if ($this->useObjects()) {
330 return new SeriesList($data);
331 } else {
332 return $data;
333 }
334 }
335 /**
336 * Updates the specified series. (series.update)
337 *
338 * @param string $seriesId The decimal ID of the Series.
339 * @param Series $postBody
340 * @return Series
341 */
342 public function update($seriesId, Series $postBody, $optParams = array()) {
343 $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
344 $params = array_merge($params, $optParams);
345 $data = $this->__call('update', array($params));
346 if ($this->useObjects()) {
347 return new Series($data);
348 } else {
349 return $data;
350 }
351 }
352 /**
353 * Returns the specified series. (series.get)
354 *
355 * @param string $seriesId The decimal ID of the Series.
356 * @return Series
357 */
358 public function get($seriesId, $optParams = array()) {
359 $params = array('seriesId' => $seriesId);
360 $params = array_merge($params, $optParams);
361 $data = $this->__call('get', array($params));
362 if ($this->useObjects()) {
363 return new Series($data);
364 } else {
365 return $data;
366 }
367 }
368 }
369
370
371 /**
372 * The "submissions" collection of methods.
373 * Typical usage is:
374 * <code>
375 * $moderatorService = new apiModeratorService(...);
376 * $submissions = $moderatorService->submissions;
377 * </code>
378 */
379 class SeriesSubmissionsServiceResource extends apiServiceResource {
380
381
382 /**
383 * Searches the submissions for the specified series and returns the search results.
384 * (submissions.list)
385 *
386 * @param string $seriesId The decimal ID of the Series.
387 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
388 *
389 * @opt_param string lang The language code for the language the client prefers resuls in.
390 * @opt_param string max-results Maximum number of results to return.
391 * @opt_param bool includeVotes Specifies whether to include the current user's vote
392 * @opt_param string start-index Index of the first result to be retrieved.
393 * @opt_param string author Restricts the results to submissions by a specific author.
394 * @opt_param string sort Sort order.
395 * @opt_param string q Search query.
396 * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
397 * @return SubmissionList
398 */
399 public function listSeriesSubmissions($seriesId, $optParams = array()) {
400 $params = array('seriesId' => $seriesId);
401 $params = array_merge($params, $optParams);
402 $data = $this->__call('list', array($params));
403 if ($this->useObjects()) {
404 return new SubmissionList($data);
405 } else {
406 return $data;
407 }
408 }
409 }
410 /**
411 * The "responses" collection of methods.
412 * Typical usage is:
413 * <code>
414 * $moderatorService = new apiModeratorService(...);
415 * $responses = $moderatorService->responses;
416 * </code>
417 */
418 class SeriesResponsesServiceResource extends apiServiceResource {
419
420
421 /**
422 * Searches the responses for the specified series and returns the search results. (responses.list)
423 *
424 * @param string $seriesId The decimal ID of the Series.
425 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
426 *
427 * @opt_param string max-results Maximum number of results to return.
428 * @opt_param string sort Sort order.
429 * @opt_param string author Restricts the results to submissions by a specific author.
430 * @opt_param string start-index Index of the first result to be retrieved.
431 * @opt_param string q Search query.
432 * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
433 * @return SeriesList
434 */
435 public function listSeriesResponses($seriesId, $optParams = array()) {
436 $params = array('seriesId' => $seriesId);
437 $params = array_merge($params, $optParams);
438 $data = $this->__call('list', array($params));
439 if ($this->useObjects()) {
440 return new SeriesList($data);
441 } else {
442 return $data;
443 }
444 }
445 }
446
447 /**
448 * The "topics" collection of methods.
449 * Typical usage is:
450 * <code>
451 * $moderatorService = new apiModeratorService(...);
452 * $topics = $moderatorService->topics;
453 * </code>
454 */
455 class TopicsServiceResource extends apiServiceResource {
456
457
458 /**
459 * Inserts a new topic into the specified series. (topics.insert)
460 *
461 * @param string $seriesId The decimal ID of the Series.
462 * @param Topic $postBody
463 * @return Topic
464 */
465 public function insert($seriesId, Topic $postBody, $optParams = array()) {
466 $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
467 $params = array_merge($params, $optParams);
468 $data = $this->__call('insert', array($params));
469 if ($this->useObjects()) {
470 return new Topic($data);
471 } else {
472 return $data;
473 }
474 }
475 /**
476 * Searches the topics within the specified series and returns the search results. (topics.list)
477 *
478 * @param string $seriesId The decimal ID of the Series.
479 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
480 *
481 * @opt_param string max-results Maximum number of results to return.
482 * @opt_param string q Search query.
483 * @opt_param string start-index Index of the first result to be retrieved.
484 * @opt_param string mode
485 * @return TopicList
486 */
487 public function listTopics($seriesId, $optParams = array()) {
488 $params = array('seriesId' => $seriesId);
489 $params = array_merge($params, $optParams);
490 $data = $this->__call('list', array($params));
491 if ($this->useObjects()) {
492 return new TopicList($data);
493 } else {
494 return $data;
495 }
496 }
497 /**
498 * Updates the specified topic within the specified series. (topics.update)
499 *
500 * @param string $seriesId The decimal ID of the Series.
501 * @param string $topicId The decimal ID of the Topic within the Series.
502 * @param Topic $postBody
503 * @return Topic
504 */
505 public function update($seriesId, $topicId, Topic $postBody, $optParams = array()) {
506 $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
507 $params = array_merge($params, $optParams);
508 $data = $this->__call('update', array($params));
509 if ($this->useObjects()) {
510 return new Topic($data);
511 } else {
512 return $data;
513 }
514 }
515 /**
516 * Returns the specified topic from the specified series. (topics.get)
517 *
518 * @param string $seriesId The decimal ID of the Series.
519 * @param string $topicId The decimal ID of the Topic within the Series.
520 * @return Topic
521 */
522 public function get($seriesId, $topicId, $optParams = array()) {
523 $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
524 $params = array_merge($params, $optParams);
525 $data = $this->__call('get', array($params));
526 if ($this->useObjects()) {
527 return new Topic($data);
528 } else {
529 return $data;
530 }
531 }
532 }
533
534
535 /**
536 * The "submissions" collection of methods.
537 * Typical usage is:
538 * <code>
539 * $moderatorService = new apiModeratorService(...);
540 * $submissions = $moderatorService->submissions;
541 * </code>
542 */
543 class TopicsSubmissionsServiceResource extends apiServiceResource {
544
545
546 /**
547 * Searches the submissions for the specified topic within the specified series and returns the
548 * search results. (submissions.list)
549 *
550 * @param string $seriesId The decimal ID of the Series.
551 * @param string $topicId The decimal ID of the Topic within the Series.
552 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
553 *
554 * @opt_param string max-results Maximum number of results to return.
555 * @opt_param bool includeVotes Specifies whether to include the current user's vote
556 * @opt_param string start-index Index of the first result to be retrieved.
557 * @opt_param string author Restricts the results to submissions by a specific author.
558 * @opt_param string sort Sort order.
559 * @opt_param string q Search query.
560 * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
561 * @return SubmissionList
562 */
563 public function listTopicsSubmissions($seriesId, $topicId, $optParams = array()) {
564 $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
565 $params = array_merge($params, $optParams);
566 $data = $this->__call('list', array($params));
567 if ($this->useObjects()) {
568 return new SubmissionList($data);
569 } else {
570 return $data;
571 }
572 }
573 }
574
575 /**
576 * The "global" collection of methods.
577 * Typical usage is:
578 * <code>
579 * $moderatorService = new apiModeratorService(...);
580 * $global = $moderatorService->global;
581 * </code>
582 */
583 class ModeratorGlobalServiceResource extends apiServiceResource {
584
585
586 }
587
588
589 /**
590 * The "series" collection of methods.
591 * Typical usage is:
592 * <code>
593 * $moderatorService = new apiModeratorService(...);
594 * $series = $moderatorService->series;
595 * </code>
596 */
597 class ModeratorGlobalSeriesServiceResource extends apiServiceResource {
598
599
600 /**
601 * Searches the public series and returns the search results. (series.list)
602 *
603 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
604 *
605 * @opt_param string max-results Maximum number of results to return.
606 * @opt_param string q Search query.
607 * @opt_param string start-index Index of the first result to be retrieved.
608 * @return SeriesList
609 */
610 public function listModeratorGlobalSeries($optParams = array()) {
611 $params = array();
612 $params = array_merge($params, $optParams);
613 $data = $this->__call('list', array($params));
614 if ($this->useObjects()) {
615 return new SeriesList($data);
616 } else {
617 return $data;
618 }
619 }
620 }
621
622 /**
623 * The "profiles" collection of methods.
624 * Typical usage is:
625 * <code>
626 * $moderatorService = new apiModeratorService(...);
627 * $profiles = $moderatorService->profiles;
628 * </code>
629 */
630 class ProfilesServiceResource extends apiServiceResource {
631
632
633 /**
634 * Updates the profile information for the authenticated user. This method supports patch semantics.
635 * (profiles.patch)
636 *
637 * @param Profile $postBody
638 * @return Profile
639 */
640 public function patch(Profile $postBody, $optParams = array()) {
641 $params = array('postBody' => $postBody);
642 $params = array_merge($params, $optParams);
643 $data = $this->__call('patch', array($params));
644 if ($this->useObjects()) {
645 return new Profile($data);
646 } else {
647 return $data;
648 }
649 }
650 /**
651 * Updates the profile information for the authenticated user. (profiles.update)
652 *
653 * @param Profile $postBody
654 * @return Profile
655 */
656 public function update(Profile $postBody, $optParams = array()) {
657 $params = array('postBody' => $postBody);
658 $params = array_merge($params, $optParams);
659 $data = $this->__call('update', array($params));
660 if ($this->useObjects()) {
661 return new Profile($data);
662 } else {
663 return $data;
664 }
665 }
666 /**
667 * Returns the profile information for the authenticated user. (profiles.get)
668 *
669 * @return Profile
670 */
671 public function get($optParams = array()) {
672 $params = array();
673 $params = array_merge($params, $optParams);
674 $data = $this->__call('get', array($params));
675 if ($this->useObjects()) {
676 return new Profile($data);
677 } else {
678 return $data;
679 }
680 }
681 }
682
683 /**
684 * The "featured" collection of methods.
685 * Typical usage is:
686 * <code>
687 * $moderatorService = new apiModeratorService(...);
688 * $featured = $moderatorService->featured;
689 * </code>
690 */
691 class FeaturedServiceResource extends apiServiceResource {
692
693
694 }
695
696
697 /**
698 * The "series" collection of methods.
699 * Typical usage is:
700 * <code>
701 * $moderatorService = new apiModeratorService(...);
702 * $series = $moderatorService->series;
703 * </code>
704 */
705 class FeaturedSeriesServiceResource extends apiServiceResource {
706
707
708 /**
709 * Lists the featured series. (series.list)
710 *
711 * @return SeriesList
712 */
713 public function listFeaturedSeries($optParams = array()) {
714 $params = array();
715 $params = array_merge($params, $optParams);
716 $data = $this->__call('list', array($params));
717 if ($this->useObjects()) {
718 return new SeriesList($data);
719 } else {
720 return $data;
721 }
722 }
723 }
724
725 /**
726 * The "myrecent" collection of methods.
727 * Typical usage is:
728 * <code>
729 * $moderatorService = new apiModeratorService(...);
730 * $myrecent = $moderatorService->myrecent;
731 * </code>
732 */
733 class MyrecentServiceResource extends apiServiceResource {
734
735
736 }
737
738
739 /**
740 * The "series" collection of methods.
741 * Typical usage is:
742 * <code>
743 * $moderatorService = new apiModeratorService(...);
744 * $series = $moderatorService->series;
745 * </code>
746 */
747 class MyrecentSeriesServiceResource extends apiServiceResource {
748
749
750 /**
751 * Lists the series the authenticated user has visited. (series.list)
752 *
753 * @return SeriesList
754 */
755 public function listMyrecentSeries($optParams = array()) {
756 $params = array();
757 $params = array_merge($params, $optParams);
758 $data = $this->__call('list', array($params));
759 if ($this->useObjects()) {
760 return new SeriesList($data);
761 } else {
762 return $data;
763 }
764 }
765 }
766
767 /**
768 * The "my" collection of methods.
769 * Typical usage is:
770 * <code>
771 * $moderatorService = new apiModeratorService(...);
772 * $my = $moderatorService->my;
773 * </code>
774 */
775 class MyServiceResource extends apiServiceResource {
776
777
778 }
779
780
781 /**
782 * The "series" collection of methods.
783 * Typical usage is:
784 * <code>
785 * $moderatorService = new apiModeratorService(...);
786 * $series = $moderatorService->series;
787 * </code>
788 */
789 class MySeriesServiceResource extends apiServiceResource {
790
791
792 /**
793 * Lists all series created by the authenticated user. (series.list)
794 *
795 * @return SeriesList
796 */
797 public function listMySeries($optParams = array()) {
798 $params = array();
799 $params = array_merge($params, $optParams);
800 $data = $this->__call('list', array($params));
801 if ($this->useObjects()) {
802 return new SeriesList($data);
803 } else {
804 return $data;
805 }
806 }
807 }
808
809 /**
810 * The "submissions" collection of methods.
811 * Typical usage is:
812 * <code>
813 * $moderatorService = new apiModeratorService(...);
814 * $submissions = $moderatorService->submissions;
815 * </code>
816 */
817 class SubmissionsServiceResource extends apiServiceResource {
818
819
820 /**
821 * Inserts a new submission in the specified topic within the specified series. (submissions.insert)
822 *
823 * @param string $seriesId The decimal ID of the Series.
824 * @param string $topicId The decimal ID of the Topic within the Series.
825 * @param Submission $postBody
826 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
827 *
828 * @opt_param string unauthToken User identifier for unauthenticated usage mode
829 * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
830 * @return Submission
831 */
832 public function insert($seriesId, $topicId, Submission $postBody, $optParams = array()) {
833 $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
834 $params = array_merge($params, $optParams);
835 $data = $this->__call('insert', array($params));
836 if ($this->useObjects()) {
837 return new Submission($data);
838 } else {
839 return $data;
840 }
841 }
842 /**
843 * Returns the specified submission within the specified series. (submissions.get)
844 *
845 * @param string $seriesId The decimal ID of the Series.
846 * @param string $submissionId The decimal ID of the Submission within the Series.
847 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
848 *
849 * @opt_param string lang The language code for the language the client prefers resuls in.
850 * @opt_param bool includeVotes Specifies whether to include the current user's vote
851 * @return Submission
852 */
853 public function get($seriesId, $submissionId, $optParams = array()) {
854 $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
855 $params = array_merge($params, $optParams);
856 $data = $this->__call('get', array($params));
857 if ($this->useObjects()) {
858 return new Submission($data);
859 } else {
860 return $data;
861 }
862 }
863 }
864
865
866
867 /**
868 * Service definition for Moderator (v1).
869 *
870 * <p>
871 * Moderator API
872 * </p>
873 *
874 * <p>
875 * For more information about this service, see the
876 * <a href="http://code.google.com/apis/moderator/v1/using_rest.html" target="_blank">API Documentation</a>
877 * </p>
878 *
879 * @author Google, Inc.
880 */
881 class apiModeratorService extends apiService {
882 public $votes;
883 public $responses;
884 public $tags;
885 public $series;
886 public $series_submissions;
887 public $series_responses;
888 public $topics;
889 public $topics_submissions;
890 public $global;
891 public $global_series;
892 public $profiles;
893 public $featured;
894 public $featured_series;
895 public $myrecent;
896 public $myrecent_series;
897 public $my;
898 public $my_series;
899 public $submissions;
900 /**
901 * Constructs the internal representation of the Moderator service.
902 *
903 * @param apiClient apiClient
904 */
905 public function __construct(apiClient $apiClient) {
906 $this->rpcPath = '/rpc';
907 $this->restBasePath = '/moderator/v1/';
908 $this->version = 'v1';
909 $this->serviceName = 'moderator';
910
911 $apiClient->addService($this->serviceName, $this->version);
912 $this->votes = new VotesServiceResource($this, $this->serviceName, 'votes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Vote"}, "id": "moderator.votes.insert", "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.votes.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}}, "id": "moderator.votes.list", "httpMethod": "GET", "path": "series/{seriesId}/votes/@me", "response": {"$ref": "VoteList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Vote"}, "id": "moderator.votes.update", "httpMethod": "PUT", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Vote"}, "id": "moderator.votes.patch", "httpMethod": "PATCH", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}}}', true));
913 $this->responses = new ResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "parentSubmissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Submission"}, "id": "moderator.responses.insert", "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions/{parentSubmissionId}/responses", "response": {"$ref": "Submission"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "author": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/responses", "response": {"$ref": "SubmissionList"}}}}', true));
914 $this->tags = new TagsServiceResource($this, $this->serviceName, 'tags', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Tag"}, "id": "moderator.tags.insert", "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "Tag"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.tags.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "TagList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "tagId": {"required": true, "type": "string", "location": "path"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "httpMethod": "DELETE", "path": "series/{seriesId}/submissions/{submissionId}/tags/{tagId}", "id": "moderator.tags.delete"}}}', true));
915 $this->series = new SeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "POST", "path": "series", "id": "moderator.series.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.series.get", "httpMethod": "GET", "path": "series/{seriesId}", "response": {"$ref": "Series"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "series", "id": "moderator.series.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Series"}, "id": "moderator.series.update", "httpMethod": "PUT", "path": "series/{seriesId}", "response": {"$ref": "Series"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Series"}, "id": "moderator.series.patch", "httpMethod": "PATCH", "path": "series/{seriesId}", "response": {"$ref": "Series"}}}}', true));
916 $this->series_submissions = new SeriesSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "max-results": {"format": "uint32", "type": "integer", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "author": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "includeVotes": {"type": "boolean", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
917 $this->series_responses = new SeriesResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "author": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/responses", "response": {"$ref": "SeriesList"}}}}', true));
918 $this->topics = new TopicsServiceResource($this, $this->serviceName, 'topics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Topic"}, "id": "moderator.topics.insert", "httpMethod": "POST", "path": "series/{seriesId}/topics", "response": {"$ref": "Topic"}}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "mode": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.topics.list", "httpMethod": "GET", "path": "series/{seriesId}/topics", "response": {"$ref": "TopicList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "Topic"}, "id": "moderator.topics.update", "httpMethod": "PUT", "path": "series/{seriesId}/topics/{topicId}", "response": {"$ref": "Topic"}}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.topics.get", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}", "response": {"$ref": "Topic"}}}}', true));
919 $this->topics_submissions = new TopicsSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "includeVotes": {"type": "boolean", "location": "query"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}, "author": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.topics.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
920 $this->global = new ModeratorGlobalServiceResource($this, $this->serviceName, 'global', json_decode('{}', true));
921 $this->global_series = new ModeratorGlobalSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"format": "uint32", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "start-index": {"format": "uint32", "type": "integer", "location": "query"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "search", "id": "moderator.global.series.list"}}}', true));
922 $this->profiles = new ProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.profiles.get", "httpMethod": "GET", "path": "profiles/@me", "response": {"$ref": "Profile"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PUT", "path": "profiles/@me", "id": "moderator.profiles.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PATCH", "path": "profiles/@me", "id": "moderator.profiles.patch"}}}', true));
923 $this->featured = new FeaturedServiceResource($this, $this->serviceName, 'featured', json_decode('{}', true));
924 $this->featured_series = new FeaturedSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.featured.series.list", "httpMethod": "GET", "path": "series/featured", "response": {"$ref": "SeriesList"}}}}', true));
925 $this->myrecent = new MyrecentServiceResource($this, $this->serviceName, 'myrecent', json_decode('{}', true));
926 $this->myrecent_series = new MyrecentSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.myrecent.series.list", "httpMethod": "GET", "path": "series/@me/recent", "response": {"$ref": "SeriesList"}}}}', true));
927 $this->my = new MyServiceResource($this, $this->serviceName, 'my', json_decode('{}', true));
928 $this->my_series = new MySeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "id": "moderator.my.series.list", "httpMethod": "GET", "path": "series/@me/mine", "response": {"$ref": "SeriesList"}}}}', true));
929 $this->submissions = new SubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "topicId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Submission"}, "id": "moderator.submissions.insert", "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions", "response": {"$ref": "Submission"}}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "seriesId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}, "includeVotes": {"type": "boolean", "location": "query"}, "submissionId": {"format": "uint32", "required": true, "type": "integer", "location": "path"}}, "id": "moderator.submissions.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}", "response": {"$ref": "Submission"}}}}', true));
930 }
931 }
932
933 class ModeratorTopicsResourcePartial extends apiModel {
934 protected $__idType = 'ModeratorTopicsResourcePartialId';
935 protected $__idDataType = '';
936 public $id;
937 public function setId(ModeratorTopicsResourcePartialId $id) {
938 $this->id = $id;
939 }
940 public function getId() {
941 return $this->id;
942 }
943 }
944
945 class ModeratorTopicsResourcePartialId extends apiModel {
946 public $seriesId;
947 public $topicId;
948 public function setSeriesId($seriesId) {
949 $this->seriesId = $seriesId;
950 }
951 public function getSeriesId() {
952 return $this->seriesId;
953 }
954 public function setTopicId($topicId) {
955 $this->topicId = $topicId;
956 }
957 public function getTopicId() {
958 return $this->topicId;
959 }
960 }
961
962 class ModeratorVotesResourcePartial extends apiModel {
963 public $vote;
964 public $flag;
965 public function setVote($vote) {
966 $this->vote = $vote;
967 }
968 public function getVote() {
969 return $this->vote;
970 }
971 public function setFlag($flag) {
972 $this->flag = $flag;
973 }
974 public function getFlag() {
975 return $this->flag;
976 }
977 }
978
979 class Profile extends apiModel {
980 public $kind;
981 protected $__attributionType = 'ProfileAttribution';
982 protected $__attributionDataType = '';
983 public $attribution;
984 protected $__idType = 'ProfileId';
985 protected $__idDataType = '';
986 public $id;
987 public function setKind($kind) {
988 $this->kind = $kind;
989 }
990 public function getKind() {
991 return $this->kind;
992 }
993 public function setAttribution(ProfileAttribution $attribution) {
994 $this->attribution = $attribution;
995 }
996 public function getAttribution() {
997 return $this->attribution;
998 }
999 public function setId(ProfileId $id) {
1000 $this->id = $id;
1001 }
1002 public function getId() {
1003 return $this->id;
1004 }
1005 }
1006
1007 class ProfileAttribution extends apiModel {
1008 protected $__geoType = 'ProfileAttributionGeo';
1009 protected $__geoDataType = '';
1010 public $geo;
1011 public $displayName;
1012 public $location;
1013 public $avatarUrl;
1014 public function setGeo(ProfileAttributionGeo $geo) {
1015 $this->geo = $geo;
1016 }
1017 public function getGeo() {
1018 return $this->geo;
1019 }
1020 public function setDisplayName($displayName) {
1021 $this->displayName = $displayName;
1022 }
1023 public function getDisplayName() {
1024 return $this->displayName;
1025 }
1026 public function setLocation($location) {
1027 $this->location = $location;
1028 }
1029 public function getLocation() {
1030 return $this->location;
1031 }
1032 public function setAvatarUrl($avatarUrl) {
1033 $this->avatarUrl = $avatarUrl;
1034 }
1035 public function getAvatarUrl() {
1036 return $this->avatarUrl;
1037 }
1038 }
1039
1040 class ProfileAttributionGeo extends apiModel {
1041 public $latitude;
1042 public $location;
1043 public $longitude;
1044 public function setLatitude($latitude) {
1045 $this->latitude = $latitude;
1046 }
1047 public function getLatitude() {
1048 return $this->latitude;
1049 }
1050 public function setLocation($location) {
1051 $this->location = $location;
1052 }
1053 public function getLocation() {
1054 return $this->location;
1055 }
1056 public function setLongitude($longitude) {
1057 $this->longitude = $longitude;
1058 }
1059 public function getLongitude() {
1060 return $this->longitude;
1061 }
1062 }
1063
1064 class ProfileId extends apiModel {
1065 public $user;
1066 public function setUser($user) {
1067 $this->user = $user;
1068 }
1069 public function getUser() {
1070 return $this->user;
1071 }
1072 }
1073
1074 class Series extends apiModel {
1075 public $kind;
1076 public $description;
1077 protected $__rulesType = 'SeriesRules';
1078 protected $__rulesDataType = '';
1079 public $rules;
1080 public $unauthVotingAllowed;
1081 public $videoSubmissionAllowed;
1082 public $name;
1083 public $numTopics;
1084 public $anonymousSubmissionAllowed;
1085 public $unauthSubmissionAllowed;
1086 protected $__idType = 'SeriesId';
1087 protected $__idDataType = '';
1088 public $id;
1089 protected $__countersType = 'SeriesCounters';
1090 protected $__countersDataType = '';
1091 public $counters;
1092 public function setKind($kind) {
1093 $this->kind = $kind;
1094 }
1095 public function getKind() {
1096 return $this->kind;
1097 }
1098 public function setDescription($description) {
1099 $this->description = $description;
1100 }
1101 public function getDescription() {
1102 return $this->description;
1103 }
1104 public function setRules(SeriesRules $rules) {
1105 $this->rules = $rules;
1106 }
1107 public function getRules() {
1108 return $this->rules;
1109 }
1110 public function setUnauthVotingAllowed($unauthVotingAllowed) {
1111 $this->unauthVotingAllowed = $unauthVotingAllowed;
1112 }
1113 public function getUnauthVotingAllowed() {
1114 return $this->unauthVotingAllowed;
1115 }
1116 public function setVideoSubmissionAllowed($videoSubmissionAllowed) {
1117 $this->videoSubmissionAllowed = $videoSubmissionAllowed;
1118 }
1119 public function getVideoSubmissionAllowed() {
1120 return $this->videoSubmissionAllowed;
1121 }
1122 public function setName($name) {
1123 $this->name = $name;
1124 }
1125 public function getName() {
1126 return $this->name;
1127 }
1128 public function setNumTopics($numTopics) {
1129 $this->numTopics = $numTopics;
1130 }
1131 public function getNumTopics() {
1132 return $this->numTopics;
1133 }
1134 public function setAnonymousSubmissionAllowed($anonymousSubmissionAllowed) {
1135 $this->anonymousSubmissionAllowed = $anonymousSubmissionAllowed;
1136 }
1137 public function getAnonymousSubmissionAllowed() {
1138 return $this->anonymousSubmissionAllowed;
1139 }
1140 public function setUnauthSubmissionAllowed($unauthSubmissionAllowed) {
1141 $this->unauthSubmissionAllowed = $unauthSubmissionAllowed;
1142 }
1143 public function getUnauthSubmissionAllowed() {
1144 return $this->unauthSubmissionAllowed;
1145 }
1146 public function setId(SeriesId $id) {
1147 $this->id = $id;
1148 }
1149 public function getId() {
1150 return $this->id;
1151 }
1152 public function setCounters(SeriesCounters $counters) {
1153 $this->counters = $counters;
1154 }
1155 public function getCounters() {
1156 return $this->counters;
1157 }
1158 }
1159
1160 class SeriesCounters extends apiModel {
1161 public $users;
1162 public $noneVotes;
1163 public $videoSubmissions;
1164 public $minusVotes;
1165 public $anonymousSubmissions;
1166 public $submissions;
1167 public $plusVotes;
1168 public function setUsers($users) {
1169 $this->users = $users;
1170 }
1171 public function getUsers() {
1172 return $this->users;
1173 }
1174 public function setNoneVotes($noneVotes) {
1175 $this->noneVotes = $noneVotes;
1176 }
1177 public function getNoneVotes() {
1178 return $this->noneVotes;
1179 }
1180 public function setVideoSubmissions($videoSubmissions) {
1181 $this->videoSubmissions = $videoSubmissions;
1182 }
1183 public function getVideoSubmissions() {
1184 return $this->videoSubmissions;
1185 }
1186 public function setMinusVotes($minusVotes) {
1187 $this->minusVotes = $minusVotes;
1188 }
1189 public function getMinusVotes() {
1190 return $this->minusVotes;
1191 }
1192 public function setAnonymousSubmissions($anonymousSubmissions) {
1193 $this->anonymousSubmissions = $anonymousSubmissions;
1194 }
1195 public function getAnonymousSubmissions() {
1196 return $this->anonymousSubmissions;
1197 }
1198 public function setSubmissions($submissions) {
1199 $this->submissions = $submissions;
1200 }
1201 public function getSubmissions() {
1202 return $this->submissions;
1203 }
1204 public function setPlusVotes($plusVotes) {
1205 $this->plusVotes = $plusVotes;
1206 }
1207 public function getPlusVotes() {
1208 return $this->plusVotes;
1209 }
1210 }
1211
1212 class SeriesId extends apiModel {
1213 public $seriesId;
1214 public function setSeriesId($seriesId) {
1215 $this->seriesId = $seriesId;
1216 }
1217 public function getSeriesId() {
1218 return $this->seriesId;
1219 }
1220 }
1221
1222 class SeriesList extends apiModel {
1223 protected $__itemsType = 'Series';
1224 protected $__itemsDataType = 'array';
1225 public $items;
1226 public $kind;
1227 public function setItems(/* array(Series) */ $items) {
1228 $this->assertIsArray($items, 'Series', __METHOD__);
1229 $this->items = $items;
1230 }
1231 public function getItems() {
1232 return $this->items;
1233 }
1234 public function setKind($kind) {
1235 $this->kind = $kind;
1236 }
1237 public function getKind() {
1238 return $this->kind;
1239 }
1240 }
1241
1242 class SeriesRules extends apiModel {
1243 protected $__votesType = 'SeriesRulesVotes';
1244 protected $__votesDataType = '';
1245 public $votes;
1246 protected $__submissionsType = 'SeriesRulesSubmissions';
1247 protected $__submissionsDataType = '';
1248 public $submissions;
1249 public function setVotes(SeriesRulesVotes $votes) {
1250 $this->votes = $votes;
1251 }
1252 public function getVotes() {
1253 return $this->votes;
1254 }
1255 public function setSubmissions(SeriesRulesSubmissions $submissions) {
1256 $this->submissions = $submissions;
1257 }
1258 public function getSubmissions() {
1259 return $this->submissions;
1260 }
1261 }
1262
1263 class SeriesRulesSubmissions extends apiModel {
1264 public $close;
1265 public $open;
1266 public function setClose($close) {
1267 $this->close = $close;
1268 }
1269 public function getClose() {
1270 return $this->close;
1271 }
1272 public function setOpen($open) {
1273 $this->open = $open;
1274 }
1275 public function getOpen() {
1276 return $this->open;
1277 }
1278 }
1279
1280 class SeriesRulesVotes extends apiModel {
1281 public $close;
1282 public $open;
1283 public function setClose($close) {
1284 $this->close = $close;
1285 }
1286 public function getClose() {
1287 return $this->close;
1288 }
1289 public function setOpen($open) {
1290 $this->open = $open;
1291 }
1292 public function getOpen() {
1293 return $this->open;
1294 }
1295 }
1296
1297 class Submission extends apiModel {
1298 public $kind;
1299 protected $__attributionType = 'SubmissionAttribution';
1300 protected $__attributionDataType = '';
1301 public $attribution;
1302 public $created;
1303 public $text;
1304 protected $__topicsType = 'ModeratorTopicsResourcePartial';
1305 protected $__topicsDataType = 'array';
1306 public $topics;
1307 public $author;
1308 protected $__translationsType = 'SubmissionTranslations';
1309 protected $__translationsDataType = 'array';
1310 public $translations;
1311 protected $__parentSubmissionIdType = 'SubmissionParentSubmissionId';
1312 protected $__parentSubmissionIdDataType = '';
1313 public $parentSubmissionId;
1314 protected $__voteType = 'ModeratorVotesResourcePartial';
1315 protected $__voteDataType = '';
1316 public $vote;
1317 public $attachmentUrl;
1318 protected $__geoType = 'SubmissionGeo';
1319 protected $__geoDataType = '';
1320 public $geo;
1321 protected $__idType = 'SubmissionId';
1322 protected $__idDataType = '';
1323 public $id;
1324 protected $__countersType = 'SubmissionCounters';
1325 protected $__countersDataType = '';
1326 public $counters;
1327 public function setKind($kind) {
1328 $this->kind = $kind;
1329 }
1330 public function getKind() {
1331 return $this->kind;
1332 }
1333 public function setAttribution(SubmissionAttribution $attribution) {
1334 $this->attribution = $attribution;
1335 }
1336 public function getAttribution() {
1337 return $this->attribution;
1338 }
1339 public function setCreated($created) {
1340 $this->created = $created;
1341 }
1342 public function getCreated() {
1343 return $this->created;
1344 }
1345 public function setText($text) {
1346 $this->text = $text;
1347 }
1348 public function getText() {
1349 return $this->text;
1350 }
1351 public function setTopics(/* array(ModeratorTopicsResourcePartial) */ $topics) {
1352 $this->assertIsArray($topics, 'ModeratorTopicsResourcePartial', __METHOD__);
1353 $this->topics = $topics;
1354 }
1355 public function getTopics() {
1356 return $this->topics;
1357 }
1358 public function setAuthor($author) {
1359 $this->author = $author;
1360 }
1361 public function getAuthor() {
1362 return $this->author;
1363 }
1364 public function setTranslations(/* array(SubmissionTranslations) */ $translations) {
1365 $this->assertIsArray($translations, 'SubmissionTranslations', __METHOD__);
1366 $this->translations = $translations;
1367 }
1368 public function getTranslations() {
1369 return $this->translations;
1370 }
1371 public function setParentSubmissionId(SubmissionParentSubmissionId $parentSubmissionId) {
1372 $this->parentSubmissionId = $parentSubmissionId;
1373 }
1374 public function getParentSubmissionId() {
1375 return $this->parentSubmissionId;
1376 }
1377 public function setVote(ModeratorVotesResourcePartial $vote) {
1378 $this->vote = $vote;
1379 }
1380 public function getVote() {
1381 return $this->vote;
1382 }
1383 public function setAttachmentUrl($attachmentUrl) {
1384 $this->attachmentUrl = $attachmentUrl;
1385 }
1386 public function getAttachmentUrl() {
1387 return $this->attachmentUrl;
1388 }
1389 public function setGeo(SubmissionGeo $geo) {
1390 $this->geo = $geo;
1391 }
1392 public function getGeo() {
1393 return $this->geo;
1394 }
1395 public function setId(SubmissionId $id) {
1396 $this->id = $id;
1397 }
1398 public function getId() {
1399 return $this->id;
1400 }
1401 public function setCounters(SubmissionCounters $counters) {
1402 $this->counters = $counters;
1403 }
1404 public function getCounters() {
1405 return $this->counters;
1406 }
1407 }
1408
1409 class SubmissionAttribution extends apiModel {
1410 public $displayName;
1411 public $location;
1412 public $avatarUrl;
1413 public function setDisplayName($displayName) {
1414 $this->displayName = $displayName;
1415 }
1416 public function getDisplayName() {
1417 return $this->displayName;
1418 }
1419 public function setLocation($location) {
1420 $this->location = $location;
1421 }
1422 public function getLocation() {
1423 return $this->location;
1424 }
1425 public function setAvatarUrl($avatarUrl) {
1426 $this->avatarUrl = $avatarUrl;
1427 }
1428 public function getAvatarUrl() {
1429 return $this->avatarUrl;
1430 }
1431 }
1432
1433 class SubmissionCounters extends apiModel {
1434 public $noneVotes;
1435 public $minusVotes;
1436 public $plusVotes;
1437 public function setNoneVotes($noneVotes) {
1438 $this->noneVotes = $noneVotes;
1439 }
1440 public function getNoneVotes() {
1441 return $this->noneVotes;
1442 }
1443 public function setMinusVotes($minusVotes) {
1444 $this->minusVotes = $minusVotes;
1445 }
1446 public function getMinusVotes() {
1447 return $this->minusVotes;
1448 }
1449 public function setPlusVotes($plusVotes) {
1450 $this->plusVotes = $plusVotes;
1451 }
1452 public function getPlusVotes() {
1453 return $this->plusVotes;
1454 }
1455 }
1456
1457 class SubmissionGeo extends apiModel {
1458 public $latitude;
1459 public $location;
1460 public $longitude;
1461 public function setLatitude($latitude) {
1462 $this->latitude = $latitude;
1463 }
1464 public function getLatitude() {
1465 return $this->latitude;
1466 }
1467 public function setLocation($location) {
1468 $this->location = $location;
1469 }
1470 public function getLocation() {
1471 return $this->location;
1472 }
1473 public function setLongitude($longitude) {
1474 $this->longitude = $longitude;
1475 }
1476 public function getLongitude() {
1477 return $this->longitude;
1478 }
1479 }
1480
1481 class SubmissionId extends apiModel {
1482 public $seriesId;
1483 public $submissionId;
1484 public function setSeriesId($seriesId) {
1485 $this->seriesId = $seriesId;
1486 }
1487 public function getSeriesId() {
1488 return $this->seriesId;
1489 }
1490 public function setSubmissionId($submissionId) {
1491 $this->submissionId = $submissionId;
1492 }
1493 public function getSubmissionId() {
1494 return $this->submissionId;
1495 }
1496 }
1497
1498 class SubmissionList extends apiModel {
1499 protected $__itemsType = 'Submission';
1500 protected $__itemsDataType = 'array';
1501 public $items;
1502 public $kind;
1503 public function setItems(/* array(Submission) */ $items) {
1504 $this->assertIsArray($items, 'Submission', __METHOD__);
1505 $this->items = $items;
1506 }
1507 public function getItems() {
1508 return $this->items;
1509 }
1510 public function setKind($kind) {
1511 $this->kind = $kind;
1512 }
1513 public function getKind() {
1514 return $this->kind;
1515 }
1516 }
1517
1518 class SubmissionParentSubmissionId extends apiModel {
1519 public $seriesId;
1520 public $submissionId;
1521 public function setSeriesId($seriesId) {
1522 $this->seriesId = $seriesId;
1523 }
1524 public function getSeriesId() {
1525 return $this->seriesId;
1526 }
1527 public function setSubmissionId($submissionId) {
1528 $this->submissionId = $submissionId;
1529 }
1530 public function getSubmissionId() {
1531 return $this->submissionId;
1532 }
1533 }
1534
1535 class SubmissionTranslations extends apiModel {
1536 public $lang;
1537 public $text;
1538 public function setLang($lang) {
1539 $this->lang = $lang;
1540 }
1541 public function getLang() {
1542 return $this->lang;
1543 }
1544 public function setText($text) {
1545 $this->text = $text;
1546 }
1547 public function getText() {
1548 return $this->text;
1549 }
1550 }
1551
1552 class Tag extends apiModel {
1553 public $text;
1554 public $kind;
1555 protected $__idType = 'TagId';
1556 protected $__idDataType = '';
1557 public $id;
1558 public function setText($text) {
1559 $this->text = $text;
1560 }
1561 public function getText() {
1562 return $this->text;
1563 }
1564 public function setKind($kind) {
1565 $this->kind = $kind;
1566 }
1567 public function getKind() {
1568 return $this->kind;
1569 }
1570 public function setId(TagId $id) {
1571 $this->id = $id;
1572 }
1573 public function getId() {
1574 return $this->id;
1575 }
1576 }
1577
1578 class TagId extends apiModel {
1579 public $seriesId;
1580 public $tagId;
1581 public $submissionId;
1582 public function setSeriesId($seriesId) {
1583 $this->seriesId = $seriesId;
1584 }
1585 public function getSeriesId() {
1586 return $this->seriesId;
1587 }
1588 public function setTagId($tagId) {
1589 $this->tagId = $tagId;
1590 }
1591 public function getTagId() {
1592 return $this->tagId;
1593 }
1594 public function setSubmissionId($submissionId) {
1595 $this->submissionId = $submissionId;
1596 }
1597 public function getSubmissionId() {
1598 return $this->submissionId;
1599 }
1600 }
1601
1602 class TagList extends apiModel {
1603 protected $__itemsType = 'Tag';
1604 protected $__itemsDataType = 'array';
1605 public $items;
1606 public $kind;
1607 public function setItems(/* array(Tag) */ $items) {
1608 $this->assertIsArray($items, 'Tag', __METHOD__);
1609 $this->items = $items;
1610 }
1611 public function getItems() {
1612 return $this->items;
1613 }
1614 public function setKind($kind) {
1615 $this->kind = $kind;
1616 }
1617 public function getKind() {
1618 return $this->kind;
1619 }
1620 }
1621
1622 class Topic extends apiModel {
1623 public $kind;
1624 public $description;
1625 protected $__rulesType = 'TopicRules';
1626 protected $__rulesDataType = '';
1627 public $rules;
1628 protected $__featuredSubmissionType = 'Submission';
1629 protected $__featuredSubmissionDataType = '';
1630 public $featuredSubmission;
1631 public $presenter;
1632 protected $__countersType = 'TopicCounters';
1633 protected $__countersDataType = '';
1634 public $counters;
1635 protected $__idType = 'TopicId';
1636 protected $__idDataType = '';
1637 public $id;
1638 public $name;
1639 public function setKind($kind) {
1640 $this->kind = $kind;
1641 }
1642 public function getKind() {
1643 return $this->kind;
1644 }
1645 public function setDescription($description) {
1646 $this->description = $description;
1647 }
1648 public function getDescription() {
1649 return $this->description;
1650 }
1651 public function setRules(TopicRules $rules) {
1652 $this->rules = $rules;
1653 }
1654 public function getRules() {
1655 return $this->rules;
1656 }
1657 public function setFeaturedSubmission(Submission $featuredSubmission) {
1658 $this->featuredSubmission = $featuredSubmission;
1659 }
1660 public function getFeaturedSubmission() {
1661 return $this->featuredSubmission;
1662 }
1663 public function setPresenter($presenter) {
1664 $this->presenter = $presenter;
1665 }
1666 public function getPresenter() {
1667 return $this->presenter;
1668 }
1669 public function setCounters(TopicCounters $counters) {
1670 $this->counters = $counters;
1671 }
1672 public function getCounters() {
1673 return $this->counters;
1674 }
1675 public function setId(TopicId $id) {
1676 $this->id = $id;
1677 }
1678 public function getId() {
1679 return $this->id;
1680 }
1681 public function setName($name) {
1682 $this->name = $name;
1683 }
1684 public function getName() {
1685 return $this->name;
1686 }
1687 }
1688
1689 class TopicCounters extends apiModel {
1690 public $users;
1691 public $noneVotes;
1692 public $videoSubmissions;
1693 public $minusVotes;
1694 public $submissions;
1695 public $plusVotes;
1696 public function setUsers($users) {
1697 $this->users = $users;
1698 }
1699 public function getUsers() {
1700 return $this->users;
1701 }
1702 public function setNoneVotes($noneVotes) {
1703 $this->noneVotes = $noneVotes;
1704 }
1705 public function getNoneVotes() {
1706 return $this->noneVotes;
1707 }
1708 public function setVideoSubmissions($videoSubmissions) {
1709 $this->videoSubmissions = $videoSubmissions;
1710 }
1711 public function getVideoSubmissions() {
1712 return $this->videoSubmissions;
1713 }
1714 public function setMinusVotes($minusVotes) {
1715 $this->minusVotes = $minusVotes;
1716 }
1717 public function getMinusVotes() {
1718 return $this->minusVotes;
1719 }
1720 public function setSubmissions($submissions) {
1721 $this->submissions = $submissions;
1722 }
1723 public function getSubmissions() {
1724 return $this->submissions;
1725 }
1726 public function setPlusVotes($plusVotes) {
1727 $this->plusVotes = $plusVotes;
1728 }
1729 public function getPlusVotes() {
1730 return $this->plusVotes;
1731 }
1732 }
1733
1734 class TopicId extends apiModel {
1735 public $seriesId;
1736 public $topicId;
1737 public function setSeriesId($seriesId) {
1738 $this->seriesId = $seriesId;
1739 }
1740 public function getSeriesId() {
1741 return $this->seriesId;
1742 }
1743 public function setTopicId($topicId) {
1744 $this->topicId = $topicId;
1745 }
1746 public function getTopicId() {
1747 return $this->topicId;
1748 }
1749 }
1750
1751 class TopicList extends apiModel {
1752 protected $__itemsType = 'Topic';
1753 protected $__itemsDataType = 'array';
1754 public $items;
1755 public $kind;
1756 public function setItems(/* array(Topic) */ $items) {
1757 $this->assertIsArray($items, 'Topic', __METHOD__);
1758 $this->items = $items;
1759 }
1760 public function getItems() {
1761 return $this->items;
1762 }
1763 public function setKind($kind) {
1764 $this->kind = $kind;
1765 }
1766 public function getKind() {
1767 return $this->kind;
1768 }
1769 }
1770
1771 class TopicRules extends apiModel {
1772 protected $__votesType = 'TopicRulesVotes';
1773 protected $__votesDataType = '';
1774 public $votes;
1775 protected $__submissionsType = 'TopicRulesSubmissions';
1776 protected $__submissionsDataType = '';
1777 public $submissions;
1778 public function setVotes(TopicRulesVotes $votes) {
1779 $this->votes = $votes;
1780 }
1781 public function getVotes() {
1782 return $this->votes;
1783 }
1784 public function setSubmissions(TopicRulesSubmissions $submissions) {
1785 $this->submissions = $submissions;
1786 }
1787 public function getSubmissions() {
1788 return $this->submissions;
1789 }
1790 }
1791
1792 class TopicRulesSubmissions extends apiModel {
1793 public $close;
1794 public $open;
1795 public function setClose($close) {
1796 $this->close = $close;
1797 }
1798 public function getClose() {
1799 return $this->close;
1800 }
1801 public function setOpen($open) {
1802 $this->open = $open;
1803 }
1804 public function getOpen() {
1805 return $this->open;
1806 }
1807 }
1808
1809 class TopicRulesVotes extends apiModel {
1810 public $close;
1811 public $open;
1812 public function setClose($close) {
1813 $this->close = $close;
1814 }
1815 public function getClose() {
1816 return $this->close;
1817 }
1818 public function setOpen($open) {
1819 $this->open = $open;
1820 }
1821 public function getOpen() {
1822 return $this->open;
1823 }
1824 }
1825
1826 class Vote extends apiModel {
1827 public $vote;
1828 public $flag;
1829 protected $__idType = 'VoteId';
1830 protected $__idDataType = '';
1831 public $id;
1832 public $kind;
1833 public function setVote($vote) {
1834 $this->vote = $vote;
1835 }
1836 public function getVote() {
1837 return $this->vote;
1838 }
1839 public function setFlag($flag) {
1840 $this->flag = $flag;
1841 }
1842 public function getFlag() {
1843 return $this->flag;
1844 }
1845 public function setId(VoteId $id) {
1846 $this->id = $id;
1847 }
1848 public function getId() {
1849 return $this->id;
1850 }
1851 public function setKind($kind) {
1852 $this->kind = $kind;
1853 }
1854 public function getKind() {
1855 return $this->kind;
1856 }
1857 }
1858
1859 class VoteId extends apiModel {
1860 public $seriesId;
1861 public $submissionId;
1862 public function setSeriesId($seriesId) {
1863 $this->seriesId = $seriesId;
1864 }
1865 public function getSeriesId() {
1866 return $this->seriesId;
1867 }
1868 public function setSubmissionId($submissionId) {
1869 $this->submissionId = $submissionId;
1870 }
1871 public function getSubmissionId() {
1872 return $this->submissionId;
1873 }
1874 }
1875
1876 class VoteList extends apiModel {
1877 protected $__itemsType = 'Vote';
1878 protected $__itemsDataType = 'array';
1879 public $items;
1880 public $kind;
1881 public function setItems(/* array(Vote) */ $items) {
1882 $this->assertIsArray($items, 'Vote', __METHOD__);
1883 $this->items = $items;
1884 }
1885 public function getItems() {
1886 return $this->items;
1887 }
1888 public function setKind($kind) {
1889 $this->kind = $kind;
1890 }
1891 public function getKind() {
1892 return $this->kind;
1893 }
1894 }
1895