OLD | NEW |
1 library googleapis.gamesManagement.v1management; | 1 library googleapis.gamesManagement.v1management; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 "POST", | 197 "POST", |
198 body: _body, | 198 body: _body, |
199 queryParams: _queryParams, | 199 queryParams: _queryParams, |
200 uploadOptions: _uploadOptions, | 200 uploadOptions: _uploadOptions, |
201 uploadMedia: _uploadMedia, | 201 uploadMedia: _uploadMedia, |
202 downloadOptions: _downloadOptions); | 202 downloadOptions: _downloadOptions); |
203 return _response.then((data) => null); | 203 return _response.then((data) => null); |
204 } | 204 } |
205 | 205 |
206 /** | 206 /** |
207 * Resets the achievement with the given IDs for all players. This method is | 207 * Resets achievements with the given IDs for all players. This method is only |
208 * only available to user accounts for your developer console. Only draft | 208 * available to user accounts for your developer console. Only draft |
209 * achievements may be reset. | 209 * achievements may be reset. |
210 * | 210 * |
211 * [request] - The metadata request object. | 211 * [request] - The metadata request object. |
212 * | 212 * |
213 * Request parameters: | 213 * Request parameters: |
214 * | 214 * |
215 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 215 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
216 * error. | 216 * error. |
217 * | 217 * |
218 * If the used [http.Client] completes with an error when making a REST call, | 218 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 ApplicationsResourceApi(common_internal.ApiRequester client) : | 254 ApplicationsResourceApi(common_internal.ApiRequester client) : |
255 _requester = client; | 255 _requester = client; |
256 | 256 |
257 /** | 257 /** |
258 * Get the list of players hidden from the given application. This method is | 258 * Get the list of players hidden from the given application. This method is |
259 * only available to user accounts for your developer console. | 259 * only available to user accounts for your developer console. |
260 * | 260 * |
261 * Request parameters: | 261 * Request parameters: |
262 * | 262 * |
263 * [applicationId] - The application being requested. | 263 * [applicationId] - The application ID from the Google Play developer |
| 264 * console. |
264 * | 265 * |
265 * [maxResults] - The maximum number of player resources to return in the | 266 * [maxResults] - The maximum number of player resources to return in the |
266 * response, used for paging. For any response, the actual number of player | 267 * response, used for paging. For any response, the actual number of player |
267 * resources returned may be less than the specified maxResults. | 268 * resources returned may be less than the specified maxResults. |
268 * Value must be between "1" and "15". | 269 * Value must be between "1" and "15". |
269 * | 270 * |
270 * [pageToken] - The token returned by the previous request. | 271 * [pageToken] - The token returned by the previous request. |
271 * | 272 * |
272 * Completes with a [HiddenPlayerList]. | 273 * Completes with a [HiddenPlayerList]. |
273 * | 274 * |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 313 |
313 | 314 |
314 /** Not documented yet. */ | 315 /** Not documented yet. */ |
315 class EventsResourceApi { | 316 class EventsResourceApi { |
316 final common_internal.ApiRequester _requester; | 317 final common_internal.ApiRequester _requester; |
317 | 318 |
318 EventsResourceApi(common_internal.ApiRequester client) : | 319 EventsResourceApi(common_internal.ApiRequester client) : |
319 _requester = client; | 320 _requester = client; |
320 | 321 |
321 /** | 322 /** |
322 * Reset all player progress on the event for the currently authenticated | 323 * Resets all player progress on the event with the given ID for the currently |
323 * player. This method is only accessible to whitelisted tester accounts for | 324 * authenticated player. This method is only accessible to whitelisted tester |
324 * your application. All resources that use the event will also be reset. | 325 * accounts for your application. All quests for this player that use the |
| 326 * event will also be reset. |
325 * | 327 * |
326 * Request parameters: | 328 * Request parameters: |
327 * | 329 * |
328 * [eventId] - The ID of the event. | 330 * [eventId] - The ID of the event. |
329 * | 331 * |
330 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 332 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
331 * error. | 333 * error. |
332 * | 334 * |
333 * If the used [http.Client] completes with an error when making a REST call, | 335 * If the used [http.Client] completes with an error when making a REST call, |
334 * this method will complete with the same error. | 336 * this method will complete with the same error. |
(...skipping 18 matching lines...) Expand all Loading... |
353 "POST", | 355 "POST", |
354 body: _body, | 356 body: _body, |
355 queryParams: _queryParams, | 357 queryParams: _queryParams, |
356 uploadOptions: _uploadOptions, | 358 uploadOptions: _uploadOptions, |
357 uploadMedia: _uploadMedia, | 359 uploadMedia: _uploadMedia, |
358 downloadOptions: _downloadOptions); | 360 downloadOptions: _downloadOptions); |
359 return _response.then((data) => null); | 361 return _response.then((data) => null); |
360 } | 362 } |
361 | 363 |
362 /** | 364 /** |
363 * Reset all player progress on all unpublished events for the currently | 365 * Resets all player progress on all events for the currently authenticated |
364 * authenticated player. This method is only accessible to whitelisted tester | 366 * player. This method is only accessible to whitelisted tester accounts for |
365 * accounts for your application. All resources that use the events will also | 367 * your application. All quests for this player will also be reset. |
366 * be reset. | |
367 * | 368 * |
368 * Request parameters: | 369 * Request parameters: |
369 * | 370 * |
370 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 371 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
371 * error. | 372 * error. |
372 * | 373 * |
373 * If the used [http.Client] completes with an error when making a REST call, | 374 * If the used [http.Client] completes with an error when making a REST call, |
374 * this method will complete with the same error. | 375 * this method will complete with the same error. |
375 */ | 376 */ |
376 async.Future resetAll() { | 377 async.Future resetAll() { |
(...skipping 13 matching lines...) Expand all Loading... |
390 "POST", | 391 "POST", |
391 body: _body, | 392 body: _body, |
392 queryParams: _queryParams, | 393 queryParams: _queryParams, |
393 uploadOptions: _uploadOptions, | 394 uploadOptions: _uploadOptions, |
394 uploadMedia: _uploadMedia, | 395 uploadMedia: _uploadMedia, |
395 downloadOptions: _downloadOptions); | 396 downloadOptions: _downloadOptions); |
396 return _response.then((data) => null); | 397 return _response.then((data) => null); |
397 } | 398 } |
398 | 399 |
399 /** | 400 /** |
400 * Reset all player progress on the event for all players. This method is only | 401 * Resets all draft events for all players. This method is only available to |
401 * available to user accounts for your developer console. Only draft events | 402 * user accounts for your developer console. All quests that use any of these |
402 * can be reset. All resources that use the event will also be reset. | 403 * events will also be reset. |
403 * | 404 * |
404 * Request parameters: | 405 * Request parameters: |
405 * | 406 * |
| 407 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 408 * error. |
| 409 * |
| 410 * If the used [http.Client] completes with an error when making a REST call, |
| 411 * this method will complete with the same error. |
| 412 */ |
| 413 async.Future resetAllForAllPlayers() { |
| 414 var _url = null; |
| 415 var _queryParams = new core.Map(); |
| 416 var _uploadMedia = null; |
| 417 var _uploadOptions = null; |
| 418 var _downloadOptions = common.DownloadOptions.Metadata; |
| 419 var _body = null; |
| 420 |
| 421 |
| 422 _downloadOptions = null; |
| 423 |
| 424 _url = 'events/resetAllForAllPlayers'; |
| 425 |
| 426 var _response = _requester.request(_url, |
| 427 "POST", |
| 428 body: _body, |
| 429 queryParams: _queryParams, |
| 430 uploadOptions: _uploadOptions, |
| 431 uploadMedia: _uploadMedia, |
| 432 downloadOptions: _downloadOptions); |
| 433 return _response.then((data) => null); |
| 434 } |
| 435 |
| 436 /** |
| 437 * Resets the event with the given ID for all players. This method is only |
| 438 * available to user accounts for your developer console. Only draft events |
| 439 * can be reset. All quests that use the event will also be reset. |
| 440 * |
| 441 * Request parameters: |
| 442 * |
406 * [eventId] - The ID of the event. | 443 * [eventId] - The ID of the event. |
407 * | 444 * |
408 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 445 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
409 * error. | 446 * error. |
410 * | 447 * |
411 * If the used [http.Client] completes with an error when making a REST call, | 448 * If the used [http.Client] completes with an error when making a REST call, |
412 * this method will complete with the same error. | 449 * this method will complete with the same error. |
413 */ | 450 */ |
414 async.Future resetForAllPlayers(core.String eventId) { | 451 async.Future resetForAllPlayers(core.String eventId) { |
415 var _url = null; | 452 var _url = null; |
(...skipping 14 matching lines...) Expand all Loading... |
430 var _response = _requester.request(_url, | 467 var _response = _requester.request(_url, |
431 "POST", | 468 "POST", |
432 body: _body, | 469 body: _body, |
433 queryParams: _queryParams, | 470 queryParams: _queryParams, |
434 uploadOptions: _uploadOptions, | 471 uploadOptions: _uploadOptions, |
435 uploadMedia: _uploadMedia, | 472 uploadMedia: _uploadMedia, |
436 downloadOptions: _downloadOptions); | 473 downloadOptions: _downloadOptions); |
437 return _response.then((data) => null); | 474 return _response.then((data) => null); |
438 } | 475 } |
439 | 476 |
| 477 /** |
| 478 * Resets events with the given IDs for all players. This method is only |
| 479 * available to user accounts for your developer console. Only draft events |
| 480 * may be reset. All quests that use any of the events will also be reset. |
| 481 * |
| 482 * [request] - The metadata request object. |
| 483 * |
| 484 * Request parameters: |
| 485 * |
| 486 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 487 * error. |
| 488 * |
| 489 * If the used [http.Client] completes with an error when making a REST call, |
| 490 * this method will complete with the same error. |
| 491 */ |
| 492 async.Future resetMultipleForAllPlayers(EventsResetMultipleForAllRequest reque
st) { |
| 493 var _url = null; |
| 494 var _queryParams = new core.Map(); |
| 495 var _uploadMedia = null; |
| 496 var _uploadOptions = null; |
| 497 var _downloadOptions = common.DownloadOptions.Metadata; |
| 498 var _body = null; |
| 499 |
| 500 if (request != null) { |
| 501 _body = convert.JSON.encode((request).toJson()); |
| 502 } |
| 503 |
| 504 _downloadOptions = null; |
| 505 |
| 506 _url = 'events/resetMultipleForAllPlayers'; |
| 507 |
| 508 var _response = _requester.request(_url, |
| 509 "POST", |
| 510 body: _body, |
| 511 queryParams: _queryParams, |
| 512 uploadOptions: _uploadOptions, |
| 513 uploadMedia: _uploadMedia, |
| 514 downloadOptions: _downloadOptions); |
| 515 return _response.then((data) => null); |
| 516 } |
| 517 |
440 } | 518 } |
441 | 519 |
442 | 520 |
443 /** Not documented yet. */ | 521 /** Not documented yet. */ |
444 class PlayersResourceApi { | 522 class PlayersResourceApi { |
445 final common_internal.ApiRequester _requester; | 523 final common_internal.ApiRequester _requester; |
446 | 524 |
447 PlayersResourceApi(common_internal.ApiRequester client) : | 525 PlayersResourceApi(common_internal.ApiRequester client) : |
448 _requester = client; | 526 _requester = client; |
449 | 527 |
450 /** | 528 /** |
451 * Hide the given player's leaderboard scores from the given application. This | 529 * Hide the given player's leaderboard scores from the given application. This |
452 * method is only available to user accounts for your developer console. | 530 * method is only available to user accounts for your developer console. |
453 * | 531 * |
454 * Request parameters: | 532 * Request parameters: |
455 * | 533 * |
456 * [applicationId] - The application being requested. | 534 * [applicationId] - The application ID from the Google Play developer |
| 535 * console. |
457 * | 536 * |
458 * [playerId] - A player ID. A value of me may be used in place of the | 537 * [playerId] - A player ID. A value of me may be used in place of the |
459 * authenticated player's ID. | 538 * authenticated player's ID. |
460 * | 539 * |
461 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 540 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
462 * error. | 541 * error. |
463 * | 542 * |
464 * If the used [http.Client] completes with an error when making a REST call, | 543 * If the used [http.Client] completes with an error when making a REST call, |
465 * this method will complete with the same error. | 544 * this method will complete with the same error. |
466 */ | 545 */ |
(...skipping 25 matching lines...) Expand all Loading... |
492 downloadOptions: _downloadOptions); | 571 downloadOptions: _downloadOptions); |
493 return _response.then((data) => null); | 572 return _response.then((data) => null); |
494 } | 573 } |
495 | 574 |
496 /** | 575 /** |
497 * Unhide the given player's leaderboard scores from the given application. | 576 * Unhide the given player's leaderboard scores from the given application. |
498 * This method is only available to user accounts for your developer console. | 577 * This method is only available to user accounts for your developer console. |
499 * | 578 * |
500 * Request parameters: | 579 * Request parameters: |
501 * | 580 * |
502 * [applicationId] - The application being requested. | 581 * [applicationId] - The application ID from the Google Play developer |
| 582 * console. |
503 * | 583 * |
504 * [playerId] - A player ID. A value of me may be used in place of the | 584 * [playerId] - A player ID. A value of me may be used in place of the |
505 * authenticated player's ID. | 585 * authenticated player's ID. |
506 * | 586 * |
507 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 587 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
508 * error. | 588 * error. |
509 * | 589 * |
510 * If the used [http.Client] completes with an error when making a REST call, | 590 * If the used [http.Client] completes with an error when making a REST call, |
511 * this method will complete with the same error. | 591 * this method will complete with the same error. |
512 */ | 592 */ |
(...skipping 30 matching lines...) Expand all Loading... |
543 | 623 |
544 | 624 |
545 /** Not documented yet. */ | 625 /** Not documented yet. */ |
546 class QuestsResourceApi { | 626 class QuestsResourceApi { |
547 final common_internal.ApiRequester _requester; | 627 final common_internal.ApiRequester _requester; |
548 | 628 |
549 QuestsResourceApi(common_internal.ApiRequester client) : | 629 QuestsResourceApi(common_internal.ApiRequester client) : |
550 _requester = client; | 630 _requester = client; |
551 | 631 |
552 /** | 632 /** |
553 * Reset all player progress on the quest for the currently authenticated | 633 * Resets all player progress on the quest with the given ID for the currently |
554 * player. This method is only accessible to whitelisted tester accounts for | 634 * authenticated player. This method is only accessible to whitelisted tester |
555 * your application. | 635 * accounts for your application. |
556 * | 636 * |
557 * Request parameters: | 637 * Request parameters: |
558 * | 638 * |
559 * [questId] - The ID of the quest. | 639 * [questId] - The ID of the quest. |
560 * | 640 * |
561 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 641 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
562 * error. | 642 * error. |
563 * | 643 * |
564 * If the used [http.Client] completes with an error when making a REST call, | 644 * If the used [http.Client] completes with an error when making a REST call, |
565 * this method will complete with the same error. | 645 * this method will complete with the same error. |
(...skipping 17 matching lines...) Expand all Loading... |
583 var _response = _requester.request(_url, | 663 var _response = _requester.request(_url, |
584 "POST", | 664 "POST", |
585 body: _body, | 665 body: _body, |
586 queryParams: _queryParams, | 666 queryParams: _queryParams, |
587 uploadOptions: _uploadOptions, | 667 uploadOptions: _uploadOptions, |
588 uploadMedia: _uploadMedia, | 668 uploadMedia: _uploadMedia, |
589 downloadOptions: _downloadOptions); | 669 downloadOptions: _downloadOptions); |
590 return _response.then((data) => null); | 670 return _response.then((data) => null); |
591 } | 671 } |
592 | 672 |
| 673 /** |
| 674 * Resets all player progress on all quests for the currently authenticated |
| 675 * player. This method is only accessible to whitelisted tester accounts for |
| 676 * your application. |
| 677 * |
| 678 * Request parameters: |
| 679 * |
| 680 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 681 * error. |
| 682 * |
| 683 * If the used [http.Client] completes with an error when making a REST call, |
| 684 * this method will complete with the same error. |
| 685 */ |
| 686 async.Future resetAll() { |
| 687 var _url = null; |
| 688 var _queryParams = new core.Map(); |
| 689 var _uploadMedia = null; |
| 690 var _uploadOptions = null; |
| 691 var _downloadOptions = common.DownloadOptions.Metadata; |
| 692 var _body = null; |
| 693 |
| 694 |
| 695 _downloadOptions = null; |
| 696 |
| 697 _url = 'quests/reset'; |
| 698 |
| 699 var _response = _requester.request(_url, |
| 700 "POST", |
| 701 body: _body, |
| 702 queryParams: _queryParams, |
| 703 uploadOptions: _uploadOptions, |
| 704 uploadMedia: _uploadMedia, |
| 705 downloadOptions: _downloadOptions); |
| 706 return _response.then((data) => null); |
| 707 } |
| 708 |
| 709 /** |
| 710 * Resets all draft quests for all players. This method is only available to |
| 711 * user accounts for your developer console. |
| 712 * |
| 713 * Request parameters: |
| 714 * |
| 715 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 716 * error. |
| 717 * |
| 718 * If the used [http.Client] completes with an error when making a REST call, |
| 719 * this method will complete with the same error. |
| 720 */ |
| 721 async.Future resetAllForAllPlayers() { |
| 722 var _url = null; |
| 723 var _queryParams = new core.Map(); |
| 724 var _uploadMedia = null; |
| 725 var _uploadOptions = null; |
| 726 var _downloadOptions = common.DownloadOptions.Metadata; |
| 727 var _body = null; |
| 728 |
| 729 |
| 730 _downloadOptions = null; |
| 731 |
| 732 _url = 'quests/resetAllForAllPlayers'; |
| 733 |
| 734 var _response = _requester.request(_url, |
| 735 "POST", |
| 736 body: _body, |
| 737 queryParams: _queryParams, |
| 738 uploadOptions: _uploadOptions, |
| 739 uploadMedia: _uploadMedia, |
| 740 downloadOptions: _downloadOptions); |
| 741 return _response.then((data) => null); |
| 742 } |
| 743 |
| 744 /** |
| 745 * Resets all player progress on the quest with the given ID for all players. |
| 746 * This method is only available to user accounts for your developer console. |
| 747 * Only draft quests can be reset. |
| 748 * |
| 749 * Request parameters: |
| 750 * |
| 751 * [questId] - The ID of the quest. |
| 752 * |
| 753 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 754 * error. |
| 755 * |
| 756 * If the used [http.Client] completes with an error when making a REST call, |
| 757 * this method will complete with the same error. |
| 758 */ |
| 759 async.Future resetForAllPlayers(core.String questId) { |
| 760 var _url = null; |
| 761 var _queryParams = new core.Map(); |
| 762 var _uploadMedia = null; |
| 763 var _uploadOptions = null; |
| 764 var _downloadOptions = common.DownloadOptions.Metadata; |
| 765 var _body = null; |
| 766 |
| 767 if (questId == null) { |
| 768 throw new core.ArgumentError("Parameter questId is required."); |
| 769 } |
| 770 |
| 771 _downloadOptions = null; |
| 772 |
| 773 _url = 'quests/' + common_internal.Escaper.ecapeVariable('$questId') + '/res
etForAllPlayers'; |
| 774 |
| 775 var _response = _requester.request(_url, |
| 776 "POST", |
| 777 body: _body, |
| 778 queryParams: _queryParams, |
| 779 uploadOptions: _uploadOptions, |
| 780 uploadMedia: _uploadMedia, |
| 781 downloadOptions: _downloadOptions); |
| 782 return _response.then((data) => null); |
| 783 } |
| 784 |
| 785 /** |
| 786 * Resets quests with the given IDs for all players. This method is only |
| 787 * available to user accounts for your developer console. Only draft quests |
| 788 * may be reset. |
| 789 * |
| 790 * [request] - The metadata request object. |
| 791 * |
| 792 * Request parameters: |
| 793 * |
| 794 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 795 * error. |
| 796 * |
| 797 * If the used [http.Client] completes with an error when making a REST call, |
| 798 * this method will complete with the same error. |
| 799 */ |
| 800 async.Future resetMultipleForAllPlayers(QuestsResetMultipleForAllRequest reque
st) { |
| 801 var _url = null; |
| 802 var _queryParams = new core.Map(); |
| 803 var _uploadMedia = null; |
| 804 var _uploadOptions = null; |
| 805 var _downloadOptions = common.DownloadOptions.Metadata; |
| 806 var _body = null; |
| 807 |
| 808 if (request != null) { |
| 809 _body = convert.JSON.encode((request).toJson()); |
| 810 } |
| 811 |
| 812 _downloadOptions = null; |
| 813 |
| 814 _url = 'quests/resetMultipleForAllPlayers'; |
| 815 |
| 816 var _response = _requester.request(_url, |
| 817 "POST", |
| 818 body: _body, |
| 819 queryParams: _queryParams, |
| 820 uploadOptions: _uploadOptions, |
| 821 uploadMedia: _uploadMedia, |
| 822 downloadOptions: _downloadOptions); |
| 823 return _response.then((data) => null); |
| 824 } |
| 825 |
593 } | 826 } |
594 | 827 |
595 | 828 |
596 /** Not documented yet. */ | 829 /** Not documented yet. */ |
597 class RoomsResourceApi { | 830 class RoomsResourceApi { |
598 final common_internal.ApiRequester _requester; | 831 final common_internal.ApiRequester _requester; |
599 | 832 |
600 RoomsResourceApi(common_internal.ApiRequester client) : | 833 RoomsResourceApi(common_internal.ApiRequester client) : |
601 _requester = client; | 834 _requester = client; |
602 | 835 |
(...skipping 26 matching lines...) Expand all Loading... |
629 var _response = _requester.request(_url, | 862 var _response = _requester.request(_url, |
630 "POST", | 863 "POST", |
631 body: _body, | 864 body: _body, |
632 queryParams: _queryParams, | 865 queryParams: _queryParams, |
633 uploadOptions: _uploadOptions, | 866 uploadOptions: _uploadOptions, |
634 uploadMedia: _uploadMedia, | 867 uploadMedia: _uploadMedia, |
635 downloadOptions: _downloadOptions); | 868 downloadOptions: _downloadOptions); |
636 return _response.then((data) => null); | 869 return _response.then((data) => null); |
637 } | 870 } |
638 | 871 |
| 872 /** |
| 873 * Deletes rooms where the only room participants are from whitelisted tester |
| 874 * accounts for your application. This method is only available to user |
| 875 * accounts for your developer console. |
| 876 * |
| 877 * Request parameters: |
| 878 * |
| 879 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 880 * error. |
| 881 * |
| 882 * If the used [http.Client] completes with an error when making a REST call, |
| 883 * this method will complete with the same error. |
| 884 */ |
| 885 async.Future resetForAllPlayers() { |
| 886 var _url = null; |
| 887 var _queryParams = new core.Map(); |
| 888 var _uploadMedia = null; |
| 889 var _uploadOptions = null; |
| 890 var _downloadOptions = common.DownloadOptions.Metadata; |
| 891 var _body = null; |
| 892 |
| 893 |
| 894 _downloadOptions = null; |
| 895 |
| 896 _url = 'rooms/resetForAllPlayers'; |
| 897 |
| 898 var _response = _requester.request(_url, |
| 899 "POST", |
| 900 body: _body, |
| 901 queryParams: _queryParams, |
| 902 uploadOptions: _uploadOptions, |
| 903 uploadMedia: _uploadMedia, |
| 904 downloadOptions: _downloadOptions); |
| 905 return _response.then((data) => null); |
| 906 } |
| 907 |
639 } | 908 } |
640 | 909 |
641 | 910 |
642 /** Not documented yet. */ | 911 /** Not documented yet. */ |
643 class ScoresResourceApi { | 912 class ScoresResourceApi { |
644 final common_internal.ApiRequester _requester; | 913 final common_internal.ApiRequester _requester; |
645 | 914 |
646 ScoresResourceApi(common_internal.ApiRequester client) : | 915 ScoresResourceApi(common_internal.ApiRequester client) : |
647 _requester = client; | 916 _requester = client; |
648 | 917 |
649 /** | 918 /** |
650 * Reset scores for the specified leaderboard for the currently authenticated | 919 * Resets scores for the leaderboard with the given ID for the currently |
651 * player. This method is only accessible to whitelisted tester accounts for | 920 * authenticated player. This method is only accessible to whitelisted tester |
652 * your application. | 921 * accounts for your application. |
653 * | 922 * |
654 * Request parameters: | 923 * Request parameters: |
655 * | 924 * |
656 * [leaderboardId] - The ID of the leaderboard. | 925 * [leaderboardId] - The ID of the leaderboard. |
657 * | 926 * |
658 * Completes with a [PlayerScoreResetResponse]. | 927 * Completes with a [PlayerScoreResetResponse]. |
659 * | 928 * |
660 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 929 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
661 * error. | 930 * error. |
662 * | 931 * |
(...skipping 19 matching lines...) Expand all Loading... |
682 "POST", | 951 "POST", |
683 body: _body, | 952 body: _body, |
684 queryParams: _queryParams, | 953 queryParams: _queryParams, |
685 uploadOptions: _uploadOptions, | 954 uploadOptions: _uploadOptions, |
686 uploadMedia: _uploadMedia, | 955 uploadMedia: _uploadMedia, |
687 downloadOptions: _downloadOptions); | 956 downloadOptions: _downloadOptions); |
688 return _response.then((data) => new PlayerScoreResetResponse.fromJson(data))
; | 957 return _response.then((data) => new PlayerScoreResetResponse.fromJson(data))
; |
689 } | 958 } |
690 | 959 |
691 /** | 960 /** |
692 * Reset scores for the specified leaderboard for all players. This method is | 961 * Resets all scores for all leaderboards for the currently authenticated |
693 * only available to user accounts for your developer console. Only draft | 962 * players. This method is only accessible to whitelisted tester accounts for |
694 * leaderboards can be reset. | 963 * your application. |
695 * | 964 * |
696 * Request parameters: | 965 * Request parameters: |
697 * | 966 * |
| 967 * Completes with a [PlayerScoreResetAllResponse]. |
| 968 * |
| 969 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 970 * error. |
| 971 * |
| 972 * If the used [http.Client] completes with an error when making a REST call, |
| 973 * this method will complete with the same error. |
| 974 */ |
| 975 async.Future<PlayerScoreResetAllResponse> resetAll() { |
| 976 var _url = null; |
| 977 var _queryParams = new core.Map(); |
| 978 var _uploadMedia = null; |
| 979 var _uploadOptions = null; |
| 980 var _downloadOptions = common.DownloadOptions.Metadata; |
| 981 var _body = null; |
| 982 |
| 983 |
| 984 |
| 985 _url = 'scores/reset'; |
| 986 |
| 987 var _response = _requester.request(_url, |
| 988 "POST", |
| 989 body: _body, |
| 990 queryParams: _queryParams, |
| 991 uploadOptions: _uploadOptions, |
| 992 uploadMedia: _uploadMedia, |
| 993 downloadOptions: _downloadOptions); |
| 994 return _response.then((data) => new PlayerScoreResetAllResponse.fromJson(dat
a)); |
| 995 } |
| 996 |
| 997 /** |
| 998 * Resets scores for all draft leaderboards for all players. This method is |
| 999 * only available to user accounts for your developer console. |
| 1000 * |
| 1001 * Request parameters: |
| 1002 * |
| 1003 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1004 * error. |
| 1005 * |
| 1006 * If the used [http.Client] completes with an error when making a REST call, |
| 1007 * this method will complete with the same error. |
| 1008 */ |
| 1009 async.Future resetAllForAllPlayers() { |
| 1010 var _url = null; |
| 1011 var _queryParams = new core.Map(); |
| 1012 var _uploadMedia = null; |
| 1013 var _uploadOptions = null; |
| 1014 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1015 var _body = null; |
| 1016 |
| 1017 |
| 1018 _downloadOptions = null; |
| 1019 |
| 1020 _url = 'scores/resetAllForAllPlayers'; |
| 1021 |
| 1022 var _response = _requester.request(_url, |
| 1023 "POST", |
| 1024 body: _body, |
| 1025 queryParams: _queryParams, |
| 1026 uploadOptions: _uploadOptions, |
| 1027 uploadMedia: _uploadMedia, |
| 1028 downloadOptions: _downloadOptions); |
| 1029 return _response.then((data) => null); |
| 1030 } |
| 1031 |
| 1032 /** |
| 1033 * Resets scores for the leaderboard with the given ID for all players. This |
| 1034 * method is only available to user accounts for your developer console. Only |
| 1035 * draft leaderboards can be reset. |
| 1036 * |
| 1037 * Request parameters: |
| 1038 * |
698 * [leaderboardId] - The ID of the leaderboard. | 1039 * [leaderboardId] - The ID of the leaderboard. |
699 * | 1040 * |
700 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1041 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
701 * error. | 1042 * error. |
702 * | 1043 * |
703 * If the used [http.Client] completes with an error when making a REST call, | 1044 * If the used [http.Client] completes with an error when making a REST call, |
704 * this method will complete with the same error. | 1045 * this method will complete with the same error. |
705 */ | 1046 */ |
706 async.Future resetForAllPlayers(core.String leaderboardId) { | 1047 async.Future resetForAllPlayers(core.String leaderboardId) { |
707 var _url = null; | 1048 var _url = null; |
(...skipping 14 matching lines...) Expand all Loading... |
722 var _response = _requester.request(_url, | 1063 var _response = _requester.request(_url, |
723 "POST", | 1064 "POST", |
724 body: _body, | 1065 body: _body, |
725 queryParams: _queryParams, | 1066 queryParams: _queryParams, |
726 uploadOptions: _uploadOptions, | 1067 uploadOptions: _uploadOptions, |
727 uploadMedia: _uploadMedia, | 1068 uploadMedia: _uploadMedia, |
728 downloadOptions: _downloadOptions); | 1069 downloadOptions: _downloadOptions); |
729 return _response.then((data) => null); | 1070 return _response.then((data) => null); |
730 } | 1071 } |
731 | 1072 |
| 1073 /** |
| 1074 * Resets scores for the leaderboards with the given IDs for all players. This |
| 1075 * method is only available to user accounts for your developer console. Only |
| 1076 * draft leaderboards may be reset. |
| 1077 * |
| 1078 * [request] - The metadata request object. |
| 1079 * |
| 1080 * Request parameters: |
| 1081 * |
| 1082 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1083 * error. |
| 1084 * |
| 1085 * If the used [http.Client] completes with an error when making a REST call, |
| 1086 * this method will complete with the same error. |
| 1087 */ |
| 1088 async.Future resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest reque
st) { |
| 1089 var _url = null; |
| 1090 var _queryParams = new core.Map(); |
| 1091 var _uploadMedia = null; |
| 1092 var _uploadOptions = null; |
| 1093 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1094 var _body = null; |
| 1095 |
| 1096 if (request != null) { |
| 1097 _body = convert.JSON.encode((request).toJson()); |
| 1098 } |
| 1099 |
| 1100 _downloadOptions = null; |
| 1101 |
| 1102 _url = 'scores/resetMultipleForAllPlayers'; |
| 1103 |
| 1104 var _response = _requester.request(_url, |
| 1105 "POST", |
| 1106 body: _body, |
| 1107 queryParams: _queryParams, |
| 1108 uploadOptions: _uploadOptions, |
| 1109 uploadMedia: _uploadMedia, |
| 1110 downloadOptions: _downloadOptions); |
| 1111 return _response.then((data) => null); |
| 1112 } |
| 1113 |
732 } | 1114 } |
733 | 1115 |
734 | 1116 |
735 /** Not documented yet. */ | 1117 /** Not documented yet. */ |
736 class TurnBasedMatchesResourceApi { | 1118 class TurnBasedMatchesResourceApi { |
737 final common_internal.ApiRequester _requester; | 1119 final common_internal.ApiRequester _requester; |
738 | 1120 |
739 TurnBasedMatchesResourceApi(common_internal.ApiRequester client) : | 1121 TurnBasedMatchesResourceApi(common_internal.ApiRequester client) : |
740 _requester = client; | 1122 _requester = client; |
741 | 1123 |
(...skipping 25 matching lines...) Expand all Loading... |
767 var _response = _requester.request(_url, | 1149 var _response = _requester.request(_url, |
768 "POST", | 1150 "POST", |
769 body: _body, | 1151 body: _body, |
770 queryParams: _queryParams, | 1152 queryParams: _queryParams, |
771 uploadOptions: _uploadOptions, | 1153 uploadOptions: _uploadOptions, |
772 uploadMedia: _uploadMedia, | 1154 uploadMedia: _uploadMedia, |
773 downloadOptions: _downloadOptions); | 1155 downloadOptions: _downloadOptions); |
774 return _response.then((data) => null); | 1156 return _response.then((data) => null); |
775 } | 1157 } |
776 | 1158 |
| 1159 /** |
| 1160 * Deletes turn-based matches where the only match participants are from |
| 1161 * whitelisted tester accounts for your application. This method is only |
| 1162 * available to user accounts for your developer console. |
| 1163 * |
| 1164 * Request parameters: |
| 1165 * |
| 1166 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1167 * error. |
| 1168 * |
| 1169 * If the used [http.Client] completes with an error when making a REST call, |
| 1170 * this method will complete with the same error. |
| 1171 */ |
| 1172 async.Future resetForAllPlayers() { |
| 1173 var _url = null; |
| 1174 var _queryParams = new core.Map(); |
| 1175 var _uploadMedia = null; |
| 1176 var _uploadOptions = null; |
| 1177 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1178 var _body = null; |
| 1179 |
| 1180 |
| 1181 _downloadOptions = null; |
| 1182 |
| 1183 _url = 'turnbasedmatches/resetForAllPlayers'; |
| 1184 |
| 1185 var _response = _requester.request(_url, |
| 1186 "POST", |
| 1187 body: _body, |
| 1188 queryParams: _queryParams, |
| 1189 uploadOptions: _uploadOptions, |
| 1190 uploadMedia: _uploadMedia, |
| 1191 downloadOptions: _downloadOptions); |
| 1192 return _response.then((data) => null); |
| 1193 } |
| 1194 |
777 } | 1195 } |
778 | 1196 |
779 | 1197 |
780 | 1198 |
781 /** This is a JSON template for achievement reset all response. */ | 1199 /** This is a JSON template for achievement reset all response. */ |
782 class AchievementResetAllResponse { | 1200 class AchievementResetAllResponse { |
783 /** | 1201 /** |
784 * Uniquely identifies the type of this resource. Value is always the fixed | 1202 * Uniquely identifies the type of this resource. Value is always the fixed |
785 * string gamesManagement#achievementResetAllResponse. | 1203 * string gamesManagement#achievementResetAllResponse. |
786 */ | 1204 */ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 _json["kind"] = kind; | 1322 _json["kind"] = kind; |
905 } | 1323 } |
906 if (updateOccurred != null) { | 1324 if (updateOccurred != null) { |
907 _json["updateOccurred"] = updateOccurred; | 1325 _json["updateOccurred"] = updateOccurred; |
908 } | 1326 } |
909 return _json; | 1327 return _json; |
910 } | 1328 } |
911 } | 1329 } |
912 | 1330 |
913 | 1331 |
| 1332 /** This is a JSON template for multiple events reset all request. */ |
| 1333 class EventsResetMultipleForAllRequest { |
| 1334 /** The IDs of events to reset. */ |
| 1335 core.List<core.String> eventIds; |
| 1336 |
| 1337 /** |
| 1338 * Uniquely identifies the type of this resource. Value is always the fixed |
| 1339 * string gamesManagement#eventsResetMultipleForAllRequest. |
| 1340 */ |
| 1341 core.String kind; |
| 1342 |
| 1343 |
| 1344 EventsResetMultipleForAllRequest(); |
| 1345 |
| 1346 EventsResetMultipleForAllRequest.fromJson(core.Map _json) { |
| 1347 if (_json.containsKey("event_ids")) { |
| 1348 eventIds = _json["event_ids"]; |
| 1349 } |
| 1350 if (_json.containsKey("kind")) { |
| 1351 kind = _json["kind"]; |
| 1352 } |
| 1353 } |
| 1354 |
| 1355 core.Map toJson() { |
| 1356 var _json = new core.Map(); |
| 1357 if (eventIds != null) { |
| 1358 _json["event_ids"] = eventIds; |
| 1359 } |
| 1360 if (kind != null) { |
| 1361 _json["kind"] = kind; |
| 1362 } |
| 1363 return _json; |
| 1364 } |
| 1365 } |
| 1366 |
| 1367 |
914 /** | 1368 /** |
915 * This is a JSON template for metadata about a player playing a game with the | 1369 * This is a JSON template for metadata about a player playing a game with the |
916 * currently authenticated user. | 1370 * currently authenticated user. |
917 */ | 1371 */ |
918 class GamesPlayedResource { | 1372 class GamesPlayedResource { |
919 /** | 1373 /** |
920 * True if the player was auto-matched with the currently authenticated user. | 1374 * True if the player was auto-matched with the currently authenticated user. |
921 */ | 1375 */ |
922 core.bool autoMatched; | 1376 core.bool autoMatched; |
923 | 1377 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 _json["playerId"] = playerId; | 1731 _json["playerId"] = playerId; |
1278 } | 1732 } |
1279 if (title != null) { | 1733 if (title != null) { |
1280 _json["title"] = title; | 1734 _json["title"] = title; |
1281 } | 1735 } |
1282 return _json; | 1736 return _json; |
1283 } | 1737 } |
1284 } | 1738 } |
1285 | 1739 |
1286 | 1740 |
| 1741 /** This is a JSON template for a list of leaderboard reset resources. */ |
| 1742 class PlayerScoreResetAllResponse { |
| 1743 /** |
| 1744 * Uniquely identifies the type of this resource. Value is always the fixed |
| 1745 * string gamesManagement#playerScoreResetResponse. |
| 1746 */ |
| 1747 core.String kind; |
| 1748 |
| 1749 /** The leaderboard reset results. */ |
| 1750 core.List<PlayerScoreResetResponse> results; |
| 1751 |
| 1752 |
| 1753 PlayerScoreResetAllResponse(); |
| 1754 |
| 1755 PlayerScoreResetAllResponse.fromJson(core.Map _json) { |
| 1756 if (_json.containsKey("kind")) { |
| 1757 kind = _json["kind"]; |
| 1758 } |
| 1759 if (_json.containsKey("results")) { |
| 1760 results = _json["results"].map((value) => new PlayerScoreResetResponse.fro
mJson(value)).toList(); |
| 1761 } |
| 1762 } |
| 1763 |
| 1764 core.Map toJson() { |
| 1765 var _json = new core.Map(); |
| 1766 if (kind != null) { |
| 1767 _json["kind"] = kind; |
| 1768 } |
| 1769 if (results != null) { |
| 1770 _json["results"] = results.map((value) => (value).toJson()).toList(); |
| 1771 } |
| 1772 return _json; |
| 1773 } |
| 1774 } |
| 1775 |
| 1776 |
1287 /** This is a JSON template for a list of reset leaderboard entry resources. */ | 1777 /** This is a JSON template for a list of reset leaderboard entry resources. */ |
1288 class PlayerScoreResetResponse { | 1778 class PlayerScoreResetResponse { |
| 1779 /** The ID of an leaderboard for which player state has been updated. */ |
| 1780 core.String definitionId; |
| 1781 |
1289 /** | 1782 /** |
1290 * Uniquely identifies the type of this resource. Value is always the fixed | 1783 * Uniquely identifies the type of this resource. Value is always the fixed |
1291 * string gamesManagement#playerScoreResetResponse. | 1784 * string gamesManagement#playerScoreResetResponse. |
1292 */ | 1785 */ |
1293 core.String kind; | 1786 core.String kind; |
1294 | 1787 |
1295 /** | 1788 /** |
1296 * The time spans of the updated score. | 1789 * The time spans of the updated score. |
1297 * Possible values are: | 1790 * Possible values are: |
1298 * - "ALL_TIME" - The score is an all-time score. | 1791 * - "ALL_TIME" - The score is an all-time score. |
1299 * - "WEEKLY" - The score is a weekly score. | 1792 * - "WEEKLY" - The score is a weekly score. |
1300 * - "DAILY" - The score is a daily score. | 1793 * - "DAILY" - The score is a daily score. |
1301 */ | 1794 */ |
1302 core.List<core.String> resetScoreTimeSpans; | 1795 core.List<core.String> resetScoreTimeSpans; |
1303 | 1796 |
1304 | 1797 |
1305 PlayerScoreResetResponse(); | 1798 PlayerScoreResetResponse(); |
1306 | 1799 |
1307 PlayerScoreResetResponse.fromJson(core.Map _json) { | 1800 PlayerScoreResetResponse.fromJson(core.Map _json) { |
| 1801 if (_json.containsKey("definitionId")) { |
| 1802 definitionId = _json["definitionId"]; |
| 1803 } |
1308 if (_json.containsKey("kind")) { | 1804 if (_json.containsKey("kind")) { |
1309 kind = _json["kind"]; | 1805 kind = _json["kind"]; |
1310 } | 1806 } |
1311 if (_json.containsKey("resetScoreTimeSpans")) { | 1807 if (_json.containsKey("resetScoreTimeSpans")) { |
1312 resetScoreTimeSpans = _json["resetScoreTimeSpans"]; | 1808 resetScoreTimeSpans = _json["resetScoreTimeSpans"]; |
1313 } | 1809 } |
1314 } | 1810 } |
1315 | 1811 |
1316 core.Map toJson() { | 1812 core.Map toJson() { |
1317 var _json = new core.Map(); | 1813 var _json = new core.Map(); |
| 1814 if (definitionId != null) { |
| 1815 _json["definitionId"] = definitionId; |
| 1816 } |
1318 if (kind != null) { | 1817 if (kind != null) { |
1319 _json["kind"] = kind; | 1818 _json["kind"] = kind; |
1320 } | 1819 } |
1321 if (resetScoreTimeSpans != null) { | 1820 if (resetScoreTimeSpans != null) { |
1322 _json["resetScoreTimeSpans"] = resetScoreTimeSpans; | 1821 _json["resetScoreTimeSpans"] = resetScoreTimeSpans; |
1323 } | 1822 } |
1324 return _json; | 1823 return _json; |
1325 } | 1824 } |
1326 } | 1825 } |
1327 | 1826 |
1328 | 1827 |
| 1828 /** This is a JSON template for multiple quests reset all request. */ |
| 1829 class QuestsResetMultipleForAllRequest { |
| 1830 /** |
| 1831 * Uniquely identifies the type of this resource. Value is always the fixed |
| 1832 * string gamesManagement#questsResetMultipleForAllRequest. |
| 1833 */ |
| 1834 core.String kind; |
| 1835 |
| 1836 /** The IDs of quests to reset. */ |
| 1837 core.List<core.String> questIds; |
| 1838 |
| 1839 |
| 1840 QuestsResetMultipleForAllRequest(); |
| 1841 |
| 1842 QuestsResetMultipleForAllRequest.fromJson(core.Map _json) { |
| 1843 if (_json.containsKey("kind")) { |
| 1844 kind = _json["kind"]; |
| 1845 } |
| 1846 if (_json.containsKey("quest_ids")) { |
| 1847 questIds = _json["quest_ids"]; |
| 1848 } |
| 1849 } |
| 1850 |
| 1851 core.Map toJson() { |
| 1852 var _json = new core.Map(); |
| 1853 if (kind != null) { |
| 1854 _json["kind"] = kind; |
| 1855 } |
| 1856 if (questIds != null) { |
| 1857 _json["quest_ids"] = questIds; |
| 1858 } |
| 1859 return _json; |
| 1860 } |
| 1861 } |
| 1862 |
| 1863 |
| 1864 /** This is a JSON template for multiple scores reset all request. */ |
| 1865 class ScoresResetMultipleForAllRequest { |
| 1866 /** |
| 1867 * Uniquely identifies the type of this resource. Value is always the fixed |
| 1868 * string gamesManagement#scoresResetMultipleForAllRequest. |
| 1869 */ |
| 1870 core.String kind; |
| 1871 |
| 1872 /** The IDs of leaderboards to reset. */ |
| 1873 core.List<core.String> leaderboardIds; |
| 1874 |
| 1875 |
| 1876 ScoresResetMultipleForAllRequest(); |
| 1877 |
| 1878 ScoresResetMultipleForAllRequest.fromJson(core.Map _json) { |
| 1879 if (_json.containsKey("kind")) { |
| 1880 kind = _json["kind"]; |
| 1881 } |
| 1882 if (_json.containsKey("leaderboard_ids")) { |
| 1883 leaderboardIds = _json["leaderboard_ids"]; |
| 1884 } |
| 1885 } |
| 1886 |
| 1887 core.Map toJson() { |
| 1888 var _json = new core.Map(); |
| 1889 if (kind != null) { |
| 1890 _json["kind"] = kind; |
| 1891 } |
| 1892 if (leaderboardIds != null) { |
| 1893 _json["leaderboard_ids"] = leaderboardIds; |
| 1894 } |
| 1895 return _json; |
| 1896 } |
| 1897 } |
| 1898 |
| 1899 |
OLD | NEW |