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.gamesManagement.v1management; | 3 library googleapis.gamesManagement.v1management; |
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:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client gamesManagement/v1management'; | 15 const core.String USER_AGENT = 'dart-api-client gamesManagement/v1management'; |
16 | 16 |
17 /** The Management API for Google Play Game Services. */ | 17 /// The Management API for Google Play Game Services. |
18 class GamesManagementApi { | 18 class GamesManagementApi { |
19 /** | 19 /// Share your Google+ profile information and view and manage your game |
20 * Share your Google+ profile information and view and manage your game | 20 /// activity |
21 * activity | |
22 */ | |
23 static const GamesScope = "https://www.googleapis.com/auth/games"; | 21 static const GamesScope = "https://www.googleapis.com/auth/games"; |
24 | 22 |
25 /** Know the list of people in your circles, your age range, and language */ | 23 /// Know the list of people in your circles, your age range, and language |
26 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 24 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
27 | 25 |
28 | |
29 final commons.ApiRequester _requester; | 26 final commons.ApiRequester _requester; |
30 | 27 |
31 AchievementsResourceApi get achievements => new AchievementsResourceApi(_reque
ster); | 28 AchievementsResourceApi get achievements => |
32 ApplicationsResourceApi get applications => new ApplicationsResourceApi(_reque
ster); | 29 new AchievementsResourceApi(_requester); |
| 30 ApplicationsResourceApi get applications => |
| 31 new ApplicationsResourceApi(_requester); |
33 EventsResourceApi get events => new EventsResourceApi(_requester); | 32 EventsResourceApi get events => new EventsResourceApi(_requester); |
34 PlayersResourceApi get players => new PlayersResourceApi(_requester); | 33 PlayersResourceApi get players => new PlayersResourceApi(_requester); |
35 QuestsResourceApi get quests => new QuestsResourceApi(_requester); | 34 QuestsResourceApi get quests => new QuestsResourceApi(_requester); |
36 RoomsResourceApi get rooms => new RoomsResourceApi(_requester); | 35 RoomsResourceApi get rooms => new RoomsResourceApi(_requester); |
37 ScoresResourceApi get scores => new ScoresResourceApi(_requester); | 36 ScoresResourceApi get scores => new ScoresResourceApi(_requester); |
38 TurnBasedMatchesResourceApi get turnBasedMatches => new TurnBasedMatchesResour
ceApi(_requester); | 37 TurnBasedMatchesResourceApi get turnBasedMatches => |
| 38 new TurnBasedMatchesResourceApi(_requester); |
39 | 39 |
40 GamesManagementApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "games/v1management/"}) : | 40 GamesManagementApi(http.Client client, |
41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 41 {core.String rootUrl: "https://www.googleapis.com/", |
| 42 core.String servicePath: "games/v1management/"}) |
| 43 : _requester = |
| 44 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
42 } | 45 } |
43 | 46 |
44 | |
45 class AchievementsResourceApi { | 47 class AchievementsResourceApi { |
46 final commons.ApiRequester _requester; | 48 final commons.ApiRequester _requester; |
47 | 49 |
48 AchievementsResourceApi(commons.ApiRequester client) : | 50 AchievementsResourceApi(commons.ApiRequester client) : _requester = client; |
49 _requester = client; | |
50 | 51 |
51 /** | 52 /// Resets the achievement with the given ID for the currently authenticated |
52 * Resets the achievement with the given ID for the currently authenticated | 53 /// player. This method is only accessible to whitelisted tester accounts for |
53 * player. This method is only accessible to whitelisted tester accounts for | 54 /// your application. |
54 * your application. | 55 /// |
55 * | 56 /// Request parameters: |
56 * Request parameters: | 57 /// |
57 * | 58 /// [achievementId] - The ID of the achievement used by this method. |
58 * [achievementId] - The ID of the achievement used by this method. | 59 /// |
59 * | 60 /// Completes with a [AchievementResetResponse]. |
60 * Completes with a [AchievementResetResponse]. | 61 /// |
61 * | 62 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 63 /// an error. |
63 * error. | 64 /// |
64 * | 65 /// If the used [http.Client] completes with an error when making a REST |
65 * If the used [http.Client] completes with an error when making a REST call, | 66 /// call, this method will complete with the same error. |
66 * this method will complete with the same error. | |
67 */ | |
68 async.Future<AchievementResetResponse> reset(core.String achievementId) { | 67 async.Future<AchievementResetResponse> reset(core.String achievementId) { |
69 var _url = null; | 68 var _url = null; |
70 var _queryParams = new core.Map(); | 69 var _queryParams = new core.Map(); |
71 var _uploadMedia = null; | 70 var _uploadMedia = null; |
72 var _uploadOptions = null; | 71 var _uploadOptions = null; |
73 var _downloadOptions = commons.DownloadOptions.Metadata; | 72 var _downloadOptions = commons.DownloadOptions.Metadata; |
74 var _body = null; | 73 var _body = null; |
75 | 74 |
76 if (achievementId == null) { | 75 if (achievementId == null) { |
77 throw new core.ArgumentError("Parameter achievementId is required."); | 76 throw new core.ArgumentError("Parameter achievementId is required."); |
78 } | 77 } |
79 | 78 |
80 _url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId') + '
/reset'; | 79 _url = 'achievements/' + |
| 80 commons.Escaper.ecapeVariable('$achievementId') + |
| 81 '/reset'; |
81 | 82 |
82 var _response = _requester.request(_url, | 83 var _response = _requester.request(_url, "POST", |
83 "POST", | 84 body: _body, |
84 body: _body, | 85 queryParams: _queryParams, |
85 queryParams: _queryParams, | 86 uploadOptions: _uploadOptions, |
86 uploadOptions: _uploadOptions, | 87 uploadMedia: _uploadMedia, |
87 uploadMedia: _uploadMedia, | 88 downloadOptions: _downloadOptions); |
88 downloadOptions: _downloadOptions); | 89 return _response |
89 return _response.then((data) => new AchievementResetResponse.fromJson(data))
; | 90 .then((data) => new AchievementResetResponse.fromJson(data)); |
90 } | 91 } |
91 | 92 |
92 /** | 93 /// Resets all achievements for the currently authenticated player for your |
93 * Resets all achievements for the currently authenticated player for your | 94 /// application. This method is only accessible to whitelisted tester |
94 * application. This method is only accessible to whitelisted tester accounts | 95 /// accounts for your application. |
95 * for your application. | 96 /// |
96 * | 97 /// Request parameters: |
97 * Request parameters: | 98 /// |
98 * | 99 /// Completes with a [AchievementResetAllResponse]. |
99 * Completes with a [AchievementResetAllResponse]. | 100 /// |
100 * | 101 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 102 /// an error. |
102 * error. | 103 /// |
103 * | 104 /// If the used [http.Client] completes with an error when making a REST |
104 * If the used [http.Client] completes with an error when making a REST call, | 105 /// call, this method will complete with the same error. |
105 * this method will complete with the same error. | |
106 */ | |
107 async.Future<AchievementResetAllResponse> resetAll() { | 106 async.Future<AchievementResetAllResponse> resetAll() { |
108 var _url = null; | 107 var _url = null; |
109 var _queryParams = new core.Map(); | 108 var _queryParams = new core.Map(); |
110 var _uploadMedia = null; | 109 var _uploadMedia = null; |
111 var _uploadOptions = null; | 110 var _uploadOptions = null; |
112 var _downloadOptions = commons.DownloadOptions.Metadata; | 111 var _downloadOptions = commons.DownloadOptions.Metadata; |
113 var _body = null; | 112 var _body = null; |
114 | 113 |
115 | |
116 _url = 'achievements/reset'; | 114 _url = 'achievements/reset'; |
117 | 115 |
118 var _response = _requester.request(_url, | 116 var _response = _requester.request(_url, "POST", |
119 "POST", | 117 body: _body, |
120 body: _body, | 118 queryParams: _queryParams, |
121 queryParams: _queryParams, | 119 uploadOptions: _uploadOptions, |
122 uploadOptions: _uploadOptions, | 120 uploadMedia: _uploadMedia, |
123 uploadMedia: _uploadMedia, | 121 downloadOptions: _downloadOptions); |
124 downloadOptions: _downloadOptions); | 122 return _response |
125 return _response.then((data) => new AchievementResetAllResponse.fromJson(dat
a)); | 123 .then((data) => new AchievementResetAllResponse.fromJson(data)); |
126 } | 124 } |
127 | 125 |
128 /** | 126 /// Resets all draft achievements for all players. This method is only |
129 * Resets all draft achievements for all players. This method is only | 127 /// available to user accounts for your developer console. |
130 * available to user accounts for your developer console. | 128 /// |
131 * | 129 /// Request parameters: |
132 * Request parameters: | 130 /// |
133 * | 131 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 132 /// an error. |
135 * error. | 133 /// |
136 * | 134 /// If the used [http.Client] completes with an error when making a REST |
137 * If the used [http.Client] completes with an error when making a REST call, | 135 /// call, this method will complete with the same error. |
138 * this method will complete with the same error. | |
139 */ | |
140 async.Future resetAllForAllPlayers() { | 136 async.Future resetAllForAllPlayers() { |
141 var _url = null; | 137 var _url = null; |
142 var _queryParams = new core.Map(); | 138 var _queryParams = new core.Map(); |
143 var _uploadMedia = null; | 139 var _uploadMedia = null; |
144 var _uploadOptions = null; | 140 var _uploadOptions = null; |
145 var _downloadOptions = commons.DownloadOptions.Metadata; | 141 var _downloadOptions = commons.DownloadOptions.Metadata; |
146 var _body = null; | 142 var _body = null; |
147 | 143 |
148 | |
149 _downloadOptions = null; | 144 _downloadOptions = null; |
150 | 145 |
151 _url = 'achievements/resetAllForAllPlayers'; | 146 _url = 'achievements/resetAllForAllPlayers'; |
152 | 147 |
153 var _response = _requester.request(_url, | 148 var _response = _requester.request(_url, "POST", |
154 "POST", | 149 body: _body, |
155 body: _body, | 150 queryParams: _queryParams, |
156 queryParams: _queryParams, | 151 uploadOptions: _uploadOptions, |
157 uploadOptions: _uploadOptions, | 152 uploadMedia: _uploadMedia, |
158 uploadMedia: _uploadMedia, | 153 downloadOptions: _downloadOptions); |
159 downloadOptions: _downloadOptions); | |
160 return _response.then((data) => null); | 154 return _response.then((data) => null); |
161 } | 155 } |
162 | 156 |
163 /** | 157 /// Resets the achievement with the given ID for all players. This method is |
164 * Resets the achievement with the given ID for all players. This method is | 158 /// only available to user accounts for your developer console. Only draft |
165 * only available to user accounts for your developer console. Only draft | 159 /// achievements can be reset. |
166 * achievements can be reset. | 160 /// |
167 * | 161 /// Request parameters: |
168 * Request parameters: | 162 /// |
169 * | 163 /// [achievementId] - The ID of the achievement used by this method. |
170 * [achievementId] - The ID of the achievement used by this method. | 164 /// |
171 * | 165 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
172 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 166 /// an error. |
173 * error. | 167 /// |
174 * | 168 /// If the used [http.Client] completes with an error when making a REST |
175 * If the used [http.Client] completes with an error when making a REST call, | 169 /// call, this method will complete with the same error. |
176 * this method will complete with the same error. | |
177 */ | |
178 async.Future resetForAllPlayers(core.String achievementId) { | 170 async.Future resetForAllPlayers(core.String achievementId) { |
179 var _url = null; | 171 var _url = null; |
180 var _queryParams = new core.Map(); | 172 var _queryParams = new core.Map(); |
181 var _uploadMedia = null; | 173 var _uploadMedia = null; |
182 var _uploadOptions = null; | 174 var _uploadOptions = null; |
183 var _downloadOptions = commons.DownloadOptions.Metadata; | 175 var _downloadOptions = commons.DownloadOptions.Metadata; |
184 var _body = null; | 176 var _body = null; |
185 | 177 |
186 if (achievementId == null) { | 178 if (achievementId == null) { |
187 throw new core.ArgumentError("Parameter achievementId is required."); | 179 throw new core.ArgumentError("Parameter achievementId is required."); |
188 } | 180 } |
189 | 181 |
190 _downloadOptions = null; | 182 _downloadOptions = null; |
191 | 183 |
192 _url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId') + '
/resetForAllPlayers'; | 184 _url = 'achievements/' + |
| 185 commons.Escaper.ecapeVariable('$achievementId') + |
| 186 '/resetForAllPlayers'; |
193 | 187 |
194 var _response = _requester.request(_url, | 188 var _response = _requester.request(_url, "POST", |
195 "POST", | 189 body: _body, |
196 body: _body, | 190 queryParams: _queryParams, |
197 queryParams: _queryParams, | 191 uploadOptions: _uploadOptions, |
198 uploadOptions: _uploadOptions, | 192 uploadMedia: _uploadMedia, |
199 uploadMedia: _uploadMedia, | 193 downloadOptions: _downloadOptions); |
200 downloadOptions: _downloadOptions); | |
201 return _response.then((data) => null); | 194 return _response.then((data) => null); |
202 } | 195 } |
203 | 196 |
204 /** | 197 /// Resets achievements with the given IDs for all players. This method is |
205 * Resets achievements with the given IDs for all players. This method is only | 198 /// only available to user accounts for your developer console. Only draft |
206 * available to user accounts for your developer console. Only draft | 199 /// achievements may be reset. |
207 * achievements may be reset. | 200 /// |
208 * | 201 /// [request] - The metadata request object. |
209 * [request] - The metadata request object. | 202 /// |
210 * | 203 /// Request parameters: |
211 * Request parameters: | 204 /// |
212 * | 205 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
213 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 206 /// an error. |
214 * error. | 207 /// |
215 * | 208 /// If the used [http.Client] completes with an error when making a REST |
216 * If the used [http.Client] completes with an error when making a REST call, | 209 /// call, this method will complete with the same error. |
217 * this method will complete with the same error. | 210 async.Future resetMultipleForAllPlayers( |
218 */ | 211 AchievementResetMultipleForAllRequest request) { |
219 async.Future resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest
request) { | |
220 var _url = null; | 212 var _url = null; |
221 var _queryParams = new core.Map(); | 213 var _queryParams = new core.Map(); |
222 var _uploadMedia = null; | 214 var _uploadMedia = null; |
223 var _uploadOptions = null; | 215 var _uploadOptions = null; |
224 var _downloadOptions = commons.DownloadOptions.Metadata; | 216 var _downloadOptions = commons.DownloadOptions.Metadata; |
225 var _body = null; | 217 var _body = null; |
226 | 218 |
227 if (request != null) { | 219 if (request != null) { |
228 _body = convert.JSON.encode((request).toJson()); | 220 _body = convert.JSON.encode((request).toJson()); |
229 } | 221 } |
230 | 222 |
231 _downloadOptions = null; | 223 _downloadOptions = null; |
232 | 224 |
233 _url = 'achievements/resetMultipleForAllPlayers'; | 225 _url = 'achievements/resetMultipleForAllPlayers'; |
234 | 226 |
235 var _response = _requester.request(_url, | 227 var _response = _requester.request(_url, "POST", |
236 "POST", | 228 body: _body, |
237 body: _body, | 229 queryParams: _queryParams, |
238 queryParams: _queryParams, | 230 uploadOptions: _uploadOptions, |
239 uploadOptions: _uploadOptions, | 231 uploadMedia: _uploadMedia, |
240 uploadMedia: _uploadMedia, | 232 downloadOptions: _downloadOptions); |
241 downloadOptions: _downloadOptions); | |
242 return _response.then((data) => null); | 233 return _response.then((data) => null); |
243 } | 234 } |
244 | |
245 } | 235 } |
246 | 236 |
247 | |
248 class ApplicationsResourceApi { | 237 class ApplicationsResourceApi { |
249 final commons.ApiRequester _requester; | 238 final commons.ApiRequester _requester; |
250 | 239 |
251 ApplicationsResourceApi(commons.ApiRequester client) : | 240 ApplicationsResourceApi(commons.ApiRequester client) : _requester = client; |
252 _requester = client; | |
253 | 241 |
254 /** | 242 /// Get the list of players hidden from the given application. This method is |
255 * Get the list of players hidden from the given application. This method is | 243 /// only available to user accounts for your developer console. |
256 * only available to user accounts for your developer console. | 244 /// |
257 * | 245 /// Request parameters: |
258 * Request parameters: | 246 /// |
259 * | 247 /// [applicationId] - The application ID from the Google Play developer |
260 * [applicationId] - The application ID from the Google Play developer | 248 /// console. |
261 * console. | 249 /// |
262 * | 250 /// [maxResults] - The maximum number of player resources to return in the |
263 * [maxResults] - The maximum number of player resources to return in the | 251 /// response, used for paging. For any response, the actual number of player |
264 * response, used for paging. For any response, the actual number of player | 252 /// resources returned may be less than the specified maxResults. |
265 * resources returned may be less than the specified maxResults. | 253 /// Value must be between "1" and "50". |
266 * Value must be between "1" and "50". | 254 /// |
267 * | 255 /// [pageToken] - The token returned by the previous request. |
268 * [pageToken] - The token returned by the previous request. | 256 /// |
269 * | 257 /// Completes with a [HiddenPlayerList]. |
270 * Completes with a [HiddenPlayerList]. | 258 /// |
271 * | 259 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
272 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 260 /// an error. |
273 * error. | 261 /// |
274 * | 262 /// If the used [http.Client] completes with an error when making a REST |
275 * If the used [http.Client] completes with an error when making a REST call, | 263 /// call, this method will complete with the same error. |
276 * this method will complete with the same error. | 264 async.Future<HiddenPlayerList> listHidden(core.String applicationId, |
277 */ | 265 {core.int maxResults, core.String pageToken}) { |
278 async.Future<HiddenPlayerList> listHidden(core.String applicationId, {core.int
maxResults, core.String pageToken}) { | |
279 var _url = null; | 266 var _url = null; |
280 var _queryParams = new core.Map(); | 267 var _queryParams = new core.Map(); |
281 var _uploadMedia = null; | 268 var _uploadMedia = null; |
282 var _uploadOptions = null; | 269 var _uploadOptions = null; |
283 var _downloadOptions = commons.DownloadOptions.Metadata; | 270 var _downloadOptions = commons.DownloadOptions.Metadata; |
284 var _body = null; | 271 var _body = null; |
285 | 272 |
286 if (applicationId == null) { | 273 if (applicationId == null) { |
287 throw new core.ArgumentError("Parameter applicationId is required."); | 274 throw new core.ArgumentError("Parameter applicationId is required."); |
288 } | 275 } |
289 if (maxResults != null) { | 276 if (maxResults != null) { |
290 _queryParams["maxResults"] = ["${maxResults}"]; | 277 _queryParams["maxResults"] = ["${maxResults}"]; |
291 } | 278 } |
292 if (pageToken != null) { | 279 if (pageToken != null) { |
293 _queryParams["pageToken"] = [pageToken]; | 280 _queryParams["pageToken"] = [pageToken]; |
294 } | 281 } |
295 | 282 |
296 _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '
/players/hidden'; | 283 _url = 'applications/' + |
| 284 commons.Escaper.ecapeVariable('$applicationId') + |
| 285 '/players/hidden'; |
297 | 286 |
298 var _response = _requester.request(_url, | 287 var _response = _requester.request(_url, "GET", |
299 "GET", | 288 body: _body, |
300 body: _body, | 289 queryParams: _queryParams, |
301 queryParams: _queryParams, | 290 uploadOptions: _uploadOptions, |
302 uploadOptions: _uploadOptions, | 291 uploadMedia: _uploadMedia, |
303 uploadMedia: _uploadMedia, | 292 downloadOptions: _downloadOptions); |
304 downloadOptions: _downloadOptions); | |
305 return _response.then((data) => new HiddenPlayerList.fromJson(data)); | 293 return _response.then((data) => new HiddenPlayerList.fromJson(data)); |
306 } | 294 } |
307 | |
308 } | 295 } |
309 | 296 |
310 | |
311 class EventsResourceApi { | 297 class EventsResourceApi { |
312 final commons.ApiRequester _requester; | 298 final commons.ApiRequester _requester; |
313 | 299 |
314 EventsResourceApi(commons.ApiRequester client) : | 300 EventsResourceApi(commons.ApiRequester client) : _requester = client; |
315 _requester = client; | |
316 | 301 |
317 /** | 302 /// Resets all player progress on the event with the given ID for the |
318 * Resets all player progress on the event with the given ID for the currently | 303 /// currently authenticated player. This method is only accessible to |
319 * authenticated player. This method is only accessible to whitelisted tester | 304 /// whitelisted tester accounts for your application. All quests for this |
320 * accounts for your application. All quests for this player that use the | 305 /// player that use the event will also be reset. |
321 * event will also be reset. | 306 /// |
322 * | 307 /// Request parameters: |
323 * Request parameters: | 308 /// |
324 * | 309 /// [eventId] - The ID of the event. |
325 * [eventId] - The ID of the event. | 310 /// |
326 * | 311 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 312 /// an error. |
328 * error. | 313 /// |
329 * | 314 /// If the used [http.Client] completes with an error when making a REST |
330 * If the used [http.Client] completes with an error when making a REST call, | 315 /// call, this method will complete with the same error. |
331 * this method will complete with the same error. | |
332 */ | |
333 async.Future reset(core.String eventId) { | 316 async.Future reset(core.String eventId) { |
334 var _url = null; | 317 var _url = null; |
335 var _queryParams = new core.Map(); | 318 var _queryParams = new core.Map(); |
336 var _uploadMedia = null; | 319 var _uploadMedia = null; |
337 var _uploadOptions = null; | 320 var _uploadOptions = null; |
338 var _downloadOptions = commons.DownloadOptions.Metadata; | 321 var _downloadOptions = commons.DownloadOptions.Metadata; |
339 var _body = null; | 322 var _body = null; |
340 | 323 |
341 if (eventId == null) { | 324 if (eventId == null) { |
342 throw new core.ArgumentError("Parameter eventId is required."); | 325 throw new core.ArgumentError("Parameter eventId is required."); |
343 } | 326 } |
344 | 327 |
345 _downloadOptions = null; | 328 _downloadOptions = null; |
346 | 329 |
347 _url = 'events/' + commons.Escaper.ecapeVariable('$eventId') + '/reset'; | 330 _url = 'events/' + commons.Escaper.ecapeVariable('$eventId') + '/reset'; |
348 | 331 |
349 var _response = _requester.request(_url, | 332 var _response = _requester.request(_url, "POST", |
350 "POST", | 333 body: _body, |
351 body: _body, | 334 queryParams: _queryParams, |
352 queryParams: _queryParams, | 335 uploadOptions: _uploadOptions, |
353 uploadOptions: _uploadOptions, | 336 uploadMedia: _uploadMedia, |
354 uploadMedia: _uploadMedia, | 337 downloadOptions: _downloadOptions); |
355 downloadOptions: _downloadOptions); | |
356 return _response.then((data) => null); | 338 return _response.then((data) => null); |
357 } | 339 } |
358 | 340 |
359 /** | 341 /// Resets all player progress on all events for the currently authenticated |
360 * Resets all player progress on all events for the currently authenticated | 342 /// player. This method is only accessible to whitelisted tester accounts for |
361 * player. This method is only accessible to whitelisted tester accounts for | 343 /// your application. All quests for this player will also be reset. |
362 * your application. All quests for this player will also be reset. | 344 /// |
363 * | 345 /// Request parameters: |
364 * Request parameters: | 346 /// |
365 * | 347 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 348 /// an error. |
367 * error. | 349 /// |
368 * | 350 /// If the used [http.Client] completes with an error when making a REST |
369 * If the used [http.Client] completes with an error when making a REST call, | 351 /// call, this method will complete with the same error. |
370 * this method will complete with the same error. | |
371 */ | |
372 async.Future resetAll() { | 352 async.Future resetAll() { |
373 var _url = null; | 353 var _url = null; |
374 var _queryParams = new core.Map(); | 354 var _queryParams = new core.Map(); |
375 var _uploadMedia = null; | 355 var _uploadMedia = null; |
376 var _uploadOptions = null; | 356 var _uploadOptions = null; |
377 var _downloadOptions = commons.DownloadOptions.Metadata; | 357 var _downloadOptions = commons.DownloadOptions.Metadata; |
378 var _body = null; | 358 var _body = null; |
379 | 359 |
380 | |
381 _downloadOptions = null; | 360 _downloadOptions = null; |
382 | 361 |
383 _url = 'events/reset'; | 362 _url = 'events/reset'; |
384 | 363 |
385 var _response = _requester.request(_url, | 364 var _response = _requester.request(_url, "POST", |
386 "POST", | 365 body: _body, |
387 body: _body, | 366 queryParams: _queryParams, |
388 queryParams: _queryParams, | 367 uploadOptions: _uploadOptions, |
389 uploadOptions: _uploadOptions, | 368 uploadMedia: _uploadMedia, |
390 uploadMedia: _uploadMedia, | 369 downloadOptions: _downloadOptions); |
391 downloadOptions: _downloadOptions); | |
392 return _response.then((data) => null); | 370 return _response.then((data) => null); |
393 } | 371 } |
394 | 372 |
395 /** | 373 /// Resets all draft events for all players. This method is only available to |
396 * Resets all draft events for all players. This method is only available to | 374 /// user accounts for your developer console. All quests that use any of |
397 * user accounts for your developer console. All quests that use any of these | 375 /// these events will also be reset. |
398 * events will also be reset. | 376 /// |
399 * | 377 /// Request parameters: |
400 * Request parameters: | 378 /// |
401 * | 379 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 380 /// an error. |
403 * error. | 381 /// |
404 * | 382 /// If the used [http.Client] completes with an error when making a REST |
405 * If the used [http.Client] completes with an error when making a REST call, | 383 /// call, this method will complete with the same error. |
406 * this method will complete with the same error. | |
407 */ | |
408 async.Future resetAllForAllPlayers() { | 384 async.Future resetAllForAllPlayers() { |
409 var _url = null; | 385 var _url = null; |
410 var _queryParams = new core.Map(); | 386 var _queryParams = new core.Map(); |
411 var _uploadMedia = null; | 387 var _uploadMedia = null; |
412 var _uploadOptions = null; | 388 var _uploadOptions = null; |
413 var _downloadOptions = commons.DownloadOptions.Metadata; | 389 var _downloadOptions = commons.DownloadOptions.Metadata; |
414 var _body = null; | 390 var _body = null; |
415 | 391 |
416 | |
417 _downloadOptions = null; | 392 _downloadOptions = null; |
418 | 393 |
419 _url = 'events/resetAllForAllPlayers'; | 394 _url = 'events/resetAllForAllPlayers'; |
420 | 395 |
421 var _response = _requester.request(_url, | 396 var _response = _requester.request(_url, "POST", |
422 "POST", | 397 body: _body, |
423 body: _body, | 398 queryParams: _queryParams, |
424 queryParams: _queryParams, | 399 uploadOptions: _uploadOptions, |
425 uploadOptions: _uploadOptions, | 400 uploadMedia: _uploadMedia, |
426 uploadMedia: _uploadMedia, | 401 downloadOptions: _downloadOptions); |
427 downloadOptions: _downloadOptions); | |
428 return _response.then((data) => null); | 402 return _response.then((data) => null); |
429 } | 403 } |
430 | 404 |
431 /** | 405 /// Resets the event with the given ID for all players. This method is only |
432 * Resets the event with the given ID for all players. This method is only | 406 /// available to user accounts for your developer console. Only draft events |
433 * available to user accounts for your developer console. Only draft events | 407 /// can be reset. All quests that use the event will also be reset. |
434 * can be reset. All quests that use the event will also be reset. | 408 /// |
435 * | 409 /// Request parameters: |
436 * Request parameters: | 410 /// |
437 * | 411 /// [eventId] - The ID of the event. |
438 * [eventId] - The ID of the event. | 412 /// |
439 * | 413 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 414 /// an error. |
441 * error. | 415 /// |
442 * | 416 /// If the used [http.Client] completes with an error when making a REST |
443 * If the used [http.Client] completes with an error when making a REST call, | 417 /// call, this method will complete with the same error. |
444 * this method will complete with the same error. | |
445 */ | |
446 async.Future resetForAllPlayers(core.String eventId) { | 418 async.Future resetForAllPlayers(core.String eventId) { |
447 var _url = null; | 419 var _url = null; |
448 var _queryParams = new core.Map(); | 420 var _queryParams = new core.Map(); |
449 var _uploadMedia = null; | 421 var _uploadMedia = null; |
450 var _uploadOptions = null; | 422 var _uploadOptions = null; |
451 var _downloadOptions = commons.DownloadOptions.Metadata; | 423 var _downloadOptions = commons.DownloadOptions.Metadata; |
452 var _body = null; | 424 var _body = null; |
453 | 425 |
454 if (eventId == null) { | 426 if (eventId == null) { |
455 throw new core.ArgumentError("Parameter eventId is required."); | 427 throw new core.ArgumentError("Parameter eventId is required."); |
456 } | 428 } |
457 | 429 |
458 _downloadOptions = null; | 430 _downloadOptions = null; |
459 | 431 |
460 _url = 'events/' + commons.Escaper.ecapeVariable('$eventId') + '/resetForAll
Players'; | 432 _url = 'events/' + |
| 433 commons.Escaper.ecapeVariable('$eventId') + |
| 434 '/resetForAllPlayers'; |
461 | 435 |
462 var _response = _requester.request(_url, | 436 var _response = _requester.request(_url, "POST", |
463 "POST", | 437 body: _body, |
464 body: _body, | 438 queryParams: _queryParams, |
465 queryParams: _queryParams, | 439 uploadOptions: _uploadOptions, |
466 uploadOptions: _uploadOptions, | 440 uploadMedia: _uploadMedia, |
467 uploadMedia: _uploadMedia, | 441 downloadOptions: _downloadOptions); |
468 downloadOptions: _downloadOptions); | |
469 return _response.then((data) => null); | 442 return _response.then((data) => null); |
470 } | 443 } |
471 | 444 |
472 /** | 445 /// Resets events with the given IDs for all players. This method is only |
473 * Resets events with the given IDs for all players. This method is only | 446 /// available to user accounts for your developer console. Only draft events |
474 * available to user accounts for your developer console. Only draft events | 447 /// may be reset. All quests that use any of the events will also be reset. |
475 * may be reset. All quests that use any of the events will also be reset. | 448 /// |
476 * | 449 /// [request] - The metadata request object. |
477 * [request] - The metadata request object. | 450 /// |
478 * | 451 /// Request parameters: |
479 * Request parameters: | 452 /// |
480 * | 453 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 454 /// an error. |
482 * error. | 455 /// |
483 * | 456 /// If the used [http.Client] completes with an error when making a REST |
484 * If the used [http.Client] completes with an error when making a REST call, | 457 /// call, this method will complete with the same error. |
485 * this method will complete with the same error. | 458 async.Future resetMultipleForAllPlayers( |
486 */ | 459 EventsResetMultipleForAllRequest request) { |
487 async.Future resetMultipleForAllPlayers(EventsResetMultipleForAllRequest reque
st) { | |
488 var _url = null; | 460 var _url = null; |
489 var _queryParams = new core.Map(); | 461 var _queryParams = new core.Map(); |
490 var _uploadMedia = null; | 462 var _uploadMedia = null; |
491 var _uploadOptions = null; | 463 var _uploadOptions = null; |
492 var _downloadOptions = commons.DownloadOptions.Metadata; | 464 var _downloadOptions = commons.DownloadOptions.Metadata; |
493 var _body = null; | 465 var _body = null; |
494 | 466 |
495 if (request != null) { | 467 if (request != null) { |
496 _body = convert.JSON.encode((request).toJson()); | 468 _body = convert.JSON.encode((request).toJson()); |
497 } | 469 } |
498 | 470 |
499 _downloadOptions = null; | 471 _downloadOptions = null; |
500 | 472 |
501 _url = 'events/resetMultipleForAllPlayers'; | 473 _url = 'events/resetMultipleForAllPlayers'; |
502 | 474 |
503 var _response = _requester.request(_url, | 475 var _response = _requester.request(_url, "POST", |
504 "POST", | 476 body: _body, |
505 body: _body, | 477 queryParams: _queryParams, |
506 queryParams: _queryParams, | 478 uploadOptions: _uploadOptions, |
507 uploadOptions: _uploadOptions, | 479 uploadMedia: _uploadMedia, |
508 uploadMedia: _uploadMedia, | 480 downloadOptions: _downloadOptions); |
509 downloadOptions: _downloadOptions); | |
510 return _response.then((data) => null); | 481 return _response.then((data) => null); |
511 } | 482 } |
512 | |
513 } | 483 } |
514 | 484 |
515 | |
516 class PlayersResourceApi { | 485 class PlayersResourceApi { |
517 final commons.ApiRequester _requester; | 486 final commons.ApiRequester _requester; |
518 | 487 |
519 PlayersResourceApi(commons.ApiRequester client) : | 488 PlayersResourceApi(commons.ApiRequester client) : _requester = client; |
520 _requester = client; | |
521 | 489 |
522 /** | 490 /// Hide the given player's leaderboard scores from the given application. |
523 * Hide the given player's leaderboard scores from the given application. This | 491 /// This method is only available to user accounts for your developer |
524 * method is only available to user accounts for your developer console. | 492 /// console. |
525 * | 493 /// |
526 * Request parameters: | 494 /// Request parameters: |
527 * | 495 /// |
528 * [applicationId] - The application ID from the Google Play developer | 496 /// [applicationId] - The application ID from the Google Play developer |
529 * console. | 497 /// console. |
530 * | 498 /// |
531 * [playerId] - A player ID. A value of me may be used in place of the | 499 /// [playerId] - A player ID. A value of me may be used in place of the |
532 * authenticated player's ID. | 500 /// authenticated player's ID. |
533 * | 501 /// |
534 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 502 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
535 * error. | 503 /// an error. |
536 * | 504 /// |
537 * If the used [http.Client] completes with an error when making a REST call, | 505 /// If the used [http.Client] completes with an error when making a REST |
538 * this method will complete with the same error. | 506 /// call, this method will complete with the same error. |
539 */ | |
540 async.Future hide(core.String applicationId, core.String playerId) { | 507 async.Future hide(core.String applicationId, core.String playerId) { |
541 var _url = null; | 508 var _url = null; |
542 var _queryParams = new core.Map(); | 509 var _queryParams = new core.Map(); |
543 var _uploadMedia = null; | 510 var _uploadMedia = null; |
544 var _uploadOptions = null; | 511 var _uploadOptions = null; |
545 var _downloadOptions = commons.DownloadOptions.Metadata; | 512 var _downloadOptions = commons.DownloadOptions.Metadata; |
546 var _body = null; | 513 var _body = null; |
547 | 514 |
548 if (applicationId == null) { | 515 if (applicationId == null) { |
549 throw new core.ArgumentError("Parameter applicationId is required."); | 516 throw new core.ArgumentError("Parameter applicationId is required."); |
550 } | 517 } |
551 if (playerId == null) { | 518 if (playerId == null) { |
552 throw new core.ArgumentError("Parameter playerId is required."); | 519 throw new core.ArgumentError("Parameter playerId is required."); |
553 } | 520 } |
554 | 521 |
555 _downloadOptions = null; | 522 _downloadOptions = null; |
556 | 523 |
557 _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '
/players/hidden/' + commons.Escaper.ecapeVariable('$playerId'); | 524 _url = 'applications/' + |
| 525 commons.Escaper.ecapeVariable('$applicationId') + |
| 526 '/players/hidden/' + |
| 527 commons.Escaper.ecapeVariable('$playerId'); |
558 | 528 |
559 var _response = _requester.request(_url, | 529 var _response = _requester.request(_url, "POST", |
560 "POST", | 530 body: _body, |
561 body: _body, | 531 queryParams: _queryParams, |
562 queryParams: _queryParams, | 532 uploadOptions: _uploadOptions, |
563 uploadOptions: _uploadOptions, | 533 uploadMedia: _uploadMedia, |
564 uploadMedia: _uploadMedia, | 534 downloadOptions: _downloadOptions); |
565 downloadOptions: _downloadOptions); | |
566 return _response.then((data) => null); | 535 return _response.then((data) => null); |
567 } | 536 } |
568 | 537 |
569 /** | 538 /// Unhide the given player's leaderboard scores from the given application. |
570 * Unhide the given player's leaderboard scores from the given application. | 539 /// This method is only available to user accounts for your developer |
571 * This method is only available to user accounts for your developer console. | 540 /// console. |
572 * | 541 /// |
573 * Request parameters: | 542 /// Request parameters: |
574 * | 543 /// |
575 * [applicationId] - The application ID from the Google Play developer | 544 /// [applicationId] - The application ID from the Google Play developer |
576 * console. | 545 /// console. |
577 * | 546 /// |
578 * [playerId] - A player ID. A value of me may be used in place of the | 547 /// [playerId] - A player ID. A value of me may be used in place of the |
579 * authenticated player's ID. | 548 /// authenticated player's ID. |
580 * | 549 /// |
581 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 550 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
582 * error. | 551 /// an error. |
583 * | 552 /// |
584 * If the used [http.Client] completes with an error when making a REST call, | 553 /// If the used [http.Client] completes with an error when making a REST |
585 * this method will complete with the same error. | 554 /// call, this method will complete with the same error. |
586 */ | |
587 async.Future unhide(core.String applicationId, core.String playerId) { | 555 async.Future unhide(core.String applicationId, core.String playerId) { |
588 var _url = null; | 556 var _url = null; |
589 var _queryParams = new core.Map(); | 557 var _queryParams = new core.Map(); |
590 var _uploadMedia = null; | 558 var _uploadMedia = null; |
591 var _uploadOptions = null; | 559 var _uploadOptions = null; |
592 var _downloadOptions = commons.DownloadOptions.Metadata; | 560 var _downloadOptions = commons.DownloadOptions.Metadata; |
593 var _body = null; | 561 var _body = null; |
594 | 562 |
595 if (applicationId == null) { | 563 if (applicationId == null) { |
596 throw new core.ArgumentError("Parameter applicationId is required."); | 564 throw new core.ArgumentError("Parameter applicationId is required."); |
597 } | 565 } |
598 if (playerId == null) { | 566 if (playerId == null) { |
599 throw new core.ArgumentError("Parameter playerId is required."); | 567 throw new core.ArgumentError("Parameter playerId is required."); |
600 } | 568 } |
601 | 569 |
602 _downloadOptions = null; | 570 _downloadOptions = null; |
603 | 571 |
604 _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '
/players/hidden/' + commons.Escaper.ecapeVariable('$playerId'); | 572 _url = 'applications/' + |
| 573 commons.Escaper.ecapeVariable('$applicationId') + |
| 574 '/players/hidden/' + |
| 575 commons.Escaper.ecapeVariable('$playerId'); |
605 | 576 |
606 var _response = _requester.request(_url, | 577 var _response = _requester.request(_url, "DELETE", |
607 "DELETE", | 578 body: _body, |
608 body: _body, | 579 queryParams: _queryParams, |
609 queryParams: _queryParams, | 580 uploadOptions: _uploadOptions, |
610 uploadOptions: _uploadOptions, | 581 uploadMedia: _uploadMedia, |
611 uploadMedia: _uploadMedia, | 582 downloadOptions: _downloadOptions); |
612 downloadOptions: _downloadOptions); | |
613 return _response.then((data) => null); | 583 return _response.then((data) => null); |
614 } | 584 } |
615 | |
616 } | 585 } |
617 | 586 |
618 | |
619 class QuestsResourceApi { | 587 class QuestsResourceApi { |
620 final commons.ApiRequester _requester; | 588 final commons.ApiRequester _requester; |
621 | 589 |
622 QuestsResourceApi(commons.ApiRequester client) : | 590 QuestsResourceApi(commons.ApiRequester client) : _requester = client; |
623 _requester = client; | |
624 | 591 |
625 /** | 592 /// Resets all player progress on the quest with the given ID for the |
626 * Resets all player progress on the quest with the given ID for the currently | 593 /// currently authenticated player. This method is only accessible to |
627 * authenticated player. This method is only accessible to whitelisted tester | 594 /// whitelisted tester accounts for your application. |
628 * accounts for your application. | 595 /// |
629 * | 596 /// Request parameters: |
630 * Request parameters: | 597 /// |
631 * | 598 /// [questId] - The ID of the quest. |
632 * [questId] - The ID of the quest. | 599 /// |
633 * | 600 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 601 /// an error. |
635 * error. | 602 /// |
636 * | 603 /// If the used [http.Client] completes with an error when making a REST |
637 * If the used [http.Client] completes with an error when making a REST call, | 604 /// call, this method will complete with the same error. |
638 * this method will complete with the same error. | |
639 */ | |
640 async.Future reset(core.String questId) { | 605 async.Future reset(core.String questId) { |
641 var _url = null; | 606 var _url = null; |
642 var _queryParams = new core.Map(); | 607 var _queryParams = new core.Map(); |
643 var _uploadMedia = null; | 608 var _uploadMedia = null; |
644 var _uploadOptions = null; | 609 var _uploadOptions = null; |
645 var _downloadOptions = commons.DownloadOptions.Metadata; | 610 var _downloadOptions = commons.DownloadOptions.Metadata; |
646 var _body = null; | 611 var _body = null; |
647 | 612 |
648 if (questId == null) { | 613 if (questId == null) { |
649 throw new core.ArgumentError("Parameter questId is required."); | 614 throw new core.ArgumentError("Parameter questId is required."); |
650 } | 615 } |
651 | 616 |
652 _downloadOptions = null; | 617 _downloadOptions = null; |
653 | 618 |
654 _url = 'quests/' + commons.Escaper.ecapeVariable('$questId') + '/reset'; | 619 _url = 'quests/' + commons.Escaper.ecapeVariable('$questId') + '/reset'; |
655 | 620 |
656 var _response = _requester.request(_url, | 621 var _response = _requester.request(_url, "POST", |
657 "POST", | 622 body: _body, |
658 body: _body, | 623 queryParams: _queryParams, |
659 queryParams: _queryParams, | 624 uploadOptions: _uploadOptions, |
660 uploadOptions: _uploadOptions, | 625 uploadMedia: _uploadMedia, |
661 uploadMedia: _uploadMedia, | 626 downloadOptions: _downloadOptions); |
662 downloadOptions: _downloadOptions); | |
663 return _response.then((data) => null); | 627 return _response.then((data) => null); |
664 } | 628 } |
665 | 629 |
666 /** | 630 /// Resets all player progress on all quests for the currently authenticated |
667 * Resets all player progress on all quests for the currently authenticated | 631 /// player. This method is only accessible to whitelisted tester accounts for |
668 * player. This method is only accessible to whitelisted tester accounts for | 632 /// your application. |
669 * your application. | 633 /// |
670 * | 634 /// Request parameters: |
671 * Request parameters: | 635 /// |
672 * | 636 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
673 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 637 /// an error. |
674 * error. | 638 /// |
675 * | 639 /// If the used [http.Client] completes with an error when making a REST |
676 * If the used [http.Client] completes with an error when making a REST call, | 640 /// call, this method will complete with the same error. |
677 * this method will complete with the same error. | |
678 */ | |
679 async.Future resetAll() { | 641 async.Future resetAll() { |
680 var _url = null; | 642 var _url = null; |
681 var _queryParams = new core.Map(); | 643 var _queryParams = new core.Map(); |
682 var _uploadMedia = null; | 644 var _uploadMedia = null; |
683 var _uploadOptions = null; | 645 var _uploadOptions = null; |
684 var _downloadOptions = commons.DownloadOptions.Metadata; | 646 var _downloadOptions = commons.DownloadOptions.Metadata; |
685 var _body = null; | 647 var _body = null; |
686 | 648 |
687 | |
688 _downloadOptions = null; | 649 _downloadOptions = null; |
689 | 650 |
690 _url = 'quests/reset'; | 651 _url = 'quests/reset'; |
691 | 652 |
692 var _response = _requester.request(_url, | 653 var _response = _requester.request(_url, "POST", |
693 "POST", | 654 body: _body, |
694 body: _body, | 655 queryParams: _queryParams, |
695 queryParams: _queryParams, | 656 uploadOptions: _uploadOptions, |
696 uploadOptions: _uploadOptions, | 657 uploadMedia: _uploadMedia, |
697 uploadMedia: _uploadMedia, | 658 downloadOptions: _downloadOptions); |
698 downloadOptions: _downloadOptions); | |
699 return _response.then((data) => null); | 659 return _response.then((data) => null); |
700 } | 660 } |
701 | 661 |
702 /** | 662 /// Resets all draft quests for all players. This method is only available to |
703 * Resets all draft quests for all players. This method is only available to | 663 /// user accounts for your developer console. |
704 * user accounts for your developer console. | 664 /// |
705 * | 665 /// Request parameters: |
706 * Request parameters: | 666 /// |
707 * | 667 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
708 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 668 /// an error. |
709 * error. | 669 /// |
710 * | 670 /// If the used [http.Client] completes with an error when making a REST |
711 * If the used [http.Client] completes with an error when making a REST call, | 671 /// call, this method will complete with the same error. |
712 * this method will complete with the same error. | |
713 */ | |
714 async.Future resetAllForAllPlayers() { | 672 async.Future resetAllForAllPlayers() { |
715 var _url = null; | 673 var _url = null; |
716 var _queryParams = new core.Map(); | 674 var _queryParams = new core.Map(); |
717 var _uploadMedia = null; | 675 var _uploadMedia = null; |
718 var _uploadOptions = null; | 676 var _uploadOptions = null; |
719 var _downloadOptions = commons.DownloadOptions.Metadata; | 677 var _downloadOptions = commons.DownloadOptions.Metadata; |
720 var _body = null; | 678 var _body = null; |
721 | 679 |
722 | |
723 _downloadOptions = null; | 680 _downloadOptions = null; |
724 | 681 |
725 _url = 'quests/resetAllForAllPlayers'; | 682 _url = 'quests/resetAllForAllPlayers'; |
726 | 683 |
727 var _response = _requester.request(_url, | 684 var _response = _requester.request(_url, "POST", |
728 "POST", | 685 body: _body, |
729 body: _body, | 686 queryParams: _queryParams, |
730 queryParams: _queryParams, | 687 uploadOptions: _uploadOptions, |
731 uploadOptions: _uploadOptions, | 688 uploadMedia: _uploadMedia, |
732 uploadMedia: _uploadMedia, | 689 downloadOptions: _downloadOptions); |
733 downloadOptions: _downloadOptions); | |
734 return _response.then((data) => null); | 690 return _response.then((data) => null); |
735 } | 691 } |
736 | 692 |
737 /** | 693 /// Resets all player progress on the quest with the given ID for all |
738 * Resets all player progress on the quest with the given ID for all players. | 694 /// players. This method is only available to user accounts for your |
739 * This method is only available to user accounts for your developer console. | 695 /// developer console. Only draft quests can be reset. |
740 * Only draft quests can be reset. | 696 /// |
741 * | 697 /// Request parameters: |
742 * Request parameters: | 698 /// |
743 * | 699 /// [questId] - The ID of the quest. |
744 * [questId] - The ID of the quest. | 700 /// |
745 * | 701 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
746 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 702 /// an error. |
747 * error. | 703 /// |
748 * | 704 /// If the used [http.Client] completes with an error when making a REST |
749 * If the used [http.Client] completes with an error when making a REST call, | 705 /// call, this method will complete with the same error. |
750 * this method will complete with the same error. | |
751 */ | |
752 async.Future resetForAllPlayers(core.String questId) { | 706 async.Future resetForAllPlayers(core.String questId) { |
753 var _url = null; | 707 var _url = null; |
754 var _queryParams = new core.Map(); | 708 var _queryParams = new core.Map(); |
755 var _uploadMedia = null; | 709 var _uploadMedia = null; |
756 var _uploadOptions = null; | 710 var _uploadOptions = null; |
757 var _downloadOptions = commons.DownloadOptions.Metadata; | 711 var _downloadOptions = commons.DownloadOptions.Metadata; |
758 var _body = null; | 712 var _body = null; |
759 | 713 |
760 if (questId == null) { | 714 if (questId == null) { |
761 throw new core.ArgumentError("Parameter questId is required."); | 715 throw new core.ArgumentError("Parameter questId is required."); |
762 } | 716 } |
763 | 717 |
764 _downloadOptions = null; | 718 _downloadOptions = null; |
765 | 719 |
766 _url = 'quests/' + commons.Escaper.ecapeVariable('$questId') + '/resetForAll
Players'; | 720 _url = 'quests/' + |
| 721 commons.Escaper.ecapeVariable('$questId') + |
| 722 '/resetForAllPlayers'; |
767 | 723 |
768 var _response = _requester.request(_url, | 724 var _response = _requester.request(_url, "POST", |
769 "POST", | 725 body: _body, |
770 body: _body, | 726 queryParams: _queryParams, |
771 queryParams: _queryParams, | 727 uploadOptions: _uploadOptions, |
772 uploadOptions: _uploadOptions, | 728 uploadMedia: _uploadMedia, |
773 uploadMedia: _uploadMedia, | 729 downloadOptions: _downloadOptions); |
774 downloadOptions: _downloadOptions); | |
775 return _response.then((data) => null); | 730 return _response.then((data) => null); |
776 } | 731 } |
777 | 732 |
778 /** | 733 /// Resets quests with the given IDs for all players. This method is only |
779 * Resets quests with the given IDs for all players. This method is only | 734 /// available to user accounts for your developer console. Only draft quests |
780 * available to user accounts for your developer console. Only draft quests | 735 /// may be reset. |
781 * may be reset. | 736 /// |
782 * | 737 /// [request] - The metadata request object. |
783 * [request] - The metadata request object. | 738 /// |
784 * | 739 /// Request parameters: |
785 * Request parameters: | 740 /// |
786 * | 741 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
787 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 742 /// an error. |
788 * error. | 743 /// |
789 * | 744 /// If the used [http.Client] completes with an error when making a REST |
790 * If the used [http.Client] completes with an error when making a REST call, | 745 /// call, this method will complete with the same error. |
791 * this method will complete with the same error. | 746 async.Future resetMultipleForAllPlayers( |
792 */ | 747 QuestsResetMultipleForAllRequest request) { |
793 async.Future resetMultipleForAllPlayers(QuestsResetMultipleForAllRequest reque
st) { | |
794 var _url = null; | 748 var _url = null; |
795 var _queryParams = new core.Map(); | 749 var _queryParams = new core.Map(); |
796 var _uploadMedia = null; | 750 var _uploadMedia = null; |
797 var _uploadOptions = null; | 751 var _uploadOptions = null; |
798 var _downloadOptions = commons.DownloadOptions.Metadata; | 752 var _downloadOptions = commons.DownloadOptions.Metadata; |
799 var _body = null; | 753 var _body = null; |
800 | 754 |
801 if (request != null) { | 755 if (request != null) { |
802 _body = convert.JSON.encode((request).toJson()); | 756 _body = convert.JSON.encode((request).toJson()); |
803 } | 757 } |
804 | 758 |
805 _downloadOptions = null; | 759 _downloadOptions = null; |
806 | 760 |
807 _url = 'quests/resetMultipleForAllPlayers'; | 761 _url = 'quests/resetMultipleForAllPlayers'; |
808 | 762 |
809 var _response = _requester.request(_url, | 763 var _response = _requester.request(_url, "POST", |
810 "POST", | 764 body: _body, |
811 body: _body, | 765 queryParams: _queryParams, |
812 queryParams: _queryParams, | 766 uploadOptions: _uploadOptions, |
813 uploadOptions: _uploadOptions, | 767 uploadMedia: _uploadMedia, |
814 uploadMedia: _uploadMedia, | 768 downloadOptions: _downloadOptions); |
815 downloadOptions: _downloadOptions); | |
816 return _response.then((data) => null); | 769 return _response.then((data) => null); |
817 } | 770 } |
818 | |
819 } | 771 } |
820 | 772 |
821 | |
822 class RoomsResourceApi { | 773 class RoomsResourceApi { |
823 final commons.ApiRequester _requester; | 774 final commons.ApiRequester _requester; |
824 | 775 |
825 RoomsResourceApi(commons.ApiRequester client) : | 776 RoomsResourceApi(commons.ApiRequester client) : _requester = client; |
826 _requester = client; | |
827 | 777 |
828 /** | 778 /// Reset all rooms for the currently authenticated player for your |
829 * Reset all rooms for the currently authenticated player for your | 779 /// application. This method is only accessible to whitelisted tester |
830 * application. This method is only accessible to whitelisted tester accounts | 780 /// accounts for your application. |
831 * for your application. | 781 /// |
832 * | 782 /// Request parameters: |
833 * Request parameters: | 783 /// |
834 * | 784 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
835 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 785 /// an error. |
836 * error. | 786 /// |
837 * | 787 /// If the used [http.Client] completes with an error when making a REST |
838 * If the used [http.Client] completes with an error when making a REST call, | 788 /// call, this method will complete with the same error. |
839 * this method will complete with the same error. | |
840 */ | |
841 async.Future reset() { | 789 async.Future reset() { |
842 var _url = null; | 790 var _url = null; |
843 var _queryParams = new core.Map(); | 791 var _queryParams = new core.Map(); |
844 var _uploadMedia = null; | 792 var _uploadMedia = null; |
845 var _uploadOptions = null; | 793 var _uploadOptions = null; |
846 var _downloadOptions = commons.DownloadOptions.Metadata; | 794 var _downloadOptions = commons.DownloadOptions.Metadata; |
847 var _body = null; | 795 var _body = null; |
848 | 796 |
849 | |
850 _downloadOptions = null; | 797 _downloadOptions = null; |
851 | 798 |
852 _url = 'rooms/reset'; | 799 _url = 'rooms/reset'; |
853 | 800 |
854 var _response = _requester.request(_url, | 801 var _response = _requester.request(_url, "POST", |
855 "POST", | 802 body: _body, |
856 body: _body, | 803 queryParams: _queryParams, |
857 queryParams: _queryParams, | 804 uploadOptions: _uploadOptions, |
858 uploadOptions: _uploadOptions, | 805 uploadMedia: _uploadMedia, |
859 uploadMedia: _uploadMedia, | 806 downloadOptions: _downloadOptions); |
860 downloadOptions: _downloadOptions); | |
861 return _response.then((data) => null); | 807 return _response.then((data) => null); |
862 } | 808 } |
863 | 809 |
864 /** | 810 /// Deletes rooms where the only room participants are from whitelisted |
865 * Deletes rooms where the only room participants are from whitelisted tester | 811 /// tester accounts for your application. This method is only available to |
866 * accounts for your application. This method is only available to user | 812 /// user accounts for your developer console. |
867 * accounts for your developer console. | 813 /// |
868 * | 814 /// Request parameters: |
869 * Request parameters: | 815 /// |
870 * | 816 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
871 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 817 /// an error. |
872 * error. | 818 /// |
873 * | 819 /// If the used [http.Client] completes with an error when making a REST |
874 * If the used [http.Client] completes with an error when making a REST call, | 820 /// call, this method will complete with the same error. |
875 * this method will complete with the same error. | |
876 */ | |
877 async.Future resetForAllPlayers() { | 821 async.Future resetForAllPlayers() { |
878 var _url = null; | 822 var _url = null; |
879 var _queryParams = new core.Map(); | 823 var _queryParams = new core.Map(); |
880 var _uploadMedia = null; | 824 var _uploadMedia = null; |
881 var _uploadOptions = null; | 825 var _uploadOptions = null; |
882 var _downloadOptions = commons.DownloadOptions.Metadata; | 826 var _downloadOptions = commons.DownloadOptions.Metadata; |
883 var _body = null; | 827 var _body = null; |
884 | 828 |
885 | |
886 _downloadOptions = null; | 829 _downloadOptions = null; |
887 | 830 |
888 _url = 'rooms/resetForAllPlayers'; | 831 _url = 'rooms/resetForAllPlayers'; |
889 | 832 |
890 var _response = _requester.request(_url, | 833 var _response = _requester.request(_url, "POST", |
891 "POST", | 834 body: _body, |
892 body: _body, | 835 queryParams: _queryParams, |
893 queryParams: _queryParams, | 836 uploadOptions: _uploadOptions, |
894 uploadOptions: _uploadOptions, | 837 uploadMedia: _uploadMedia, |
895 uploadMedia: _uploadMedia, | 838 downloadOptions: _downloadOptions); |
896 downloadOptions: _downloadOptions); | |
897 return _response.then((data) => null); | 839 return _response.then((data) => null); |
898 } | 840 } |
899 | |
900 } | 841 } |
901 | 842 |
902 | |
903 class ScoresResourceApi { | 843 class ScoresResourceApi { |
904 final commons.ApiRequester _requester; | 844 final commons.ApiRequester _requester; |
905 | 845 |
906 ScoresResourceApi(commons.ApiRequester client) : | 846 ScoresResourceApi(commons.ApiRequester client) : _requester = client; |
907 _requester = client; | |
908 | 847 |
909 /** | 848 /// Resets scores for the leaderboard with the given ID for the currently |
910 * Resets scores for the leaderboard with the given ID for the currently | 849 /// authenticated player. This method is only accessible to whitelisted |
911 * authenticated player. This method is only accessible to whitelisted tester | 850 /// tester accounts for your application. |
912 * accounts for your application. | 851 /// |
913 * | 852 /// Request parameters: |
914 * Request parameters: | 853 /// |
915 * | 854 /// [leaderboardId] - The ID of the leaderboard. |
916 * [leaderboardId] - The ID of the leaderboard. | 855 /// |
917 * | 856 /// Completes with a [PlayerScoreResetResponse]. |
918 * Completes with a [PlayerScoreResetResponse]. | 857 /// |
919 * | 858 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
920 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 859 /// an error. |
921 * error. | 860 /// |
922 * | 861 /// If the used [http.Client] completes with an error when making a REST |
923 * If the used [http.Client] completes with an error when making a REST call, | 862 /// call, this method will complete with the same error. |
924 * this method will complete with the same error. | |
925 */ | |
926 async.Future<PlayerScoreResetResponse> reset(core.String leaderboardId) { | 863 async.Future<PlayerScoreResetResponse> reset(core.String leaderboardId) { |
927 var _url = null; | 864 var _url = null; |
928 var _queryParams = new core.Map(); | 865 var _queryParams = new core.Map(); |
929 var _uploadMedia = null; | 866 var _uploadMedia = null; |
930 var _uploadOptions = null; | 867 var _uploadOptions = null; |
931 var _downloadOptions = commons.DownloadOptions.Metadata; | 868 var _downloadOptions = commons.DownloadOptions.Metadata; |
932 var _body = null; | 869 var _body = null; |
933 | 870 |
934 if (leaderboardId == null) { | 871 if (leaderboardId == null) { |
935 throw new core.ArgumentError("Parameter leaderboardId is required."); | 872 throw new core.ArgumentError("Parameter leaderboardId is required."); |
936 } | 873 } |
937 | 874 |
938 _url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId') + '
/scores/reset'; | 875 _url = 'leaderboards/' + |
| 876 commons.Escaper.ecapeVariable('$leaderboardId') + |
| 877 '/scores/reset'; |
939 | 878 |
940 var _response = _requester.request(_url, | 879 var _response = _requester.request(_url, "POST", |
941 "POST", | 880 body: _body, |
942 body: _body, | 881 queryParams: _queryParams, |
943 queryParams: _queryParams, | 882 uploadOptions: _uploadOptions, |
944 uploadOptions: _uploadOptions, | 883 uploadMedia: _uploadMedia, |
945 uploadMedia: _uploadMedia, | 884 downloadOptions: _downloadOptions); |
946 downloadOptions: _downloadOptions); | 885 return _response |
947 return _response.then((data) => new PlayerScoreResetResponse.fromJson(data))
; | 886 .then((data) => new PlayerScoreResetResponse.fromJson(data)); |
948 } | 887 } |
949 | 888 |
950 /** | 889 /// Resets all scores for all leaderboards for the currently authenticated |
951 * Resets all scores for all leaderboards for the currently authenticated | 890 /// players. This method is only accessible to whitelisted tester accounts |
952 * players. This method is only accessible to whitelisted tester accounts for | 891 /// for your application. |
953 * your application. | 892 /// |
954 * | 893 /// Request parameters: |
955 * Request parameters: | 894 /// |
956 * | 895 /// Completes with a [PlayerScoreResetAllResponse]. |
957 * Completes with a [PlayerScoreResetAllResponse]. | 896 /// |
958 * | 897 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
959 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 898 /// an error. |
960 * error. | 899 /// |
961 * | 900 /// If the used [http.Client] completes with an error when making a REST |
962 * If the used [http.Client] completes with an error when making a REST call, | 901 /// call, this method will complete with the same error. |
963 * this method will complete with the same error. | |
964 */ | |
965 async.Future<PlayerScoreResetAllResponse> resetAll() { | 902 async.Future<PlayerScoreResetAllResponse> resetAll() { |
966 var _url = null; | 903 var _url = null; |
967 var _queryParams = new core.Map(); | 904 var _queryParams = new core.Map(); |
968 var _uploadMedia = null; | 905 var _uploadMedia = null; |
969 var _uploadOptions = null; | 906 var _uploadOptions = null; |
970 var _downloadOptions = commons.DownloadOptions.Metadata; | 907 var _downloadOptions = commons.DownloadOptions.Metadata; |
971 var _body = null; | 908 var _body = null; |
972 | 909 |
973 | |
974 _url = 'scores/reset'; | 910 _url = 'scores/reset'; |
975 | 911 |
976 var _response = _requester.request(_url, | 912 var _response = _requester.request(_url, "POST", |
977 "POST", | 913 body: _body, |
978 body: _body, | 914 queryParams: _queryParams, |
979 queryParams: _queryParams, | 915 uploadOptions: _uploadOptions, |
980 uploadOptions: _uploadOptions, | 916 uploadMedia: _uploadMedia, |
981 uploadMedia: _uploadMedia, | 917 downloadOptions: _downloadOptions); |
982 downloadOptions: _downloadOptions); | 918 return _response |
983 return _response.then((data) => new PlayerScoreResetAllResponse.fromJson(dat
a)); | 919 .then((data) => new PlayerScoreResetAllResponse.fromJson(data)); |
984 } | 920 } |
985 | 921 |
986 /** | 922 /// Resets scores for all draft leaderboards for all players. This method is |
987 * Resets scores for all draft leaderboards for all players. This method is | 923 /// only available to user accounts for your developer console. |
988 * only available to user accounts for your developer console. | 924 /// |
989 * | 925 /// Request parameters: |
990 * Request parameters: | 926 /// |
991 * | 927 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
992 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 928 /// an error. |
993 * error. | 929 /// |
994 * | 930 /// If the used [http.Client] completes with an error when making a REST |
995 * If the used [http.Client] completes with an error when making a REST call, | 931 /// call, this method will complete with the same error. |
996 * this method will complete with the same error. | |
997 */ | |
998 async.Future resetAllForAllPlayers() { | 932 async.Future resetAllForAllPlayers() { |
999 var _url = null; | 933 var _url = null; |
1000 var _queryParams = new core.Map(); | 934 var _queryParams = new core.Map(); |
1001 var _uploadMedia = null; | 935 var _uploadMedia = null; |
1002 var _uploadOptions = null; | 936 var _uploadOptions = null; |
1003 var _downloadOptions = commons.DownloadOptions.Metadata; | 937 var _downloadOptions = commons.DownloadOptions.Metadata; |
1004 var _body = null; | 938 var _body = null; |
1005 | 939 |
1006 | |
1007 _downloadOptions = null; | 940 _downloadOptions = null; |
1008 | 941 |
1009 _url = 'scores/resetAllForAllPlayers'; | 942 _url = 'scores/resetAllForAllPlayers'; |
1010 | 943 |
1011 var _response = _requester.request(_url, | 944 var _response = _requester.request(_url, "POST", |
1012 "POST", | 945 body: _body, |
1013 body: _body, | 946 queryParams: _queryParams, |
1014 queryParams: _queryParams, | 947 uploadOptions: _uploadOptions, |
1015 uploadOptions: _uploadOptions, | 948 uploadMedia: _uploadMedia, |
1016 uploadMedia: _uploadMedia, | 949 downloadOptions: _downloadOptions); |
1017 downloadOptions: _downloadOptions); | |
1018 return _response.then((data) => null); | 950 return _response.then((data) => null); |
1019 } | 951 } |
1020 | 952 |
1021 /** | 953 /// Resets scores for the leaderboard with the given ID for all players. This |
1022 * Resets scores for the leaderboard with the given ID for all players. This | 954 /// method is only available to user accounts for your developer console. |
1023 * method is only available to user accounts for your developer console. Only | 955 /// Only draft leaderboards can be reset. |
1024 * draft leaderboards can be reset. | 956 /// |
1025 * | 957 /// Request parameters: |
1026 * Request parameters: | 958 /// |
1027 * | 959 /// [leaderboardId] - The ID of the leaderboard. |
1028 * [leaderboardId] - The ID of the leaderboard. | 960 /// |
1029 * | 961 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1030 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 962 /// an error. |
1031 * error. | 963 /// |
1032 * | 964 /// If the used [http.Client] completes with an error when making a REST |
1033 * If the used [http.Client] completes with an error when making a REST call, | 965 /// call, this method will complete with the same error. |
1034 * this method will complete with the same error. | |
1035 */ | |
1036 async.Future resetForAllPlayers(core.String leaderboardId) { | 966 async.Future resetForAllPlayers(core.String leaderboardId) { |
1037 var _url = null; | 967 var _url = null; |
1038 var _queryParams = new core.Map(); | 968 var _queryParams = new core.Map(); |
1039 var _uploadMedia = null; | 969 var _uploadMedia = null; |
1040 var _uploadOptions = null; | 970 var _uploadOptions = null; |
1041 var _downloadOptions = commons.DownloadOptions.Metadata; | 971 var _downloadOptions = commons.DownloadOptions.Metadata; |
1042 var _body = null; | 972 var _body = null; |
1043 | 973 |
1044 if (leaderboardId == null) { | 974 if (leaderboardId == null) { |
1045 throw new core.ArgumentError("Parameter leaderboardId is required."); | 975 throw new core.ArgumentError("Parameter leaderboardId is required."); |
1046 } | 976 } |
1047 | 977 |
1048 _downloadOptions = null; | 978 _downloadOptions = null; |
1049 | 979 |
1050 _url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId') + '
/scores/resetForAllPlayers'; | 980 _url = 'leaderboards/' + |
| 981 commons.Escaper.ecapeVariable('$leaderboardId') + |
| 982 '/scores/resetForAllPlayers'; |
1051 | 983 |
1052 var _response = _requester.request(_url, | 984 var _response = _requester.request(_url, "POST", |
1053 "POST", | 985 body: _body, |
1054 body: _body, | 986 queryParams: _queryParams, |
1055 queryParams: _queryParams, | 987 uploadOptions: _uploadOptions, |
1056 uploadOptions: _uploadOptions, | 988 uploadMedia: _uploadMedia, |
1057 uploadMedia: _uploadMedia, | 989 downloadOptions: _downloadOptions); |
1058 downloadOptions: _downloadOptions); | |
1059 return _response.then((data) => null); | 990 return _response.then((data) => null); |
1060 } | 991 } |
1061 | 992 |
1062 /** | 993 /// Resets scores for the leaderboards with the given IDs for all players. |
1063 * Resets scores for the leaderboards with the given IDs for all players. This | 994 /// This method is only available to user accounts for your developer |
1064 * method is only available to user accounts for your developer console. Only | 995 /// console. Only draft leaderboards may be reset. |
1065 * draft leaderboards may be reset. | 996 /// |
1066 * | 997 /// [request] - The metadata request object. |
1067 * [request] - The metadata request object. | 998 /// |
1068 * | 999 /// Request parameters: |
1069 * Request parameters: | 1000 /// |
1070 * | 1001 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1071 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1002 /// an error. |
1072 * error. | 1003 /// |
1073 * | 1004 /// If the used [http.Client] completes with an error when making a REST |
1074 * If the used [http.Client] completes with an error when making a REST call, | 1005 /// call, this method will complete with the same error. |
1075 * this method will complete with the same error. | 1006 async.Future resetMultipleForAllPlayers( |
1076 */ | 1007 ScoresResetMultipleForAllRequest request) { |
1077 async.Future resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest reque
st) { | |
1078 var _url = null; | 1008 var _url = null; |
1079 var _queryParams = new core.Map(); | 1009 var _queryParams = new core.Map(); |
1080 var _uploadMedia = null; | 1010 var _uploadMedia = null; |
1081 var _uploadOptions = null; | 1011 var _uploadOptions = null; |
1082 var _downloadOptions = commons.DownloadOptions.Metadata; | 1012 var _downloadOptions = commons.DownloadOptions.Metadata; |
1083 var _body = null; | 1013 var _body = null; |
1084 | 1014 |
1085 if (request != null) { | 1015 if (request != null) { |
1086 _body = convert.JSON.encode((request).toJson()); | 1016 _body = convert.JSON.encode((request).toJson()); |
1087 } | 1017 } |
1088 | 1018 |
1089 _downloadOptions = null; | 1019 _downloadOptions = null; |
1090 | 1020 |
1091 _url = 'scores/resetMultipleForAllPlayers'; | 1021 _url = 'scores/resetMultipleForAllPlayers'; |
1092 | 1022 |
1093 var _response = _requester.request(_url, | 1023 var _response = _requester.request(_url, "POST", |
1094 "POST", | 1024 body: _body, |
1095 body: _body, | 1025 queryParams: _queryParams, |
1096 queryParams: _queryParams, | 1026 uploadOptions: _uploadOptions, |
1097 uploadOptions: _uploadOptions, | 1027 uploadMedia: _uploadMedia, |
1098 uploadMedia: _uploadMedia, | 1028 downloadOptions: _downloadOptions); |
1099 downloadOptions: _downloadOptions); | |
1100 return _response.then((data) => null); | 1029 return _response.then((data) => null); |
1101 } | 1030 } |
1102 | |
1103 } | 1031 } |
1104 | 1032 |
1105 | |
1106 class TurnBasedMatchesResourceApi { | 1033 class TurnBasedMatchesResourceApi { |
1107 final commons.ApiRequester _requester; | 1034 final commons.ApiRequester _requester; |
1108 | 1035 |
1109 TurnBasedMatchesResourceApi(commons.ApiRequester client) : | 1036 TurnBasedMatchesResourceApi(commons.ApiRequester client) |
1110 _requester = client; | 1037 : _requester = client; |
1111 | 1038 |
1112 /** | 1039 /// Reset all turn-based match data for a user. This method is only |
1113 * Reset all turn-based match data for a user. This method is only accessible | 1040 /// accessible to whitelisted tester accounts for your application. |
1114 * to whitelisted tester accounts for your application. | 1041 /// |
1115 * | 1042 /// Request parameters: |
1116 * Request parameters: | 1043 /// |
1117 * | 1044 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1045 /// an error. |
1119 * error. | 1046 /// |
1120 * | 1047 /// If the used [http.Client] completes with an error when making a REST |
1121 * If the used [http.Client] completes with an error when making a REST call, | 1048 /// call, this method will complete with the same error. |
1122 * this method will complete with the same error. | |
1123 */ | |
1124 async.Future reset() { | 1049 async.Future reset() { |
1125 var _url = null; | 1050 var _url = null; |
1126 var _queryParams = new core.Map(); | 1051 var _queryParams = new core.Map(); |
1127 var _uploadMedia = null; | 1052 var _uploadMedia = null; |
1128 var _uploadOptions = null; | 1053 var _uploadOptions = null; |
1129 var _downloadOptions = commons.DownloadOptions.Metadata; | 1054 var _downloadOptions = commons.DownloadOptions.Metadata; |
1130 var _body = null; | 1055 var _body = null; |
1131 | 1056 |
1132 | |
1133 _downloadOptions = null; | 1057 _downloadOptions = null; |
1134 | 1058 |
1135 _url = 'turnbasedmatches/reset'; | 1059 _url = 'turnbasedmatches/reset'; |
1136 | 1060 |
1137 var _response = _requester.request(_url, | 1061 var _response = _requester.request(_url, "POST", |
1138 "POST", | 1062 body: _body, |
1139 body: _body, | 1063 queryParams: _queryParams, |
1140 queryParams: _queryParams, | 1064 uploadOptions: _uploadOptions, |
1141 uploadOptions: _uploadOptions, | 1065 uploadMedia: _uploadMedia, |
1142 uploadMedia: _uploadMedia, | 1066 downloadOptions: _downloadOptions); |
1143 downloadOptions: _downloadOptions); | |
1144 return _response.then((data) => null); | 1067 return _response.then((data) => null); |
1145 } | 1068 } |
1146 | 1069 |
1147 /** | 1070 /// Deletes turn-based matches where the only match participants are from |
1148 * Deletes turn-based matches where the only match participants are from | 1071 /// whitelisted tester accounts for your application. This method is only |
1149 * whitelisted tester accounts for your application. This method is only | 1072 /// available to user accounts for your developer console. |
1150 * available to user accounts for your developer console. | 1073 /// |
1151 * | 1074 /// Request parameters: |
1152 * Request parameters: | 1075 /// |
1153 * | 1076 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1077 /// an error. |
1155 * error. | 1078 /// |
1156 * | 1079 /// If the used [http.Client] completes with an error when making a REST |
1157 * If the used [http.Client] completes with an error when making a REST call, | 1080 /// call, this method will complete with the same error. |
1158 * this method will complete with the same error. | |
1159 */ | |
1160 async.Future resetForAllPlayers() { | 1081 async.Future resetForAllPlayers() { |
1161 var _url = null; | 1082 var _url = null; |
1162 var _queryParams = new core.Map(); | 1083 var _queryParams = new core.Map(); |
1163 var _uploadMedia = null; | 1084 var _uploadMedia = null; |
1164 var _uploadOptions = null; | 1085 var _uploadOptions = null; |
1165 var _downloadOptions = commons.DownloadOptions.Metadata; | 1086 var _downloadOptions = commons.DownloadOptions.Metadata; |
1166 var _body = null; | 1087 var _body = null; |
1167 | 1088 |
1168 | |
1169 _downloadOptions = null; | 1089 _downloadOptions = null; |
1170 | 1090 |
1171 _url = 'turnbasedmatches/resetForAllPlayers'; | 1091 _url = 'turnbasedmatches/resetForAllPlayers'; |
1172 | 1092 |
1173 var _response = _requester.request(_url, | 1093 var _response = _requester.request(_url, "POST", |
1174 "POST", | 1094 body: _body, |
1175 body: _body, | 1095 queryParams: _queryParams, |
1176 queryParams: _queryParams, | 1096 uploadOptions: _uploadOptions, |
1177 uploadOptions: _uploadOptions, | 1097 uploadMedia: _uploadMedia, |
1178 uploadMedia: _uploadMedia, | 1098 downloadOptions: _downloadOptions); |
1179 downloadOptions: _downloadOptions); | |
1180 return _response.then((data) => null); | 1099 return _response.then((data) => null); |
1181 } | 1100 } |
1182 | |
1183 } | 1101 } |
1184 | 1102 |
| 1103 /// This is a JSON template for achievement reset all response. |
| 1104 class AchievementResetAllResponse { |
| 1105 /// Uniquely identifies the type of this resource. Value is always the fixed |
| 1106 /// string gamesManagement#achievementResetAllResponse. |
| 1107 core.String kind; |
1185 | 1108 |
1186 | 1109 /// The achievement reset results. |
1187 /** This is a JSON template for achievement reset all response. */ | |
1188 class AchievementResetAllResponse { | |
1189 /** | |
1190 * Uniquely identifies the type of this resource. Value is always the fixed | |
1191 * string gamesManagement#achievementResetAllResponse. | |
1192 */ | |
1193 core.String kind; | |
1194 /** The achievement reset results. */ | |
1195 core.List<AchievementResetResponse> results; | 1110 core.List<AchievementResetResponse> results; |
1196 | 1111 |
1197 AchievementResetAllResponse(); | 1112 AchievementResetAllResponse(); |
1198 | 1113 |
1199 AchievementResetAllResponse.fromJson(core.Map _json) { | 1114 AchievementResetAllResponse.fromJson(core.Map _json) { |
1200 if (_json.containsKey("kind")) { | 1115 if (_json.containsKey("kind")) { |
1201 kind = _json["kind"]; | 1116 kind = _json["kind"]; |
1202 } | 1117 } |
1203 if (_json.containsKey("results")) { | 1118 if (_json.containsKey("results")) { |
1204 results = _json["results"].map((value) => new AchievementResetResponse.fro
mJson(value)).toList(); | 1119 results = _json["results"] |
| 1120 .map((value) => new AchievementResetResponse.fromJson(value)) |
| 1121 .toList(); |
1205 } | 1122 } |
1206 } | 1123 } |
1207 | 1124 |
1208 core.Map<core.String, core.Object> toJson() { | 1125 core.Map<core.String, core.Object> toJson() { |
1209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1126 final core.Map<core.String, core.Object> _json = |
| 1127 new core.Map<core.String, core.Object>(); |
1210 if (kind != null) { | 1128 if (kind != null) { |
1211 _json["kind"] = kind; | 1129 _json["kind"] = kind; |
1212 } | 1130 } |
1213 if (results != null) { | 1131 if (results != null) { |
1214 _json["results"] = results.map((value) => (value).toJson()).toList(); | 1132 _json["results"] = results.map((value) => (value).toJson()).toList(); |
1215 } | 1133 } |
1216 return _json; | 1134 return _json; |
1217 } | 1135 } |
1218 } | 1136 } |
1219 | 1137 |
1220 /** This is a JSON template for multiple achievements reset all request. */ | 1138 /// This is a JSON template for multiple achievements reset all request. |
1221 class AchievementResetMultipleForAllRequest { | 1139 class AchievementResetMultipleForAllRequest { |
1222 /** The IDs of achievements to reset. */ | 1140 /// The IDs of achievements to reset. |
1223 core.List<core.String> achievementIds; | 1141 core.List<core.String> achievementIds; |
1224 /** | 1142 |
1225 * Uniquely identifies the type of this resource. Value is always the fixed | 1143 /// Uniquely identifies the type of this resource. Value is always the fixed |
1226 * string gamesManagement#achievementResetMultipleForAllRequest. | 1144 /// string gamesManagement#achievementResetMultipleForAllRequest. |
1227 */ | |
1228 core.String kind; | 1145 core.String kind; |
1229 | 1146 |
1230 AchievementResetMultipleForAllRequest(); | 1147 AchievementResetMultipleForAllRequest(); |
1231 | 1148 |
1232 AchievementResetMultipleForAllRequest.fromJson(core.Map _json) { | 1149 AchievementResetMultipleForAllRequest.fromJson(core.Map _json) { |
1233 if (_json.containsKey("achievement_ids")) { | 1150 if (_json.containsKey("achievement_ids")) { |
1234 achievementIds = _json["achievement_ids"]; | 1151 achievementIds = _json["achievement_ids"]; |
1235 } | 1152 } |
1236 if (_json.containsKey("kind")) { | 1153 if (_json.containsKey("kind")) { |
1237 kind = _json["kind"]; | 1154 kind = _json["kind"]; |
1238 } | 1155 } |
1239 } | 1156 } |
1240 | 1157 |
1241 core.Map<core.String, core.Object> toJson() { | 1158 core.Map<core.String, core.Object> toJson() { |
1242 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1159 final core.Map<core.String, core.Object> _json = |
| 1160 new core.Map<core.String, core.Object>(); |
1243 if (achievementIds != null) { | 1161 if (achievementIds != null) { |
1244 _json["achievement_ids"] = achievementIds; | 1162 _json["achievement_ids"] = achievementIds; |
1245 } | 1163 } |
1246 if (kind != null) { | 1164 if (kind != null) { |
1247 _json["kind"] = kind; | 1165 _json["kind"] = kind; |
1248 } | 1166 } |
1249 return _json; | 1167 return _json; |
1250 } | 1168 } |
1251 } | 1169 } |
1252 | 1170 |
1253 /** This is a JSON template for an achievement reset response. */ | 1171 /// This is a JSON template for an achievement reset response. |
1254 class AchievementResetResponse { | 1172 class AchievementResetResponse { |
1255 /** | 1173 /// The current state of the achievement. This is the same as the initial |
1256 * The current state of the achievement. This is the same as the initial state | 1174 /// state of the achievement. |
1257 * of the achievement. | 1175 /// Possible values are: |
1258 * Possible values are: | 1176 /// - "HIDDEN"- Achievement is hidden. |
1259 * - "HIDDEN"- Achievement is hidden. | 1177 /// - "REVEALED" - Achievement is revealed. |
1260 * - "REVEALED" - Achievement is revealed. | 1178 /// - "UNLOCKED" - Achievement is unlocked. |
1261 * - "UNLOCKED" - Achievement is unlocked. | |
1262 */ | |
1263 core.String currentState; | 1179 core.String currentState; |
1264 /** The ID of an achievement for which player state has been updated. */ | 1180 |
| 1181 /// The ID of an achievement for which player state has been updated. |
1265 core.String definitionId; | 1182 core.String definitionId; |
1266 /** | 1183 |
1267 * Uniquely identifies the type of this resource. Value is always the fixed | 1184 /// Uniquely identifies the type of this resource. Value is always the fixed |
1268 * string gamesManagement#achievementResetResponse. | 1185 /// string gamesManagement#achievementResetResponse. |
1269 */ | |
1270 core.String kind; | 1186 core.String kind; |
1271 /** Flag to indicate if the requested update actually occurred. */ | 1187 |
| 1188 /// Flag to indicate if the requested update actually occurred. |
1272 core.bool updateOccurred; | 1189 core.bool updateOccurred; |
1273 | 1190 |
1274 AchievementResetResponse(); | 1191 AchievementResetResponse(); |
1275 | 1192 |
1276 AchievementResetResponse.fromJson(core.Map _json) { | 1193 AchievementResetResponse.fromJson(core.Map _json) { |
1277 if (_json.containsKey("currentState")) { | 1194 if (_json.containsKey("currentState")) { |
1278 currentState = _json["currentState"]; | 1195 currentState = _json["currentState"]; |
1279 } | 1196 } |
1280 if (_json.containsKey("definitionId")) { | 1197 if (_json.containsKey("definitionId")) { |
1281 definitionId = _json["definitionId"]; | 1198 definitionId = _json["definitionId"]; |
1282 } | 1199 } |
1283 if (_json.containsKey("kind")) { | 1200 if (_json.containsKey("kind")) { |
1284 kind = _json["kind"]; | 1201 kind = _json["kind"]; |
1285 } | 1202 } |
1286 if (_json.containsKey("updateOccurred")) { | 1203 if (_json.containsKey("updateOccurred")) { |
1287 updateOccurred = _json["updateOccurred"]; | 1204 updateOccurred = _json["updateOccurred"]; |
1288 } | 1205 } |
1289 } | 1206 } |
1290 | 1207 |
1291 core.Map<core.String, core.Object> toJson() { | 1208 core.Map<core.String, core.Object> toJson() { |
1292 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1209 final core.Map<core.String, core.Object> _json = |
| 1210 new core.Map<core.String, core.Object>(); |
1293 if (currentState != null) { | 1211 if (currentState != null) { |
1294 _json["currentState"] = currentState; | 1212 _json["currentState"] = currentState; |
1295 } | 1213 } |
1296 if (definitionId != null) { | 1214 if (definitionId != null) { |
1297 _json["definitionId"] = definitionId; | 1215 _json["definitionId"] = definitionId; |
1298 } | 1216 } |
1299 if (kind != null) { | 1217 if (kind != null) { |
1300 _json["kind"] = kind; | 1218 _json["kind"] = kind; |
1301 } | 1219 } |
1302 if (updateOccurred != null) { | 1220 if (updateOccurred != null) { |
1303 _json["updateOccurred"] = updateOccurred; | 1221 _json["updateOccurred"] = updateOccurred; |
1304 } | 1222 } |
1305 return _json; | 1223 return _json; |
1306 } | 1224 } |
1307 } | 1225 } |
1308 | 1226 |
1309 /** This is a JSON template for multiple events reset all request. */ | 1227 /// This is a JSON template for multiple events reset all request. |
1310 class EventsResetMultipleForAllRequest { | 1228 class EventsResetMultipleForAllRequest { |
1311 /** The IDs of events to reset. */ | 1229 /// The IDs of events to reset. |
1312 core.List<core.String> eventIds; | 1230 core.List<core.String> eventIds; |
1313 /** | 1231 |
1314 * Uniquely identifies the type of this resource. Value is always the fixed | 1232 /// Uniquely identifies the type of this resource. Value is always the fixed |
1315 * string gamesManagement#eventsResetMultipleForAllRequest. | 1233 /// string gamesManagement#eventsResetMultipleForAllRequest. |
1316 */ | |
1317 core.String kind; | 1234 core.String kind; |
1318 | 1235 |
1319 EventsResetMultipleForAllRequest(); | 1236 EventsResetMultipleForAllRequest(); |
1320 | 1237 |
1321 EventsResetMultipleForAllRequest.fromJson(core.Map _json) { | 1238 EventsResetMultipleForAllRequest.fromJson(core.Map _json) { |
1322 if (_json.containsKey("event_ids")) { | 1239 if (_json.containsKey("event_ids")) { |
1323 eventIds = _json["event_ids"]; | 1240 eventIds = _json["event_ids"]; |
1324 } | 1241 } |
1325 if (_json.containsKey("kind")) { | 1242 if (_json.containsKey("kind")) { |
1326 kind = _json["kind"]; | 1243 kind = _json["kind"]; |
1327 } | 1244 } |
1328 } | 1245 } |
1329 | 1246 |
1330 core.Map<core.String, core.Object> toJson() { | 1247 core.Map<core.String, core.Object> toJson() { |
1331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1248 final core.Map<core.String, core.Object> _json = |
| 1249 new core.Map<core.String, core.Object>(); |
1332 if (eventIds != null) { | 1250 if (eventIds != null) { |
1333 _json["event_ids"] = eventIds; | 1251 _json["event_ids"] = eventIds; |
1334 } | 1252 } |
1335 if (kind != null) { | 1253 if (kind != null) { |
1336 _json["kind"] = kind; | 1254 _json["kind"] = kind; |
1337 } | 1255 } |
1338 return _json; | 1256 return _json; |
1339 } | 1257 } |
1340 } | 1258 } |
1341 | 1259 |
1342 /** | 1260 /// This is a JSON template for metadata about a player playing a game with the |
1343 * This is a JSON template for metadata about a player playing a game with the | 1261 /// currently authenticated user. |
1344 * currently authenticated user. | |
1345 */ | |
1346 class GamesPlayedResource { | 1262 class GamesPlayedResource { |
1347 /** | 1263 /// True if the player was auto-matched with the currently authenticated |
1348 * True if the player was auto-matched with the currently authenticated user. | 1264 /// user. |
1349 */ | |
1350 core.bool autoMatched; | 1265 core.bool autoMatched; |
1351 /** | 1266 |
1352 * The last time the player played the game in milliseconds since the epoch in | 1267 /// The last time the player played the game in milliseconds since the epoch |
1353 * UTC. | 1268 /// in UTC. |
1354 */ | |
1355 core.String timeMillis; | 1269 core.String timeMillis; |
1356 | 1270 |
1357 GamesPlayedResource(); | 1271 GamesPlayedResource(); |
1358 | 1272 |
1359 GamesPlayedResource.fromJson(core.Map _json) { | 1273 GamesPlayedResource.fromJson(core.Map _json) { |
1360 if (_json.containsKey("autoMatched")) { | 1274 if (_json.containsKey("autoMatched")) { |
1361 autoMatched = _json["autoMatched"]; | 1275 autoMatched = _json["autoMatched"]; |
1362 } | 1276 } |
1363 if (_json.containsKey("timeMillis")) { | 1277 if (_json.containsKey("timeMillis")) { |
1364 timeMillis = _json["timeMillis"]; | 1278 timeMillis = _json["timeMillis"]; |
1365 } | 1279 } |
1366 } | 1280 } |
1367 | 1281 |
1368 core.Map<core.String, core.Object> toJson() { | 1282 core.Map<core.String, core.Object> toJson() { |
1369 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1283 final core.Map<core.String, core.Object> _json = |
| 1284 new core.Map<core.String, core.Object>(); |
1370 if (autoMatched != null) { | 1285 if (autoMatched != null) { |
1371 _json["autoMatched"] = autoMatched; | 1286 _json["autoMatched"] = autoMatched; |
1372 } | 1287 } |
1373 if (timeMillis != null) { | 1288 if (timeMillis != null) { |
1374 _json["timeMillis"] = timeMillis; | 1289 _json["timeMillis"] = timeMillis; |
1375 } | 1290 } |
1376 return _json; | 1291 return _json; |
1377 } | 1292 } |
1378 } | 1293 } |
1379 | 1294 |
1380 /** | 1295 /// This is a JSON template for 1P/3P metadata about the player's experience. |
1381 * This is a JSON template for 1P/3P metadata about the player's experience. | |
1382 */ | |
1383 class GamesPlayerExperienceInfoResource { | 1296 class GamesPlayerExperienceInfoResource { |
1384 /** The current number of experience points for the player. */ | 1297 /// The current number of experience points for the player. |
1385 core.String currentExperiencePoints; | 1298 core.String currentExperiencePoints; |
1386 /** The current level of the player. */ | 1299 |
| 1300 /// The current level of the player. |
1387 GamesPlayerLevelResource currentLevel; | 1301 GamesPlayerLevelResource currentLevel; |
1388 /** | 1302 |
1389 * The timestamp when the player was leveled up, in millis since Unix epoch | 1303 /// The timestamp when the player was leveled up, in millis since Unix epoch |
1390 * UTC. | 1304 /// UTC. |
1391 */ | |
1392 core.String lastLevelUpTimestampMillis; | 1305 core.String lastLevelUpTimestampMillis; |
1393 /** | 1306 |
1394 * The next level of the player. If the current level is the maximum level, | 1307 /// The next level of the player. If the current level is the maximum level, |
1395 * this should be same as the current level. | 1308 /// this should be same as the current level. |
1396 */ | |
1397 GamesPlayerLevelResource nextLevel; | 1309 GamesPlayerLevelResource nextLevel; |
1398 | 1310 |
1399 GamesPlayerExperienceInfoResource(); | 1311 GamesPlayerExperienceInfoResource(); |
1400 | 1312 |
1401 GamesPlayerExperienceInfoResource.fromJson(core.Map _json) { | 1313 GamesPlayerExperienceInfoResource.fromJson(core.Map _json) { |
1402 if (_json.containsKey("currentExperiencePoints")) { | 1314 if (_json.containsKey("currentExperiencePoints")) { |
1403 currentExperiencePoints = _json["currentExperiencePoints"]; | 1315 currentExperiencePoints = _json["currentExperiencePoints"]; |
1404 } | 1316 } |
1405 if (_json.containsKey("currentLevel")) { | 1317 if (_json.containsKey("currentLevel")) { |
1406 currentLevel = new GamesPlayerLevelResource.fromJson(_json["currentLevel"]
); | 1318 currentLevel = |
| 1319 new GamesPlayerLevelResource.fromJson(_json["currentLevel"]); |
1407 } | 1320 } |
1408 if (_json.containsKey("lastLevelUpTimestampMillis")) { | 1321 if (_json.containsKey("lastLevelUpTimestampMillis")) { |
1409 lastLevelUpTimestampMillis = _json["lastLevelUpTimestampMillis"]; | 1322 lastLevelUpTimestampMillis = _json["lastLevelUpTimestampMillis"]; |
1410 } | 1323 } |
1411 if (_json.containsKey("nextLevel")) { | 1324 if (_json.containsKey("nextLevel")) { |
1412 nextLevel = new GamesPlayerLevelResource.fromJson(_json["nextLevel"]); | 1325 nextLevel = new GamesPlayerLevelResource.fromJson(_json["nextLevel"]); |
1413 } | 1326 } |
1414 } | 1327 } |
1415 | 1328 |
1416 core.Map<core.String, core.Object> toJson() { | 1329 core.Map<core.String, core.Object> toJson() { |
1417 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1330 final core.Map<core.String, core.Object> _json = |
| 1331 new core.Map<core.String, core.Object>(); |
1418 if (currentExperiencePoints != null) { | 1332 if (currentExperiencePoints != null) { |
1419 _json["currentExperiencePoints"] = currentExperiencePoints; | 1333 _json["currentExperiencePoints"] = currentExperiencePoints; |
1420 } | 1334 } |
1421 if (currentLevel != null) { | 1335 if (currentLevel != null) { |
1422 _json["currentLevel"] = (currentLevel).toJson(); | 1336 _json["currentLevel"] = (currentLevel).toJson(); |
1423 } | 1337 } |
1424 if (lastLevelUpTimestampMillis != null) { | 1338 if (lastLevelUpTimestampMillis != null) { |
1425 _json["lastLevelUpTimestampMillis"] = lastLevelUpTimestampMillis; | 1339 _json["lastLevelUpTimestampMillis"] = lastLevelUpTimestampMillis; |
1426 } | 1340 } |
1427 if (nextLevel != null) { | 1341 if (nextLevel != null) { |
1428 _json["nextLevel"] = (nextLevel).toJson(); | 1342 _json["nextLevel"] = (nextLevel).toJson(); |
1429 } | 1343 } |
1430 return _json; | 1344 return _json; |
1431 } | 1345 } |
1432 } | 1346 } |
1433 | 1347 |
1434 /** This is a JSON template for 1P/3P metadata about a user's level. */ | 1348 /// This is a JSON template for 1P/3P metadata about a user's level. |
1435 class GamesPlayerLevelResource { | 1349 class GamesPlayerLevelResource { |
1436 /** The level for the user. */ | 1350 /// The level for the user. |
1437 core.int level; | 1351 core.int level; |
1438 /** The maximum experience points for this level. */ | 1352 |
| 1353 /// The maximum experience points for this level. |
1439 core.String maxExperiencePoints; | 1354 core.String maxExperiencePoints; |
1440 /** The minimum experience points for this level. */ | 1355 |
| 1356 /// The minimum experience points for this level. |
1441 core.String minExperiencePoints; | 1357 core.String minExperiencePoints; |
1442 | 1358 |
1443 GamesPlayerLevelResource(); | 1359 GamesPlayerLevelResource(); |
1444 | 1360 |
1445 GamesPlayerLevelResource.fromJson(core.Map _json) { | 1361 GamesPlayerLevelResource.fromJson(core.Map _json) { |
1446 if (_json.containsKey("level")) { | 1362 if (_json.containsKey("level")) { |
1447 level = _json["level"]; | 1363 level = _json["level"]; |
1448 } | 1364 } |
1449 if (_json.containsKey("maxExperiencePoints")) { | 1365 if (_json.containsKey("maxExperiencePoints")) { |
1450 maxExperiencePoints = _json["maxExperiencePoints"]; | 1366 maxExperiencePoints = _json["maxExperiencePoints"]; |
1451 } | 1367 } |
1452 if (_json.containsKey("minExperiencePoints")) { | 1368 if (_json.containsKey("minExperiencePoints")) { |
1453 minExperiencePoints = _json["minExperiencePoints"]; | 1369 minExperiencePoints = _json["minExperiencePoints"]; |
1454 } | 1370 } |
1455 } | 1371 } |
1456 | 1372 |
1457 core.Map<core.String, core.Object> toJson() { | 1373 core.Map<core.String, core.Object> toJson() { |
1458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1374 final core.Map<core.String, core.Object> _json = |
| 1375 new core.Map<core.String, core.Object>(); |
1459 if (level != null) { | 1376 if (level != null) { |
1460 _json["level"] = level; | 1377 _json["level"] = level; |
1461 } | 1378 } |
1462 if (maxExperiencePoints != null) { | 1379 if (maxExperiencePoints != null) { |
1463 _json["maxExperiencePoints"] = maxExperiencePoints; | 1380 _json["maxExperiencePoints"] = maxExperiencePoints; |
1464 } | 1381 } |
1465 if (minExperiencePoints != null) { | 1382 if (minExperiencePoints != null) { |
1466 _json["minExperiencePoints"] = minExperiencePoints; | 1383 _json["minExperiencePoints"] = minExperiencePoints; |
1467 } | 1384 } |
1468 return _json; | 1385 return _json; |
1469 } | 1386 } |
1470 } | 1387 } |
1471 | 1388 |
1472 /** This is a JSON template for the HiddenPlayer resource. */ | 1389 /// This is a JSON template for the HiddenPlayer resource. |
1473 class HiddenPlayer { | 1390 class HiddenPlayer { |
1474 /** The time this player was hidden. */ | 1391 /// The time this player was hidden. |
1475 core.String hiddenTimeMillis; | 1392 core.String hiddenTimeMillis; |
1476 /** | 1393 |
1477 * Uniquely identifies the type of this resource. Value is always the fixed | 1394 /// Uniquely identifies the type of this resource. Value is always the fixed |
1478 * string gamesManagement#hiddenPlayer. | 1395 /// string gamesManagement#hiddenPlayer. |
1479 */ | |
1480 core.String kind; | 1396 core.String kind; |
1481 /** The player information. */ | 1397 |
| 1398 /// The player information. |
1482 Player player; | 1399 Player player; |
1483 | 1400 |
1484 HiddenPlayer(); | 1401 HiddenPlayer(); |
1485 | 1402 |
1486 HiddenPlayer.fromJson(core.Map _json) { | 1403 HiddenPlayer.fromJson(core.Map _json) { |
1487 if (_json.containsKey("hiddenTimeMillis")) { | 1404 if (_json.containsKey("hiddenTimeMillis")) { |
1488 hiddenTimeMillis = _json["hiddenTimeMillis"]; | 1405 hiddenTimeMillis = _json["hiddenTimeMillis"]; |
1489 } | 1406 } |
1490 if (_json.containsKey("kind")) { | 1407 if (_json.containsKey("kind")) { |
1491 kind = _json["kind"]; | 1408 kind = _json["kind"]; |
1492 } | 1409 } |
1493 if (_json.containsKey("player")) { | 1410 if (_json.containsKey("player")) { |
1494 player = new Player.fromJson(_json["player"]); | 1411 player = new Player.fromJson(_json["player"]); |
1495 } | 1412 } |
1496 } | 1413 } |
1497 | 1414 |
1498 core.Map<core.String, core.Object> toJson() { | 1415 core.Map<core.String, core.Object> toJson() { |
1499 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1416 final core.Map<core.String, core.Object> _json = |
| 1417 new core.Map<core.String, core.Object>(); |
1500 if (hiddenTimeMillis != null) { | 1418 if (hiddenTimeMillis != null) { |
1501 _json["hiddenTimeMillis"] = hiddenTimeMillis; | 1419 _json["hiddenTimeMillis"] = hiddenTimeMillis; |
1502 } | 1420 } |
1503 if (kind != null) { | 1421 if (kind != null) { |
1504 _json["kind"] = kind; | 1422 _json["kind"] = kind; |
1505 } | 1423 } |
1506 if (player != null) { | 1424 if (player != null) { |
1507 _json["player"] = (player).toJson(); | 1425 _json["player"] = (player).toJson(); |
1508 } | 1426 } |
1509 return _json; | 1427 return _json; |
1510 } | 1428 } |
1511 } | 1429 } |
1512 | 1430 |
1513 /** This is a JSON template for a list of hidden players. */ | 1431 /// This is a JSON template for a list of hidden players. |
1514 class HiddenPlayerList { | 1432 class HiddenPlayerList { |
1515 /** The players. */ | 1433 /// The players. |
1516 core.List<HiddenPlayer> items; | 1434 core.List<HiddenPlayer> items; |
1517 /** | 1435 |
1518 * Uniquely identifies the type of this resource. Value is always the fixed | 1436 /// Uniquely identifies the type of this resource. Value is always the fixed |
1519 * string gamesManagement#hiddenPlayerList. | 1437 /// string gamesManagement#hiddenPlayerList. |
1520 */ | |
1521 core.String kind; | 1438 core.String kind; |
1522 /** The pagination token for the next page of results. */ | 1439 |
| 1440 /// The pagination token for the next page of results. |
1523 core.String nextPageToken; | 1441 core.String nextPageToken; |
1524 | 1442 |
1525 HiddenPlayerList(); | 1443 HiddenPlayerList(); |
1526 | 1444 |
1527 HiddenPlayerList.fromJson(core.Map _json) { | 1445 HiddenPlayerList.fromJson(core.Map _json) { |
1528 if (_json.containsKey("items")) { | 1446 if (_json.containsKey("items")) { |
1529 items = _json["items"].map((value) => new HiddenPlayer.fromJson(value)).to
List(); | 1447 items = _json["items"] |
| 1448 .map((value) => new HiddenPlayer.fromJson(value)) |
| 1449 .toList(); |
1530 } | 1450 } |
1531 if (_json.containsKey("kind")) { | 1451 if (_json.containsKey("kind")) { |
1532 kind = _json["kind"]; | 1452 kind = _json["kind"]; |
1533 } | 1453 } |
1534 if (_json.containsKey("nextPageToken")) { | 1454 if (_json.containsKey("nextPageToken")) { |
1535 nextPageToken = _json["nextPageToken"]; | 1455 nextPageToken = _json["nextPageToken"]; |
1536 } | 1456 } |
1537 } | 1457 } |
1538 | 1458 |
1539 core.Map<core.String, core.Object> toJson() { | 1459 core.Map<core.String, core.Object> toJson() { |
1540 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1460 final core.Map<core.String, core.Object> _json = |
| 1461 new core.Map<core.String, core.Object>(); |
1541 if (items != null) { | 1462 if (items != null) { |
1542 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1463 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1543 } | 1464 } |
1544 if (kind != null) { | 1465 if (kind != null) { |
1545 _json["kind"] = kind; | 1466 _json["kind"] = kind; |
1546 } | 1467 } |
1547 if (nextPageToken != null) { | 1468 if (nextPageToken != null) { |
1548 _json["nextPageToken"] = nextPageToken; | 1469 _json["nextPageToken"] = nextPageToken; |
1549 } | 1470 } |
1550 return _json; | 1471 return _json; |
1551 } | 1472 } |
1552 } | 1473 } |
1553 | 1474 |
1554 /** | 1475 /// An object representation of the individual components of the player's name. |
1555 * An object representation of the individual components of the player's name. | 1476 /// For some players, these fields may not be present. |
1556 * For some players, these fields may not be present. | |
1557 */ | |
1558 class PlayerName { | 1477 class PlayerName { |
1559 /** | 1478 /// The family name of this player. In some places, this is known as the last |
1560 * The family name of this player. In some places, this is known as the last | 1479 /// name. |
1561 * name. | |
1562 */ | |
1563 core.String familyName; | 1480 core.String familyName; |
1564 /** | 1481 |
1565 * The given name of this player. In some places, this is known as the first | 1482 /// The given name of this player. In some places, this is known as the first |
1566 * name. | 1483 /// name. |
1567 */ | |
1568 core.String givenName; | 1484 core.String givenName; |
1569 | 1485 |
1570 PlayerName(); | 1486 PlayerName(); |
1571 | 1487 |
1572 PlayerName.fromJson(core.Map _json) { | 1488 PlayerName.fromJson(core.Map _json) { |
1573 if (_json.containsKey("familyName")) { | 1489 if (_json.containsKey("familyName")) { |
1574 familyName = _json["familyName"]; | 1490 familyName = _json["familyName"]; |
1575 } | 1491 } |
1576 if (_json.containsKey("givenName")) { | 1492 if (_json.containsKey("givenName")) { |
1577 givenName = _json["givenName"]; | 1493 givenName = _json["givenName"]; |
1578 } | 1494 } |
1579 } | 1495 } |
1580 | 1496 |
1581 core.Map<core.String, core.Object> toJson() { | 1497 core.Map<core.String, core.Object> toJson() { |
1582 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1498 final core.Map<core.String, core.Object> _json = |
| 1499 new core.Map<core.String, core.Object>(); |
1583 if (familyName != null) { | 1500 if (familyName != null) { |
1584 _json["familyName"] = familyName; | 1501 _json["familyName"] = familyName; |
1585 } | 1502 } |
1586 if (givenName != null) { | 1503 if (givenName != null) { |
1587 _json["givenName"] = givenName; | 1504 _json["givenName"] = givenName; |
1588 } | 1505 } |
1589 return _json; | 1506 return _json; |
1590 } | 1507 } |
1591 } | 1508 } |
1592 | 1509 |
1593 /** This is a JSON template for a Player resource. */ | 1510 /// This is a JSON template for a Player resource. |
1594 class Player { | 1511 class Player { |
1595 /** The base URL for the image that represents the player. */ | 1512 /// The base URL for the image that represents the player. |
1596 core.String avatarImageUrl; | 1513 core.String avatarImageUrl; |
1597 /** The url to the landscape mode player banner image. */ | 1514 |
| 1515 /// The url to the landscape mode player banner image. |
1598 core.String bannerUrlLandscape; | 1516 core.String bannerUrlLandscape; |
1599 /** The url to the portrait mode player banner image. */ | 1517 |
| 1518 /// The url to the portrait mode player banner image. |
1600 core.String bannerUrlPortrait; | 1519 core.String bannerUrlPortrait; |
1601 /** The name to display for the player. */ | 1520 |
| 1521 /// The name to display for the player. |
1602 core.String displayName; | 1522 core.String displayName; |
1603 /** | 1523 |
1604 * An object to represent Play Game experience information for the player. | 1524 /// An object to represent Play Game experience information for the player. |
1605 */ | |
1606 GamesPlayerExperienceInfoResource experienceInfo; | 1525 GamesPlayerExperienceInfoResource experienceInfo; |
1607 /** | 1526 |
1608 * Uniquely identifies the type of this resource. Value is always the fixed | 1527 /// Uniquely identifies the type of this resource. Value is always the fixed |
1609 * string gamesManagement#player. | 1528 /// string gamesManagement#player. |
1610 */ | |
1611 core.String kind; | 1529 core.String kind; |
1612 /** | 1530 |
1613 * Details about the last time this player played a multiplayer game with the | 1531 /// Details about the last time this player played a multiplayer game with |
1614 * currently authenticated player. Populated for PLAYED_WITH player collection | 1532 /// the currently authenticated player. Populated for PLAYED_WITH player |
1615 * members. | 1533 /// collection members. |
1616 */ | |
1617 GamesPlayedResource lastPlayedWith; | 1534 GamesPlayedResource lastPlayedWith; |
1618 /** | 1535 |
1619 * An object representation of the individual components of the player's name. | 1536 /// An object representation of the individual components of the player's |
1620 * For some players, these fields may not be present. | 1537 /// name. For some players, these fields may not be present. |
1621 */ | |
1622 PlayerName name; | 1538 PlayerName name; |
1623 /** | 1539 |
1624 * The player ID that was used for this player the first time they signed into | 1540 /// The player ID that was used for this player the first time they signed |
1625 * the game in question. This is only populated for calls to player.get for | 1541 /// into the game in question. This is only populated for calls to player.get |
1626 * the requesting player, only if the player ID has subsequently changed, and | 1542 /// for the requesting player, only if the player ID has subsequently |
1627 * only to clients that support remapping player IDs. | 1543 /// changed, and only to clients that support remapping player IDs. |
1628 */ | |
1629 core.String originalPlayerId; | 1544 core.String originalPlayerId; |
1630 /** The ID of the player. */ | 1545 |
| 1546 /// The ID of the player. |
1631 core.String playerId; | 1547 core.String playerId; |
1632 /** | 1548 |
1633 * The player's profile settings. Controls whether or not the player's profile | 1549 /// The player's profile settings. Controls whether or not the player's |
1634 * is visible to other players. | 1550 /// profile is visible to other players. |
1635 */ | |
1636 ProfileSettings profileSettings; | 1551 ProfileSettings profileSettings; |
1637 /** The player's title rewarded for their game activities. */ | 1552 |
| 1553 /// The player's title rewarded for their game activities. |
1638 core.String title; | 1554 core.String title; |
1639 | 1555 |
1640 Player(); | 1556 Player(); |
1641 | 1557 |
1642 Player.fromJson(core.Map _json) { | 1558 Player.fromJson(core.Map _json) { |
1643 if (_json.containsKey("avatarImageUrl")) { | 1559 if (_json.containsKey("avatarImageUrl")) { |
1644 avatarImageUrl = _json["avatarImageUrl"]; | 1560 avatarImageUrl = _json["avatarImageUrl"]; |
1645 } | 1561 } |
1646 if (_json.containsKey("bannerUrlLandscape")) { | 1562 if (_json.containsKey("bannerUrlLandscape")) { |
1647 bannerUrlLandscape = _json["bannerUrlLandscape"]; | 1563 bannerUrlLandscape = _json["bannerUrlLandscape"]; |
1648 } | 1564 } |
1649 if (_json.containsKey("bannerUrlPortrait")) { | 1565 if (_json.containsKey("bannerUrlPortrait")) { |
1650 bannerUrlPortrait = _json["bannerUrlPortrait"]; | 1566 bannerUrlPortrait = _json["bannerUrlPortrait"]; |
1651 } | 1567 } |
1652 if (_json.containsKey("displayName")) { | 1568 if (_json.containsKey("displayName")) { |
1653 displayName = _json["displayName"]; | 1569 displayName = _json["displayName"]; |
1654 } | 1570 } |
1655 if (_json.containsKey("experienceInfo")) { | 1571 if (_json.containsKey("experienceInfo")) { |
1656 experienceInfo = new GamesPlayerExperienceInfoResource.fromJson(_json["exp
erienceInfo"]); | 1572 experienceInfo = new GamesPlayerExperienceInfoResource.fromJson( |
| 1573 _json["experienceInfo"]); |
1657 } | 1574 } |
1658 if (_json.containsKey("kind")) { | 1575 if (_json.containsKey("kind")) { |
1659 kind = _json["kind"]; | 1576 kind = _json["kind"]; |
1660 } | 1577 } |
1661 if (_json.containsKey("lastPlayedWith")) { | 1578 if (_json.containsKey("lastPlayedWith")) { |
1662 lastPlayedWith = new GamesPlayedResource.fromJson(_json["lastPlayedWith"])
; | 1579 lastPlayedWith = |
| 1580 new GamesPlayedResource.fromJson(_json["lastPlayedWith"]); |
1663 } | 1581 } |
1664 if (_json.containsKey("name")) { | 1582 if (_json.containsKey("name")) { |
1665 name = new PlayerName.fromJson(_json["name"]); | 1583 name = new PlayerName.fromJson(_json["name"]); |
1666 } | 1584 } |
1667 if (_json.containsKey("originalPlayerId")) { | 1585 if (_json.containsKey("originalPlayerId")) { |
1668 originalPlayerId = _json["originalPlayerId"]; | 1586 originalPlayerId = _json["originalPlayerId"]; |
1669 } | 1587 } |
1670 if (_json.containsKey("playerId")) { | 1588 if (_json.containsKey("playerId")) { |
1671 playerId = _json["playerId"]; | 1589 playerId = _json["playerId"]; |
1672 } | 1590 } |
1673 if (_json.containsKey("profileSettings")) { | 1591 if (_json.containsKey("profileSettings")) { |
1674 profileSettings = new ProfileSettings.fromJson(_json["profileSettings"]); | 1592 profileSettings = new ProfileSettings.fromJson(_json["profileSettings"]); |
1675 } | 1593 } |
1676 if (_json.containsKey("title")) { | 1594 if (_json.containsKey("title")) { |
1677 title = _json["title"]; | 1595 title = _json["title"]; |
1678 } | 1596 } |
1679 } | 1597 } |
1680 | 1598 |
1681 core.Map<core.String, core.Object> toJson() { | 1599 core.Map<core.String, core.Object> toJson() { |
1682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1600 final core.Map<core.String, core.Object> _json = |
| 1601 new core.Map<core.String, core.Object>(); |
1683 if (avatarImageUrl != null) { | 1602 if (avatarImageUrl != null) { |
1684 _json["avatarImageUrl"] = avatarImageUrl; | 1603 _json["avatarImageUrl"] = avatarImageUrl; |
1685 } | 1604 } |
1686 if (bannerUrlLandscape != null) { | 1605 if (bannerUrlLandscape != null) { |
1687 _json["bannerUrlLandscape"] = bannerUrlLandscape; | 1606 _json["bannerUrlLandscape"] = bannerUrlLandscape; |
1688 } | 1607 } |
1689 if (bannerUrlPortrait != null) { | 1608 if (bannerUrlPortrait != null) { |
1690 _json["bannerUrlPortrait"] = bannerUrlPortrait; | 1609 _json["bannerUrlPortrait"] = bannerUrlPortrait; |
1691 } | 1610 } |
1692 if (displayName != null) { | 1611 if (displayName != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
1713 if (profileSettings != null) { | 1632 if (profileSettings != null) { |
1714 _json["profileSettings"] = (profileSettings).toJson(); | 1633 _json["profileSettings"] = (profileSettings).toJson(); |
1715 } | 1634 } |
1716 if (title != null) { | 1635 if (title != null) { |
1717 _json["title"] = title; | 1636 _json["title"] = title; |
1718 } | 1637 } |
1719 return _json; | 1638 return _json; |
1720 } | 1639 } |
1721 } | 1640 } |
1722 | 1641 |
1723 /** This is a JSON template for a list of leaderboard reset resources. */ | 1642 /// This is a JSON template for a list of leaderboard reset resources. |
1724 class PlayerScoreResetAllResponse { | 1643 class PlayerScoreResetAllResponse { |
1725 /** | 1644 /// Uniquely identifies the type of this resource. Value is always the fixed |
1726 * Uniquely identifies the type of this resource. Value is always the fixed | 1645 /// string gamesManagement#playerScoreResetResponse. |
1727 * string gamesManagement#playerScoreResetResponse. | |
1728 */ | |
1729 core.String kind; | 1646 core.String kind; |
1730 /** The leaderboard reset results. */ | 1647 |
| 1648 /// The leaderboard reset results. |
1731 core.List<PlayerScoreResetResponse> results; | 1649 core.List<PlayerScoreResetResponse> results; |
1732 | 1650 |
1733 PlayerScoreResetAllResponse(); | 1651 PlayerScoreResetAllResponse(); |
1734 | 1652 |
1735 PlayerScoreResetAllResponse.fromJson(core.Map _json) { | 1653 PlayerScoreResetAllResponse.fromJson(core.Map _json) { |
1736 if (_json.containsKey("kind")) { | 1654 if (_json.containsKey("kind")) { |
1737 kind = _json["kind"]; | 1655 kind = _json["kind"]; |
1738 } | 1656 } |
1739 if (_json.containsKey("results")) { | 1657 if (_json.containsKey("results")) { |
1740 results = _json["results"].map((value) => new PlayerScoreResetResponse.fro
mJson(value)).toList(); | 1658 results = _json["results"] |
| 1659 .map((value) => new PlayerScoreResetResponse.fromJson(value)) |
| 1660 .toList(); |
1741 } | 1661 } |
1742 } | 1662 } |
1743 | 1663 |
1744 core.Map<core.String, core.Object> toJson() { | 1664 core.Map<core.String, core.Object> toJson() { |
1745 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1665 final core.Map<core.String, core.Object> _json = |
| 1666 new core.Map<core.String, core.Object>(); |
1746 if (kind != null) { | 1667 if (kind != null) { |
1747 _json["kind"] = kind; | 1668 _json["kind"] = kind; |
1748 } | 1669 } |
1749 if (results != null) { | 1670 if (results != null) { |
1750 _json["results"] = results.map((value) => (value).toJson()).toList(); | 1671 _json["results"] = results.map((value) => (value).toJson()).toList(); |
1751 } | 1672 } |
1752 return _json; | 1673 return _json; |
1753 } | 1674 } |
1754 } | 1675 } |
1755 | 1676 |
1756 /** This is a JSON template for a list of reset leaderboard entry resources. */ | 1677 /// This is a JSON template for a list of reset leaderboard entry resources. |
1757 class PlayerScoreResetResponse { | 1678 class PlayerScoreResetResponse { |
1758 /** The ID of an leaderboard for which player state has been updated. */ | 1679 /// The ID of an leaderboard for which player state has been updated. |
1759 core.String definitionId; | 1680 core.String definitionId; |
1760 /** | 1681 |
1761 * Uniquely identifies the type of this resource. Value is always the fixed | 1682 /// Uniquely identifies the type of this resource. Value is always the fixed |
1762 * string gamesManagement#playerScoreResetResponse. | 1683 /// string gamesManagement#playerScoreResetResponse. |
1763 */ | |
1764 core.String kind; | 1684 core.String kind; |
1765 /** | 1685 |
1766 * The time spans of the updated score. | 1686 /// The time spans of the updated score. |
1767 * Possible values are: | 1687 /// Possible values are: |
1768 * - "ALL_TIME" - The score is an all-time score. | 1688 /// - "ALL_TIME" - The score is an all-time score. |
1769 * - "WEEKLY" - The score is a weekly score. | 1689 /// - "WEEKLY" - The score is a weekly score. |
1770 * - "DAILY" - The score is a daily score. | 1690 /// - "DAILY" - The score is a daily score. |
1771 */ | |
1772 core.List<core.String> resetScoreTimeSpans; | 1691 core.List<core.String> resetScoreTimeSpans; |
1773 | 1692 |
1774 PlayerScoreResetResponse(); | 1693 PlayerScoreResetResponse(); |
1775 | 1694 |
1776 PlayerScoreResetResponse.fromJson(core.Map _json) { | 1695 PlayerScoreResetResponse.fromJson(core.Map _json) { |
1777 if (_json.containsKey("definitionId")) { | 1696 if (_json.containsKey("definitionId")) { |
1778 definitionId = _json["definitionId"]; | 1697 definitionId = _json["definitionId"]; |
1779 } | 1698 } |
1780 if (_json.containsKey("kind")) { | 1699 if (_json.containsKey("kind")) { |
1781 kind = _json["kind"]; | 1700 kind = _json["kind"]; |
1782 } | 1701 } |
1783 if (_json.containsKey("resetScoreTimeSpans")) { | 1702 if (_json.containsKey("resetScoreTimeSpans")) { |
1784 resetScoreTimeSpans = _json["resetScoreTimeSpans"]; | 1703 resetScoreTimeSpans = _json["resetScoreTimeSpans"]; |
1785 } | 1704 } |
1786 } | 1705 } |
1787 | 1706 |
1788 core.Map<core.String, core.Object> toJson() { | 1707 core.Map<core.String, core.Object> toJson() { |
1789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1708 final core.Map<core.String, core.Object> _json = |
| 1709 new core.Map<core.String, core.Object>(); |
1790 if (definitionId != null) { | 1710 if (definitionId != null) { |
1791 _json["definitionId"] = definitionId; | 1711 _json["definitionId"] = definitionId; |
1792 } | 1712 } |
1793 if (kind != null) { | 1713 if (kind != null) { |
1794 _json["kind"] = kind; | 1714 _json["kind"] = kind; |
1795 } | 1715 } |
1796 if (resetScoreTimeSpans != null) { | 1716 if (resetScoreTimeSpans != null) { |
1797 _json["resetScoreTimeSpans"] = resetScoreTimeSpans; | 1717 _json["resetScoreTimeSpans"] = resetScoreTimeSpans; |
1798 } | 1718 } |
1799 return _json; | 1719 return _json; |
1800 } | 1720 } |
1801 } | 1721 } |
1802 | 1722 |
1803 /** This is a JSON template for profile settings */ | 1723 /// This is a JSON template for profile settings |
1804 class ProfileSettings { | 1724 class ProfileSettings { |
1805 /** | 1725 /// Uniquely identifies the type of this resource. Value is always the fixed |
1806 * Uniquely identifies the type of this resource. Value is always the fixed | 1726 /// string gamesManagement#profileSettings. |
1807 * string gamesManagement#profileSettings. | |
1808 */ | |
1809 core.String kind; | 1727 core.String kind; |
1810 /** | 1728 |
1811 * The player's current profile visibility. This field is visible to both 1P | 1729 /// The player's current profile visibility. This field is visible to both 1P |
1812 * and 3P APIs. | 1730 /// and 3P APIs. |
1813 */ | |
1814 core.bool profileVisible; | 1731 core.bool profileVisible; |
1815 | 1732 |
1816 ProfileSettings(); | 1733 ProfileSettings(); |
1817 | 1734 |
1818 ProfileSettings.fromJson(core.Map _json) { | 1735 ProfileSettings.fromJson(core.Map _json) { |
1819 if (_json.containsKey("kind")) { | 1736 if (_json.containsKey("kind")) { |
1820 kind = _json["kind"]; | 1737 kind = _json["kind"]; |
1821 } | 1738 } |
1822 if (_json.containsKey("profileVisible")) { | 1739 if (_json.containsKey("profileVisible")) { |
1823 profileVisible = _json["profileVisible"]; | 1740 profileVisible = _json["profileVisible"]; |
1824 } | 1741 } |
1825 } | 1742 } |
1826 | 1743 |
1827 core.Map<core.String, core.Object> toJson() { | 1744 core.Map<core.String, core.Object> toJson() { |
1828 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1745 final core.Map<core.String, core.Object> _json = |
| 1746 new core.Map<core.String, core.Object>(); |
1829 if (kind != null) { | 1747 if (kind != null) { |
1830 _json["kind"] = kind; | 1748 _json["kind"] = kind; |
1831 } | 1749 } |
1832 if (profileVisible != null) { | 1750 if (profileVisible != null) { |
1833 _json["profileVisible"] = profileVisible; | 1751 _json["profileVisible"] = profileVisible; |
1834 } | 1752 } |
1835 return _json; | 1753 return _json; |
1836 } | 1754 } |
1837 } | 1755 } |
1838 | 1756 |
1839 /** This is a JSON template for multiple quests reset all request. */ | 1757 /// This is a JSON template for multiple quests reset all request. |
1840 class QuestsResetMultipleForAllRequest { | 1758 class QuestsResetMultipleForAllRequest { |
1841 /** | 1759 /// Uniquely identifies the type of this resource. Value is always the fixed |
1842 * Uniquely identifies the type of this resource. Value is always the fixed | 1760 /// string gamesManagement#questsResetMultipleForAllRequest. |
1843 * string gamesManagement#questsResetMultipleForAllRequest. | |
1844 */ | |
1845 core.String kind; | 1761 core.String kind; |
1846 /** The IDs of quests to reset. */ | 1762 |
| 1763 /// The IDs of quests to reset. |
1847 core.List<core.String> questIds; | 1764 core.List<core.String> questIds; |
1848 | 1765 |
1849 QuestsResetMultipleForAllRequest(); | 1766 QuestsResetMultipleForAllRequest(); |
1850 | 1767 |
1851 QuestsResetMultipleForAllRequest.fromJson(core.Map _json) { | 1768 QuestsResetMultipleForAllRequest.fromJson(core.Map _json) { |
1852 if (_json.containsKey("kind")) { | 1769 if (_json.containsKey("kind")) { |
1853 kind = _json["kind"]; | 1770 kind = _json["kind"]; |
1854 } | 1771 } |
1855 if (_json.containsKey("quest_ids")) { | 1772 if (_json.containsKey("quest_ids")) { |
1856 questIds = _json["quest_ids"]; | 1773 questIds = _json["quest_ids"]; |
1857 } | 1774 } |
1858 } | 1775 } |
1859 | 1776 |
1860 core.Map<core.String, core.Object> toJson() { | 1777 core.Map<core.String, core.Object> toJson() { |
1861 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1778 final core.Map<core.String, core.Object> _json = |
| 1779 new core.Map<core.String, core.Object>(); |
1862 if (kind != null) { | 1780 if (kind != null) { |
1863 _json["kind"] = kind; | 1781 _json["kind"] = kind; |
1864 } | 1782 } |
1865 if (questIds != null) { | 1783 if (questIds != null) { |
1866 _json["quest_ids"] = questIds; | 1784 _json["quest_ids"] = questIds; |
1867 } | 1785 } |
1868 return _json; | 1786 return _json; |
1869 } | 1787 } |
1870 } | 1788 } |
1871 | 1789 |
1872 /** This is a JSON template for multiple scores reset all request. */ | 1790 /// This is a JSON template for multiple scores reset all request. |
1873 class ScoresResetMultipleForAllRequest { | 1791 class ScoresResetMultipleForAllRequest { |
1874 /** | 1792 /// Uniquely identifies the type of this resource. Value is always the fixed |
1875 * Uniquely identifies the type of this resource. Value is always the fixed | 1793 /// string gamesManagement#scoresResetMultipleForAllRequest. |
1876 * string gamesManagement#scoresResetMultipleForAllRequest. | |
1877 */ | |
1878 core.String kind; | 1794 core.String kind; |
1879 /** The IDs of leaderboards to reset. */ | 1795 |
| 1796 /// The IDs of leaderboards to reset. |
1880 core.List<core.String> leaderboardIds; | 1797 core.List<core.String> leaderboardIds; |
1881 | 1798 |
1882 ScoresResetMultipleForAllRequest(); | 1799 ScoresResetMultipleForAllRequest(); |
1883 | 1800 |
1884 ScoresResetMultipleForAllRequest.fromJson(core.Map _json) { | 1801 ScoresResetMultipleForAllRequest.fromJson(core.Map _json) { |
1885 if (_json.containsKey("kind")) { | 1802 if (_json.containsKey("kind")) { |
1886 kind = _json["kind"]; | 1803 kind = _json["kind"]; |
1887 } | 1804 } |
1888 if (_json.containsKey("leaderboard_ids")) { | 1805 if (_json.containsKey("leaderboard_ids")) { |
1889 leaderboardIds = _json["leaderboard_ids"]; | 1806 leaderboardIds = _json["leaderboard_ids"]; |
1890 } | 1807 } |
1891 } | 1808 } |
1892 | 1809 |
1893 core.Map<core.String, core.Object> toJson() { | 1810 core.Map<core.String, core.Object> toJson() { |
1894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1811 final core.Map<core.String, core.Object> _json = |
| 1812 new core.Map<core.String, core.Object>(); |
1895 if (kind != null) { | 1813 if (kind != null) { |
1896 _json["kind"] = kind; | 1814 _json["kind"] = kind; |
1897 } | 1815 } |
1898 if (leaderboardIds != null) { | 1816 if (leaderboardIds != null) { |
1899 _json["leaderboard_ids"] = leaderboardIds; | 1817 _json["leaderboard_ids"] = leaderboardIds; |
1900 } | 1818 } |
1901 return _json; | 1819 return _json; |
1902 } | 1820 } |
1903 } | 1821 } |
OLD | NEW |