| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.games.v1; | 3 library googleapis.games.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:crypto/crypto.dart' as crypto; | 10 import 'package:crypto/crypto.dart' as crypto; |
| 11 import 'package:http/http.dart' as http; | 11 import 'package:http/http.dart' as http; |
| 12 | 12 |
| 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 ApiRequestError, DetailedApiRequestError; | 14 ApiRequestError, DetailedApiRequestError; |
| 15 | 15 |
| 16 const core.String USER_AGENT = 'dart-api-client games/v1'; | 16 const core.String USER_AGENT = 'dart-api-client games/v1'; |
| 17 | 17 |
| 18 /** The API for Google Play Game Services. */ | 18 /** The API for Google Play Game Services. */ |
| 19 class GamesApi { | 19 class GamesApi { |
| 20 /** View and manage its own configuration data in your Google Drive */ | 20 /** View and manage its own configuration data in your Google Drive */ |
| 21 static const DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdat
a"; | 21 static const DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdat
a"; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * Share your Google+ profile information and view and manage your game | 24 * Share your Google+ profile information and view and manage your game |
| 25 * activity | 25 * activity |
| 26 */ | 26 */ |
| 27 static const GamesScope = "https://www.googleapis.com/auth/games"; | 27 static const GamesScope = "https://www.googleapis.com/auth/games"; |
| 28 | 28 |
| 29 /** Know your basic profile info and list of people in your circles. */ | 29 /** Know the list of people in your circles, your age range, and language */ |
| 30 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 30 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
| 31 | 31 |
| 32 | 32 |
| 33 final commons.ApiRequester _requester; | 33 final commons.ApiRequester _requester; |
| 34 | 34 |
| 35 AchievementDefinitionsResourceApi get achievementDefinitions => new Achievemen
tDefinitionsResourceApi(_requester); | 35 AchievementDefinitionsResourceApi get achievementDefinitions => new Achievemen
tDefinitionsResourceApi(_requester); |
| 36 AchievementsResourceApi get achievements => new AchievementsResourceApi(_reque
ster); | 36 AchievementsResourceApi get achievements => new AchievementsResourceApi(_reque
ster); |
| 37 ApplicationsResourceApi get applications => new ApplicationsResourceApi(_reque
ster); | 37 ApplicationsResourceApi get applications => new ApplicationsResourceApi(_reque
ster); |
| 38 EventsResourceApi get events => new EventsResourceApi(_requester); | 38 EventsResourceApi get events => new EventsResourceApi(_requester); |
| 39 LeaderboardsResourceApi get leaderboards => new LeaderboardsResourceApi(_reque
ster); | 39 LeaderboardsResourceApi get leaderboards => new LeaderboardsResourceApi(_reque
ster); |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 * Lists the scores in a leaderboard, starting from the top. | 1875 * Lists the scores in a leaderboard, starting from the top. |
| 1876 * | 1876 * |
| 1877 * Request parameters: | 1877 * Request parameters: |
| 1878 * | 1878 * |
| 1879 * [leaderboardId] - The ID of the leaderboard. | 1879 * [leaderboardId] - The ID of the leaderboard. |
| 1880 * | 1880 * |
| 1881 * [collection] - The collection of scores you're requesting. | 1881 * [collection] - The collection of scores you're requesting. |
| 1882 * Possible string values are: | 1882 * Possible string values are: |
| 1883 * - "PUBLIC" : List all scores in the public leaderboard. | 1883 * - "PUBLIC" : List all scores in the public leaderboard. |
| 1884 * - "SOCIAL" : List only social scores. | 1884 * - "SOCIAL" : List only social scores. |
| 1885 * - "SOCIAL_1P" : List only social scores, not respecting the fACL. |
| 1885 * | 1886 * |
| 1886 * [timeSpan] - The time span for the scores and ranks you're requesting. | 1887 * [timeSpan] - The time span for the scores and ranks you're requesting. |
| 1887 * Possible string values are: | 1888 * Possible string values are: |
| 1888 * - "ALL_TIME" : List the all-time top scores. | 1889 * - "ALL_TIME" : List the all-time top scores. |
| 1889 * - "DAILY" : List the top scores for the current day. | 1890 * - "DAILY" : List the top scores for the current day. |
| 1890 * - "WEEKLY" : List the top scores for the current week. | 1891 * - "WEEKLY" : List the top scores for the current week. |
| 1891 * | 1892 * |
| 1892 * [language] - The preferred language to use for strings returned by this | 1893 * [language] - The preferred language to use for strings returned by this |
| 1893 * method. | 1894 * method. |
| 1894 * | 1895 * |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1951 * Lists the scores in a leaderboard around (and including) a player's score. | 1952 * Lists the scores in a leaderboard around (and including) a player's score. |
| 1952 * | 1953 * |
| 1953 * Request parameters: | 1954 * Request parameters: |
| 1954 * | 1955 * |
| 1955 * [leaderboardId] - The ID of the leaderboard. | 1956 * [leaderboardId] - The ID of the leaderboard. |
| 1956 * | 1957 * |
| 1957 * [collection] - The collection of scores you're requesting. | 1958 * [collection] - The collection of scores you're requesting. |
| 1958 * Possible string values are: | 1959 * Possible string values are: |
| 1959 * - "PUBLIC" : List all scores in the public leaderboard. | 1960 * - "PUBLIC" : List all scores in the public leaderboard. |
| 1960 * - "SOCIAL" : List only social scores. | 1961 * - "SOCIAL" : List only social scores. |
| 1962 * - "SOCIAL_1P" : List only social scores, not respecting the fACL. |
| 1961 * | 1963 * |
| 1962 * [timeSpan] - The time span for the scores and ranks you're requesting. | 1964 * [timeSpan] - The time span for the scores and ranks you're requesting. |
| 1963 * Possible string values are: | 1965 * Possible string values are: |
| 1964 * - "ALL_TIME" : List the all-time top scores. | 1966 * - "ALL_TIME" : List the all-time top scores. |
| 1965 * - "DAILY" : List the top scores for the current day. | 1967 * - "DAILY" : List the top scores for the current day. |
| 1966 * - "WEEKLY" : List the top scores for the current week. | 1968 * - "WEEKLY" : List the top scores for the current week. |
| 1967 * | 1969 * |
| 1968 * [language] - The preferred language to use for strings returned by this | 1970 * [language] - The preferred language to use for strings returned by this |
| 1969 * method. | 1971 * method. |
| 1970 * | 1972 * |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3127 /** This is a JSON template for an achievement increment response */ | 3129 /** This is a JSON template for an achievement increment response */ |
| 3128 class AchievementIncrementResponse { | 3130 class AchievementIncrementResponse { |
| 3129 /** The current steps recorded for this incremental achievement. */ | 3131 /** The current steps recorded for this incremental achievement. */ |
| 3130 core.int currentSteps; | 3132 core.int currentSteps; |
| 3131 /** | 3133 /** |
| 3132 * Uniquely identifies the type of this resource. Value is always the fixed | 3134 * Uniquely identifies the type of this resource. Value is always the fixed |
| 3133 * string games#achievementIncrementResponse. | 3135 * string games#achievementIncrementResponse. |
| 3134 */ | 3136 */ |
| 3135 core.String kind; | 3137 core.String kind; |
| 3136 /** | 3138 /** |
| 3137 * Whether the the current steps for the achievement has reached the number of | 3139 * Whether the current steps for the achievement has reached the number of |
| 3138 * steps required to unlock. | 3140 * steps required to unlock. |
| 3139 */ | 3141 */ |
| 3140 core.bool newlyUnlocked; | 3142 core.bool newlyUnlocked; |
| 3141 | 3143 |
| 3142 AchievementIncrementResponse(); | 3144 AchievementIncrementResponse(); |
| 3143 | 3145 |
| 3144 AchievementIncrementResponse.fromJson(core.Map _json) { | 3146 AchievementIncrementResponse.fromJson(core.Map _json) { |
| 3145 if (_json.containsKey("currentSteps")) { | 3147 if (_json.containsKey("currentSteps")) { |
| 3146 currentSteps = _json["currentSteps"]; | 3148 currentSteps = _json["currentSteps"]; |
| 3147 } | 3149 } |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3768 return _json; | 3770 return _json; |
| 3769 } | 3771 } |
| 3770 } | 3772 } |
| 3771 | 3773 |
| 3772 /** | 3774 /** |
| 3773 * This is a JSON template for a third party application verification response | 3775 * This is a JSON template for a third party application verification response |
| 3774 * resource. | 3776 * resource. |
| 3775 */ | 3777 */ |
| 3776 class ApplicationVerifyResponse { | 3778 class ApplicationVerifyResponse { |
| 3777 /** | 3779 /** |
| 3780 * An alternate ID that was once used for the player that was issued the auth |
| 3781 * token used in this request. (This field is not normally populated.) |
| 3782 */ |
| 3783 core.String alternatePlayerId; |
| 3784 /** |
| 3778 * Uniquely identifies the type of this resource. Value is always the fixed | 3785 * Uniquely identifies the type of this resource. Value is always the fixed |
| 3779 * string games#applicationVerifyResponse. | 3786 * string games#applicationVerifyResponse. |
| 3780 */ | 3787 */ |
| 3781 core.String kind; | 3788 core.String kind; |
| 3782 /** | 3789 /** |
| 3783 * The ID of the player that was issued the auth token used in this request. | 3790 * The ID of the player that was issued the auth token used in this request. |
| 3784 */ | 3791 */ |
| 3785 core.String playerId; | 3792 core.String playerId; |
| 3786 | 3793 |
| 3787 ApplicationVerifyResponse(); | 3794 ApplicationVerifyResponse(); |
| 3788 | 3795 |
| 3789 ApplicationVerifyResponse.fromJson(core.Map _json) { | 3796 ApplicationVerifyResponse.fromJson(core.Map _json) { |
| 3797 if (_json.containsKey("alternate_player_id")) { |
| 3798 alternatePlayerId = _json["alternate_player_id"]; |
| 3799 } |
| 3790 if (_json.containsKey("kind")) { | 3800 if (_json.containsKey("kind")) { |
| 3791 kind = _json["kind"]; | 3801 kind = _json["kind"]; |
| 3792 } | 3802 } |
| 3793 if (_json.containsKey("player_id")) { | 3803 if (_json.containsKey("player_id")) { |
| 3794 playerId = _json["player_id"]; | 3804 playerId = _json["player_id"]; |
| 3795 } | 3805 } |
| 3796 } | 3806 } |
| 3797 | 3807 |
| 3798 core.Map toJson() { | 3808 core.Map toJson() { |
| 3799 var _json = new core.Map(); | 3809 var _json = new core.Map(); |
| 3810 if (alternatePlayerId != null) { |
| 3811 _json["alternate_player_id"] = alternatePlayerId; |
| 3812 } |
| 3800 if (kind != null) { | 3813 if (kind != null) { |
| 3801 _json["kind"] = kind; | 3814 _json["kind"] = kind; |
| 3802 } | 3815 } |
| 3803 if (playerId != null) { | 3816 if (playerId != null) { |
| 3804 _json["player_id"] = playerId; | 3817 _json["player_id"] = playerId; |
| 3805 } | 3818 } |
| 3806 return _json; | 3819 return _json; |
| 3807 } | 3820 } |
| 3808 } | 3821 } |
| 3809 | 3822 |
| (...skipping 5341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9151 } | 9164 } |
| 9152 if (pendingParticipantId != null) { | 9165 if (pendingParticipantId != null) { |
| 9153 _json["pendingParticipantId"] = pendingParticipantId; | 9166 _json["pendingParticipantId"] = pendingParticipantId; |
| 9154 } | 9167 } |
| 9155 if (results != null) { | 9168 if (results != null) { |
| 9156 _json["results"] = results.map((value) => (value).toJson()).toList(); | 9169 _json["results"] = results.map((value) => (value).toJson()).toList(); |
| 9157 } | 9170 } |
| 9158 return _json; | 9171 return _json; |
| 9159 } | 9172 } |
| 9160 } | 9173 } |
| OLD | NEW |