OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis.gamesManagement.v1management; | 3 library googleapis.gamesManagement.v1management; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
5 import "dart:async" as async; | 7 import 'dart:async' as async; |
6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
7 | 9 |
8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | |
11 import '../common/common.dart' as common; | |
12 | 13 |
13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client gamesManagement/v1management'; |
15 | 18 |
16 /** The Management API for Google Play Game Services. */ | 19 /** The Management API for Google Play Game Services. */ |
17 class GamesManagementApi { | 20 class GamesManagementApi { |
18 /** | 21 /** |
19 * Share your Google+ profile information and view and manage your game | 22 * Share your Google+ profile information and view and manage your game |
20 * activity | 23 * activity |
21 */ | 24 */ |
22 static const GamesScope = "https://www.googleapis.com/auth/games"; | 25 static const GamesScope = "https://www.googleapis.com/auth/games"; |
23 | 26 |
24 /** Know your basic profile info and list of people in your circles. */ | 27 /** Know your basic profile info and list of people in your circles. */ |
25 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 28 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
26 | 29 |
27 | 30 |
28 final common_internal.ApiRequester _requester; | 31 final commons.ApiRequester _requester; |
29 | 32 |
30 AchievementsResourceApi get achievements => new AchievementsResourceApi(_reque
ster); | 33 AchievementsResourceApi get achievements => new AchievementsResourceApi(_reque
ster); |
31 ApplicationsResourceApi get applications => new ApplicationsResourceApi(_reque
ster); | 34 ApplicationsResourceApi get applications => new ApplicationsResourceApi(_reque
ster); |
32 EventsResourceApi get events => new EventsResourceApi(_requester); | 35 EventsResourceApi get events => new EventsResourceApi(_requester); |
33 PlayersResourceApi get players => new PlayersResourceApi(_requester); | 36 PlayersResourceApi get players => new PlayersResourceApi(_requester); |
34 QuestsResourceApi get quests => new QuestsResourceApi(_requester); | 37 QuestsResourceApi get quests => new QuestsResourceApi(_requester); |
35 RoomsResourceApi get rooms => new RoomsResourceApi(_requester); | 38 RoomsResourceApi get rooms => new RoomsResourceApi(_requester); |
36 ScoresResourceApi get scores => new ScoresResourceApi(_requester); | 39 ScoresResourceApi get scores => new ScoresResourceApi(_requester); |
37 TurnBasedMatchesResourceApi get turnBasedMatches => new TurnBasedMatchesResour
ceApi(_requester); | 40 TurnBasedMatchesResourceApi get turnBasedMatches => new TurnBasedMatchesResour
ceApi(_requester); |
38 | 41 |
39 GamesManagementApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "games/v1management/"}) : | 42 GamesManagementApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "games/v1management/"}) : |
40 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 43 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
41 } | 44 } |
42 | 45 |
43 | 46 |
44 /** Not documented yet. */ | |
45 class AchievementsResourceApi { | 47 class AchievementsResourceApi { |
46 final common_internal.ApiRequester _requester; | 48 final commons.ApiRequester _requester; |
47 | 49 |
48 AchievementsResourceApi(common_internal.ApiRequester client) : | 50 AchievementsResourceApi(commons.ApiRequester client) : |
49 _requester = client; | 51 _requester = client; |
50 | 52 |
51 /** | 53 /** |
52 * Resets the achievement with the given ID for the currently authenticated | 54 * Resets the achievement with the given ID for the currently authenticated |
53 * player. This method is only accessible to whitelisted tester accounts for | 55 * player. This method is only accessible to whitelisted tester accounts for |
54 * your application. | 56 * your application. |
55 * | 57 * |
56 * Request parameters: | 58 * Request parameters: |
57 * | 59 * |
58 * [achievementId] - The ID of the achievement used by this method. | 60 * [achievementId] - The ID of the achievement used by this method. |
59 * | 61 * |
60 * Completes with a [AchievementResetResponse]. | 62 * Completes with a [AchievementResetResponse]. |
61 * | 63 * |
62 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
63 * error. | 65 * error. |
64 * | 66 * |
65 * If the used [http.Client] completes with an error when making a REST call, | 67 * If the used [http.Client] completes with an error when making a REST call, |
66 * this method will complete with the same error. | 68 * this method will complete with the same error. |
67 */ | 69 */ |
68 async.Future<AchievementResetResponse> reset(core.String achievementId) { | 70 async.Future<AchievementResetResponse> reset(core.String achievementId) { |
69 var _url = null; | 71 var _url = null; |
70 var _queryParams = new core.Map(); | 72 var _queryParams = new core.Map(); |
71 var _uploadMedia = null; | 73 var _uploadMedia = null; |
72 var _uploadOptions = null; | 74 var _uploadOptions = null; |
73 var _downloadOptions = common.DownloadOptions.Metadata; | 75 var _downloadOptions = commons.DownloadOptions.Metadata; |
74 var _body = null; | 76 var _body = null; |
75 | 77 |
76 if (achievementId == null) { | 78 if (achievementId == null) { |
77 throw new core.ArgumentError("Parameter achievementId is required."); | 79 throw new core.ArgumentError("Parameter achievementId is required."); |
78 } | 80 } |
79 | 81 |
80 | 82 |
81 _url = 'achievements/' + common_internal.Escaper.ecapeVariable('$achievement
Id') + '/reset'; | 83 _url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId') + '
/reset'; |
82 | 84 |
83 var _response = _requester.request(_url, | 85 var _response = _requester.request(_url, |
84 "POST", | 86 "POST", |
85 body: _body, | 87 body: _body, |
86 queryParams: _queryParams, | 88 queryParams: _queryParams, |
87 uploadOptions: _uploadOptions, | 89 uploadOptions: _uploadOptions, |
88 uploadMedia: _uploadMedia, | 90 uploadMedia: _uploadMedia, |
89 downloadOptions: _downloadOptions); | 91 downloadOptions: _downloadOptions); |
90 return _response.then((data) => new AchievementResetResponse.fromJson(data))
; | 92 return _response.then((data) => new AchievementResetResponse.fromJson(data))
; |
91 } | 93 } |
92 | 94 |
93 /** | 95 /** |
94 * Resets all achievements for the currently authenticated player for your | 96 * Resets all achievements for the currently authenticated player for your |
95 * application. This method is only accessible to whitelisted tester accounts | 97 * application. This method is only accessible to whitelisted tester accounts |
96 * for your application. | 98 * for your application. |
97 * | 99 * |
98 * Request parameters: | 100 * Request parameters: |
99 * | 101 * |
100 * Completes with a [AchievementResetAllResponse]. | 102 * Completes with a [AchievementResetAllResponse]. |
101 * | 103 * |
102 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 104 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
103 * error. | 105 * error. |
104 * | 106 * |
105 * If the used [http.Client] completes with an error when making a REST call, | 107 * If the used [http.Client] completes with an error when making a REST call, |
106 * this method will complete with the same error. | 108 * this method will complete with the same error. |
107 */ | 109 */ |
108 async.Future<AchievementResetAllResponse> resetAll() { | 110 async.Future<AchievementResetAllResponse> resetAll() { |
109 var _url = null; | 111 var _url = null; |
110 var _queryParams = new core.Map(); | 112 var _queryParams = new core.Map(); |
111 var _uploadMedia = null; | 113 var _uploadMedia = null; |
112 var _uploadOptions = null; | 114 var _uploadOptions = null; |
113 var _downloadOptions = common.DownloadOptions.Metadata; | 115 var _downloadOptions = commons.DownloadOptions.Metadata; |
114 var _body = null; | 116 var _body = null; |
115 | 117 |
116 | 118 |
117 | 119 |
118 _url = 'achievements/reset'; | 120 _url = 'achievements/reset'; |
119 | 121 |
120 var _response = _requester.request(_url, | 122 var _response = _requester.request(_url, |
121 "POST", | 123 "POST", |
122 body: _body, | 124 body: _body, |
123 queryParams: _queryParams, | 125 queryParams: _queryParams, |
124 uploadOptions: _uploadOptions, | 126 uploadOptions: _uploadOptions, |
125 uploadMedia: _uploadMedia, | 127 uploadMedia: _uploadMedia, |
126 downloadOptions: _downloadOptions); | 128 downloadOptions: _downloadOptions); |
127 return _response.then((data) => new AchievementResetAllResponse.fromJson(dat
a)); | 129 return _response.then((data) => new AchievementResetAllResponse.fromJson(dat
a)); |
128 } | 130 } |
129 | 131 |
130 /** | 132 /** |
131 * Resets all draft achievements for all players. This method is only | 133 * Resets all draft achievements for all players. This method is only |
132 * available to user accounts for your developer console. | 134 * available to user accounts for your developer console. |
133 * | 135 * |
134 * Request parameters: | 136 * Request parameters: |
135 * | 137 * |
136 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 138 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
137 * error. | 139 * error. |
138 * | 140 * |
139 * If the used [http.Client] completes with an error when making a REST call, | 141 * If the used [http.Client] completes with an error when making a REST call, |
140 * this method will complete with the same error. | 142 * this method will complete with the same error. |
141 */ | 143 */ |
142 async.Future resetAllForAllPlayers() { | 144 async.Future resetAllForAllPlayers() { |
143 var _url = null; | 145 var _url = null; |
144 var _queryParams = new core.Map(); | 146 var _queryParams = new core.Map(); |
145 var _uploadMedia = null; | 147 var _uploadMedia = null; |
146 var _uploadOptions = null; | 148 var _uploadOptions = null; |
147 var _downloadOptions = common.DownloadOptions.Metadata; | 149 var _downloadOptions = commons.DownloadOptions.Metadata; |
148 var _body = null; | 150 var _body = null; |
149 | 151 |
150 | 152 |
151 _downloadOptions = null; | 153 _downloadOptions = null; |
152 | 154 |
153 _url = 'achievements/resetAllForAllPlayers'; | 155 _url = 'achievements/resetAllForAllPlayers'; |
154 | 156 |
155 var _response = _requester.request(_url, | 157 var _response = _requester.request(_url, |
156 "POST", | 158 "POST", |
157 body: _body, | 159 body: _body, |
158 queryParams: _queryParams, | 160 queryParams: _queryParams, |
159 uploadOptions: _uploadOptions, | 161 uploadOptions: _uploadOptions, |
160 uploadMedia: _uploadMedia, | 162 uploadMedia: _uploadMedia, |
161 downloadOptions: _downloadOptions); | 163 downloadOptions: _downloadOptions); |
162 return _response.then((data) => null); | 164 return _response.then((data) => null); |
163 } | 165 } |
164 | 166 |
165 /** | 167 /** |
166 * Resets the achievement with the given ID for all players. This method is | 168 * Resets the achievement with the given ID for all players. This method is |
167 * only available to user accounts for your developer console. Only draft | 169 * only available to user accounts for your developer console. Only draft |
168 * achievements can be reset. | 170 * achievements can be reset. |
169 * | 171 * |
170 * Request parameters: | 172 * Request parameters: |
171 * | 173 * |
172 * [achievementId] - The ID of the achievement used by this method. | 174 * [achievementId] - The ID of the achievement used by this method. |
173 * | 175 * |
174 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 176 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
175 * error. | 177 * error. |
176 * | 178 * |
177 * If the used [http.Client] completes with an error when making a REST call, | 179 * If the used [http.Client] completes with an error when making a REST call, |
178 * this method will complete with the same error. | 180 * this method will complete with the same error. |
179 */ | 181 */ |
180 async.Future resetForAllPlayers(core.String achievementId) { | 182 async.Future resetForAllPlayers(core.String achievementId) { |
181 var _url = null; | 183 var _url = null; |
182 var _queryParams = new core.Map(); | 184 var _queryParams = new core.Map(); |
183 var _uploadMedia = null; | 185 var _uploadMedia = null; |
184 var _uploadOptions = null; | 186 var _uploadOptions = null; |
185 var _downloadOptions = common.DownloadOptions.Metadata; | 187 var _downloadOptions = commons.DownloadOptions.Metadata; |
186 var _body = null; | 188 var _body = null; |
187 | 189 |
188 if (achievementId == null) { | 190 if (achievementId == null) { |
189 throw new core.ArgumentError("Parameter achievementId is required."); | 191 throw new core.ArgumentError("Parameter achievementId is required."); |
190 } | 192 } |
191 | 193 |
192 _downloadOptions = null; | 194 _downloadOptions = null; |
193 | 195 |
194 _url = 'achievements/' + common_internal.Escaper.ecapeVariable('$achievement
Id') + '/resetForAllPlayers'; | 196 _url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId') + '
/resetForAllPlayers'; |
195 | 197 |
196 var _response = _requester.request(_url, | 198 var _response = _requester.request(_url, |
197 "POST", | 199 "POST", |
198 body: _body, | 200 body: _body, |
199 queryParams: _queryParams, | 201 queryParams: _queryParams, |
200 uploadOptions: _uploadOptions, | 202 uploadOptions: _uploadOptions, |
201 uploadMedia: _uploadMedia, | 203 uploadMedia: _uploadMedia, |
202 downloadOptions: _downloadOptions); | 204 downloadOptions: _downloadOptions); |
203 return _response.then((data) => null); | 205 return _response.then((data) => null); |
204 } | 206 } |
205 | 207 |
206 /** | 208 /** |
207 * Resets achievements with the given IDs for all players. This method is only | 209 * Resets achievements with the given IDs for all players. This method is only |
208 * available to user accounts for your developer console. Only draft | 210 * available to user accounts for your developer console. Only draft |
209 * achievements may be reset. | 211 * achievements may be reset. |
210 * | 212 * |
211 * [request] - The metadata request object. | 213 * [request] - The metadata request object. |
212 * | 214 * |
213 * Request parameters: | 215 * Request parameters: |
214 * | 216 * |
215 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
216 * error. | 218 * error. |
217 * | 219 * |
218 * If the used [http.Client] completes with an error when making a REST call, | 220 * If the used [http.Client] completes with an error when making a REST call, |
219 * this method will complete with the same error. | 221 * this method will complete with the same error. |
220 */ | 222 */ |
221 async.Future resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest
request) { | 223 async.Future resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest
request) { |
222 var _url = null; | 224 var _url = null; |
223 var _queryParams = new core.Map(); | 225 var _queryParams = new core.Map(); |
224 var _uploadMedia = null; | 226 var _uploadMedia = null; |
225 var _uploadOptions = null; | 227 var _uploadOptions = null; |
226 var _downloadOptions = common.DownloadOptions.Metadata; | 228 var _downloadOptions = commons.DownloadOptions.Metadata; |
227 var _body = null; | 229 var _body = null; |
228 | 230 |
229 if (request != null) { | 231 if (request != null) { |
230 _body = convert.JSON.encode((request).toJson()); | 232 _body = convert.JSON.encode((request).toJson()); |
231 } | 233 } |
232 | 234 |
233 _downloadOptions = null; | 235 _downloadOptions = null; |
234 | 236 |
235 _url = 'achievements/resetMultipleForAllPlayers'; | 237 _url = 'achievements/resetMultipleForAllPlayers'; |
236 | 238 |
237 var _response = _requester.request(_url, | 239 var _response = _requester.request(_url, |
238 "POST", | 240 "POST", |
239 body: _body, | 241 body: _body, |
240 queryParams: _queryParams, | 242 queryParams: _queryParams, |
241 uploadOptions: _uploadOptions, | 243 uploadOptions: _uploadOptions, |
242 uploadMedia: _uploadMedia, | 244 uploadMedia: _uploadMedia, |
243 downloadOptions: _downloadOptions); | 245 downloadOptions: _downloadOptions); |
244 return _response.then((data) => null); | 246 return _response.then((data) => null); |
245 } | 247 } |
246 | 248 |
247 } | 249 } |
248 | 250 |
249 | 251 |
250 /** Not documented yet. */ | |
251 class ApplicationsResourceApi { | 252 class ApplicationsResourceApi { |
252 final common_internal.ApiRequester _requester; | 253 final commons.ApiRequester _requester; |
253 | 254 |
254 ApplicationsResourceApi(common_internal.ApiRequester client) : | 255 ApplicationsResourceApi(commons.ApiRequester client) : |
255 _requester = client; | 256 _requester = client; |
256 | 257 |
257 /** | 258 /** |
258 * Get the list of players hidden from the given application. This method is | 259 * Get the list of players hidden from the given application. This method is |
259 * only available to user accounts for your developer console. | 260 * only available to user accounts for your developer console. |
260 * | 261 * |
261 * Request parameters: | 262 * Request parameters: |
262 * | 263 * |
263 * [applicationId] - The application ID from the Google Play developer | 264 * [applicationId] - The application ID from the Google Play developer |
264 * console. | 265 * console. |
265 * | 266 * |
266 * [maxResults] - The maximum number of player resources to return in the | 267 * [maxResults] - The maximum number of player resources to return in the |
267 * response, used for paging. For any response, the actual number of player | 268 * response, used for paging. For any response, the actual number of player |
268 * resources returned may be less than the specified maxResults. | 269 * resources returned may be less than the specified maxResults. |
269 * Value must be between "1" and "15". | 270 * Value must be between "1" and "15". |
270 * | 271 * |
271 * [pageToken] - The token returned by the previous request. | 272 * [pageToken] - The token returned by the previous request. |
272 * | 273 * |
273 * Completes with a [HiddenPlayerList]. | 274 * Completes with a [HiddenPlayerList]. |
274 * | 275 * |
275 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 276 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
276 * error. | 277 * error. |
277 * | 278 * |
278 * If the used [http.Client] completes with an error when making a REST call, | 279 * If the used [http.Client] completes with an error when making a REST call, |
279 * this method will complete with the same error. | 280 * this method will complete with the same error. |
280 */ | 281 */ |
281 async.Future<HiddenPlayerList> listHidden(core.String applicationId, {core.int
maxResults, core.String pageToken}) { | 282 async.Future<HiddenPlayerList> listHidden(core.String applicationId, {core.int
maxResults, core.String pageToken}) { |
282 var _url = null; | 283 var _url = null; |
283 var _queryParams = new core.Map(); | 284 var _queryParams = new core.Map(); |
284 var _uploadMedia = null; | 285 var _uploadMedia = null; |
285 var _uploadOptions = null; | 286 var _uploadOptions = null; |
286 var _downloadOptions = common.DownloadOptions.Metadata; | 287 var _downloadOptions = commons.DownloadOptions.Metadata; |
287 var _body = null; | 288 var _body = null; |
288 | 289 |
289 if (applicationId == null) { | 290 if (applicationId == null) { |
290 throw new core.ArgumentError("Parameter applicationId is required."); | 291 throw new core.ArgumentError("Parameter applicationId is required."); |
291 } | 292 } |
292 if (maxResults != null) { | 293 if (maxResults != null) { |
293 _queryParams["maxResults"] = ["${maxResults}"]; | 294 _queryParams["maxResults"] = ["${maxResults}"]; |
294 } | 295 } |
295 if (pageToken != null) { | 296 if (pageToken != null) { |
296 _queryParams["pageToken"] = [pageToken]; | 297 _queryParams["pageToken"] = [pageToken]; |
297 } | 298 } |
298 | 299 |
299 | 300 |
300 _url = 'applications/' + common_internal.Escaper.ecapeVariable('$application
Id') + '/players/hidden'; | 301 _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '
/players/hidden'; |
301 | 302 |
302 var _response = _requester.request(_url, | 303 var _response = _requester.request(_url, |
303 "GET", | 304 "GET", |
304 body: _body, | 305 body: _body, |
305 queryParams: _queryParams, | 306 queryParams: _queryParams, |
306 uploadOptions: _uploadOptions, | 307 uploadOptions: _uploadOptions, |
307 uploadMedia: _uploadMedia, | 308 uploadMedia: _uploadMedia, |
308 downloadOptions: _downloadOptions); | 309 downloadOptions: _downloadOptions); |
309 return _response.then((data) => new HiddenPlayerList.fromJson(data)); | 310 return _response.then((data) => new HiddenPlayerList.fromJson(data)); |
310 } | 311 } |
311 | 312 |
312 } | 313 } |
313 | 314 |
314 | 315 |
315 /** Not documented yet. */ | |
316 class EventsResourceApi { | 316 class EventsResourceApi { |
317 final common_internal.ApiRequester _requester; | 317 final commons.ApiRequester _requester; |
318 | 318 |
319 EventsResourceApi(common_internal.ApiRequester client) : | 319 EventsResourceApi(commons.ApiRequester client) : |
320 _requester = client; | 320 _requester = client; |
321 | 321 |
322 /** | 322 /** |
323 * Resets all player progress on the event with the given ID for the currently | 323 * Resets all player progress on the event with the given ID for the currently |
324 * authenticated player. This method is only accessible to whitelisted tester | 324 * authenticated player. This method is only accessible to whitelisted tester |
325 * accounts for your application. All quests for this player that use the | 325 * accounts for your application. All quests for this player that use the |
326 * event will also be reset. | 326 * event will also be reset. |
327 * | 327 * |
328 * Request parameters: | 328 * Request parameters: |
329 * | 329 * |
330 * [eventId] - The ID of the event. | 330 * [eventId] - The ID of the event. |
331 * | 331 * |
332 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 332 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
333 * error. | 333 * error. |
334 * | 334 * |
335 * If the used [http.Client] completes with an error when making a REST call, | 335 * If the used [http.Client] completes with an error when making a REST call, |
336 * this method will complete with the same error. | 336 * this method will complete with the same error. |
337 */ | 337 */ |
338 async.Future reset(core.String eventId) { | 338 async.Future reset(core.String eventId) { |
339 var _url = null; | 339 var _url = null; |
340 var _queryParams = new core.Map(); | 340 var _queryParams = new core.Map(); |
341 var _uploadMedia = null; | 341 var _uploadMedia = null; |
342 var _uploadOptions = null; | 342 var _uploadOptions = null; |
343 var _downloadOptions = common.DownloadOptions.Metadata; | 343 var _downloadOptions = commons.DownloadOptions.Metadata; |
344 var _body = null; | 344 var _body = null; |
345 | 345 |
346 if (eventId == null) { | 346 if (eventId == null) { |
347 throw new core.ArgumentError("Parameter eventId is required."); | 347 throw new core.ArgumentError("Parameter eventId is required."); |
348 } | 348 } |
349 | 349 |
350 _downloadOptions = null; | 350 _downloadOptions = null; |
351 | 351 |
352 _url = 'events/' + common_internal.Escaper.ecapeVariable('$eventId') + '/res
et'; | 352 _url = 'events/' + commons.Escaper.ecapeVariable('$eventId') + '/reset'; |
353 | 353 |
354 var _response = _requester.request(_url, | 354 var _response = _requester.request(_url, |
355 "POST", | 355 "POST", |
356 body: _body, | 356 body: _body, |
357 queryParams: _queryParams, | 357 queryParams: _queryParams, |
358 uploadOptions: _uploadOptions, | 358 uploadOptions: _uploadOptions, |
359 uploadMedia: _uploadMedia, | 359 uploadMedia: _uploadMedia, |
360 downloadOptions: _downloadOptions); | 360 downloadOptions: _downloadOptions); |
361 return _response.then((data) => null); | 361 return _response.then((data) => null); |
362 } | 362 } |
363 | 363 |
364 /** | 364 /** |
365 * Resets all player progress on all events for the currently authenticated | 365 * Resets all player progress on all events for the currently authenticated |
366 * player. This method is only accessible to whitelisted tester accounts for | 366 * player. This method is only accessible to whitelisted tester accounts for |
367 * your application. All quests for this player will also be reset. | 367 * your application. All quests for this player will also be reset. |
368 * | 368 * |
369 * Request parameters: | 369 * Request parameters: |
370 * | 370 * |
371 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 371 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
372 * error. | 372 * error. |
373 * | 373 * |
374 * If the used [http.Client] completes with an error when making a REST call, | 374 * If the used [http.Client] completes with an error when making a REST call, |
375 * this method will complete with the same error. | 375 * this method will complete with the same error. |
376 */ | 376 */ |
377 async.Future resetAll() { | 377 async.Future resetAll() { |
378 var _url = null; | 378 var _url = null; |
379 var _queryParams = new core.Map(); | 379 var _queryParams = new core.Map(); |
380 var _uploadMedia = null; | 380 var _uploadMedia = null; |
381 var _uploadOptions = null; | 381 var _uploadOptions = null; |
382 var _downloadOptions = common.DownloadOptions.Metadata; | 382 var _downloadOptions = commons.DownloadOptions.Metadata; |
383 var _body = null; | 383 var _body = null; |
384 | 384 |
385 | 385 |
386 _downloadOptions = null; | 386 _downloadOptions = null; |
387 | 387 |
388 _url = 'events/reset'; | 388 _url = 'events/reset'; |
389 | 389 |
390 var _response = _requester.request(_url, | 390 var _response = _requester.request(_url, |
391 "POST", | 391 "POST", |
392 body: _body, | 392 body: _body, |
393 queryParams: _queryParams, | 393 queryParams: _queryParams, |
394 uploadOptions: _uploadOptions, | 394 uploadOptions: _uploadOptions, |
395 uploadMedia: _uploadMedia, | 395 uploadMedia: _uploadMedia, |
396 downloadOptions: _downloadOptions); | 396 downloadOptions: _downloadOptions); |
397 return _response.then((data) => null); | 397 return _response.then((data) => null); |
398 } | 398 } |
399 | 399 |
400 /** | 400 /** |
401 * Resets all draft events for all players. This method is only available to | 401 * Resets all draft events for all players. This method is only available to |
402 * user accounts for your developer console. All quests that use any of these | 402 * user accounts for your developer console. All quests that use any of these |
403 * events will also be reset. | 403 * events will also be reset. |
404 * | 404 * |
405 * Request parameters: | 405 * Request parameters: |
406 * | 406 * |
407 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
408 * error. | 408 * error. |
409 * | 409 * |
410 * If the used [http.Client] completes with an error when making a REST call, | 410 * If the used [http.Client] completes with an error when making a REST call, |
411 * this method will complete with the same error. | 411 * this method will complete with the same error. |
412 */ | 412 */ |
413 async.Future resetAllForAllPlayers() { | 413 async.Future resetAllForAllPlayers() { |
414 var _url = null; | 414 var _url = null; |
415 var _queryParams = new core.Map(); | 415 var _queryParams = new core.Map(); |
416 var _uploadMedia = null; | 416 var _uploadMedia = null; |
417 var _uploadOptions = null; | 417 var _uploadOptions = null; |
418 var _downloadOptions = common.DownloadOptions.Metadata; | 418 var _downloadOptions = commons.DownloadOptions.Metadata; |
419 var _body = null; | 419 var _body = null; |
420 | 420 |
421 | 421 |
422 _downloadOptions = null; | 422 _downloadOptions = null; |
423 | 423 |
424 _url = 'events/resetAllForAllPlayers'; | 424 _url = 'events/resetAllForAllPlayers'; |
425 | 425 |
426 var _response = _requester.request(_url, | 426 var _response = _requester.request(_url, |
427 "POST", | 427 "POST", |
428 body: _body, | 428 body: _body, |
429 queryParams: _queryParams, | 429 queryParams: _queryParams, |
430 uploadOptions: _uploadOptions, | 430 uploadOptions: _uploadOptions, |
431 uploadMedia: _uploadMedia, | 431 uploadMedia: _uploadMedia, |
432 downloadOptions: _downloadOptions); | 432 downloadOptions: _downloadOptions); |
433 return _response.then((data) => null); | 433 return _response.then((data) => null); |
434 } | 434 } |
435 | 435 |
436 /** | 436 /** |
437 * Resets the event with the given ID for all players. This method is only | 437 * Resets the event with the given ID for all players. This method is only |
438 * available to user accounts for your developer console. Only draft events | 438 * available to user accounts for your developer console. Only draft events |
439 * can be reset. All quests that use the event will also be reset. | 439 * can be reset. All quests that use the event will also be reset. |
440 * | 440 * |
441 * Request parameters: | 441 * Request parameters: |
442 * | 442 * |
443 * [eventId] - The ID of the event. | 443 * [eventId] - The ID of the event. |
444 * | 444 * |
445 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 445 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
446 * error. | 446 * error. |
447 * | 447 * |
448 * If the used [http.Client] completes with an error when making a REST call, | 448 * If the used [http.Client] completes with an error when making a REST call, |
449 * this method will complete with the same error. | 449 * this method will complete with the same error. |
450 */ | 450 */ |
451 async.Future resetForAllPlayers(core.String eventId) { | 451 async.Future resetForAllPlayers(core.String eventId) { |
452 var _url = null; | 452 var _url = null; |
453 var _queryParams = new core.Map(); | 453 var _queryParams = new core.Map(); |
454 var _uploadMedia = null; | 454 var _uploadMedia = null; |
455 var _uploadOptions = null; | 455 var _uploadOptions = null; |
456 var _downloadOptions = common.DownloadOptions.Metadata; | 456 var _downloadOptions = commons.DownloadOptions.Metadata; |
457 var _body = null; | 457 var _body = null; |
458 | 458 |
459 if (eventId == null) { | 459 if (eventId == null) { |
460 throw new core.ArgumentError("Parameter eventId is required."); | 460 throw new core.ArgumentError("Parameter eventId is required."); |
461 } | 461 } |
462 | 462 |
463 _downloadOptions = null; | 463 _downloadOptions = null; |
464 | 464 |
465 _url = 'events/' + common_internal.Escaper.ecapeVariable('$eventId') + '/res
etForAllPlayers'; | 465 _url = 'events/' + commons.Escaper.ecapeVariable('$eventId') + '/resetForAll
Players'; |
466 | 466 |
467 var _response = _requester.request(_url, | 467 var _response = _requester.request(_url, |
468 "POST", | 468 "POST", |
469 body: _body, | 469 body: _body, |
470 queryParams: _queryParams, | 470 queryParams: _queryParams, |
471 uploadOptions: _uploadOptions, | 471 uploadOptions: _uploadOptions, |
472 uploadMedia: _uploadMedia, | 472 uploadMedia: _uploadMedia, |
473 downloadOptions: _downloadOptions); | 473 downloadOptions: _downloadOptions); |
474 return _response.then((data) => null); | 474 return _response.then((data) => null); |
475 } | 475 } |
476 | 476 |
477 /** | 477 /** |
478 * Resets events with the given IDs for all players. This method is only | 478 * Resets events with the given IDs for all players. This method is only |
479 * available to user accounts for your developer console. Only draft events | 479 * available to user accounts for your developer console. Only draft events |
480 * may be reset. All quests that use any of the events will also be reset. | 480 * may be reset. All quests that use any of the events will also be reset. |
481 * | 481 * |
482 * [request] - The metadata request object. | 482 * [request] - The metadata request object. |
483 * | 483 * |
484 * Request parameters: | 484 * Request parameters: |
485 * | 485 * |
486 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 486 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
487 * error. | 487 * error. |
488 * | 488 * |
489 * If the used [http.Client] completes with an error when making a REST call, | 489 * If the used [http.Client] completes with an error when making a REST call, |
490 * this method will complete with the same error. | 490 * this method will complete with the same error. |
491 */ | 491 */ |
492 async.Future resetMultipleForAllPlayers(EventsResetMultipleForAllRequest reque
st) { | 492 async.Future resetMultipleForAllPlayers(EventsResetMultipleForAllRequest reque
st) { |
493 var _url = null; | 493 var _url = null; |
494 var _queryParams = new core.Map(); | 494 var _queryParams = new core.Map(); |
495 var _uploadMedia = null; | 495 var _uploadMedia = null; |
496 var _uploadOptions = null; | 496 var _uploadOptions = null; |
497 var _downloadOptions = common.DownloadOptions.Metadata; | 497 var _downloadOptions = commons.DownloadOptions.Metadata; |
498 var _body = null; | 498 var _body = null; |
499 | 499 |
500 if (request != null) { | 500 if (request != null) { |
501 _body = convert.JSON.encode((request).toJson()); | 501 _body = convert.JSON.encode((request).toJson()); |
502 } | 502 } |
503 | 503 |
504 _downloadOptions = null; | 504 _downloadOptions = null; |
505 | 505 |
506 _url = 'events/resetMultipleForAllPlayers'; | 506 _url = 'events/resetMultipleForAllPlayers'; |
507 | 507 |
508 var _response = _requester.request(_url, | 508 var _response = _requester.request(_url, |
509 "POST", | 509 "POST", |
510 body: _body, | 510 body: _body, |
511 queryParams: _queryParams, | 511 queryParams: _queryParams, |
512 uploadOptions: _uploadOptions, | 512 uploadOptions: _uploadOptions, |
513 uploadMedia: _uploadMedia, | 513 uploadMedia: _uploadMedia, |
514 downloadOptions: _downloadOptions); | 514 downloadOptions: _downloadOptions); |
515 return _response.then((data) => null); | 515 return _response.then((data) => null); |
516 } | 516 } |
517 | 517 |
518 } | 518 } |
519 | 519 |
520 | 520 |
521 /** Not documented yet. */ | |
522 class PlayersResourceApi { | 521 class PlayersResourceApi { |
523 final common_internal.ApiRequester _requester; | 522 final commons.ApiRequester _requester; |
524 | 523 |
525 PlayersResourceApi(common_internal.ApiRequester client) : | 524 PlayersResourceApi(commons.ApiRequester client) : |
526 _requester = client; | 525 _requester = client; |
527 | 526 |
528 /** | 527 /** |
529 * Hide the given player's leaderboard scores from the given application. This | 528 * Hide the given player's leaderboard scores from the given application. This |
530 * method is only available to user accounts for your developer console. | 529 * method is only available to user accounts for your developer console. |
531 * | 530 * |
532 * Request parameters: | 531 * Request parameters: |
533 * | 532 * |
534 * [applicationId] - The application ID from the Google Play developer | 533 * [applicationId] - The application ID from the Google Play developer |
535 * console. | 534 * console. |
536 * | 535 * |
537 * [playerId] - A player ID. A value of me may be used in place of the | 536 * [playerId] - A player ID. A value of me may be used in place of the |
538 * authenticated player's ID. | 537 * authenticated player's ID. |
539 * | 538 * |
540 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 539 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
541 * error. | 540 * error. |
542 * | 541 * |
543 * If the used [http.Client] completes with an error when making a REST call, | 542 * If the used [http.Client] completes with an error when making a REST call, |
544 * this method will complete with the same error. | 543 * this method will complete with the same error. |
545 */ | 544 */ |
546 async.Future hide(core.String applicationId, core.String playerId) { | 545 async.Future hide(core.String applicationId, core.String playerId) { |
547 var _url = null; | 546 var _url = null; |
548 var _queryParams = new core.Map(); | 547 var _queryParams = new core.Map(); |
549 var _uploadMedia = null; | 548 var _uploadMedia = null; |
550 var _uploadOptions = null; | 549 var _uploadOptions = null; |
551 var _downloadOptions = common.DownloadOptions.Metadata; | 550 var _downloadOptions = commons.DownloadOptions.Metadata; |
552 var _body = null; | 551 var _body = null; |
553 | 552 |
554 if (applicationId == null) { | 553 if (applicationId == null) { |
555 throw new core.ArgumentError("Parameter applicationId is required."); | 554 throw new core.ArgumentError("Parameter applicationId is required."); |
556 } | 555 } |
557 if (playerId == null) { | 556 if (playerId == null) { |
558 throw new core.ArgumentError("Parameter playerId is required."); | 557 throw new core.ArgumentError("Parameter playerId is required."); |
559 } | 558 } |
560 | 559 |
561 _downloadOptions = null; | 560 _downloadOptions = null; |
562 | 561 |
563 _url = 'applications/' + common_internal.Escaper.ecapeVariable('$application
Id') + '/players/hidden/' + common_internal.Escaper.ecapeVariable('$playerId'); | 562 _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '
/players/hidden/' + commons.Escaper.ecapeVariable('$playerId'); |
564 | 563 |
565 var _response = _requester.request(_url, | 564 var _response = _requester.request(_url, |
566 "POST", | 565 "POST", |
567 body: _body, | 566 body: _body, |
568 queryParams: _queryParams, | 567 queryParams: _queryParams, |
569 uploadOptions: _uploadOptions, | 568 uploadOptions: _uploadOptions, |
570 uploadMedia: _uploadMedia, | 569 uploadMedia: _uploadMedia, |
571 downloadOptions: _downloadOptions); | 570 downloadOptions: _downloadOptions); |
572 return _response.then((data) => null); | 571 return _response.then((data) => null); |
573 } | 572 } |
574 | 573 |
575 /** | 574 /** |
576 * Unhide the given player's leaderboard scores from the given application. | 575 * Unhide the given player's leaderboard scores from the given application. |
577 * This method is only available to user accounts for your developer console. | 576 * This method is only available to user accounts for your developer console. |
578 * | 577 * |
579 * Request parameters: | 578 * Request parameters: |
580 * | 579 * |
581 * [applicationId] - The application ID from the Google Play developer | 580 * [applicationId] - The application ID from the Google Play developer |
582 * console. | 581 * console. |
583 * | 582 * |
584 * [playerId] - A player ID. A value of me may be used in place of the | 583 * [playerId] - A player ID. A value of me may be used in place of the |
585 * authenticated player's ID. | 584 * authenticated player's ID. |
586 * | 585 * |
587 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 586 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
588 * error. | 587 * error. |
589 * | 588 * |
590 * If the used [http.Client] completes with an error when making a REST call, | 589 * If the used [http.Client] completes with an error when making a REST call, |
591 * this method will complete with the same error. | 590 * this method will complete with the same error. |
592 */ | 591 */ |
593 async.Future unhide(core.String applicationId, core.String playerId) { | 592 async.Future unhide(core.String applicationId, core.String playerId) { |
594 var _url = null; | 593 var _url = null; |
595 var _queryParams = new core.Map(); | 594 var _queryParams = new core.Map(); |
596 var _uploadMedia = null; | 595 var _uploadMedia = null; |
597 var _uploadOptions = null; | 596 var _uploadOptions = null; |
598 var _downloadOptions = common.DownloadOptions.Metadata; | 597 var _downloadOptions = commons.DownloadOptions.Metadata; |
599 var _body = null; | 598 var _body = null; |
600 | 599 |
601 if (applicationId == null) { | 600 if (applicationId == null) { |
602 throw new core.ArgumentError("Parameter applicationId is required."); | 601 throw new core.ArgumentError("Parameter applicationId is required."); |
603 } | 602 } |
604 if (playerId == null) { | 603 if (playerId == null) { |
605 throw new core.ArgumentError("Parameter playerId is required."); | 604 throw new core.ArgumentError("Parameter playerId is required."); |
606 } | 605 } |
607 | 606 |
608 _downloadOptions = null; | 607 _downloadOptions = null; |
609 | 608 |
610 _url = 'applications/' + common_internal.Escaper.ecapeVariable('$application
Id') + '/players/hidden/' + common_internal.Escaper.ecapeVariable('$playerId'); | 609 _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '
/players/hidden/' + commons.Escaper.ecapeVariable('$playerId'); |
611 | 610 |
612 var _response = _requester.request(_url, | 611 var _response = _requester.request(_url, |
613 "DELETE", | 612 "DELETE", |
614 body: _body, | 613 body: _body, |
615 queryParams: _queryParams, | 614 queryParams: _queryParams, |
616 uploadOptions: _uploadOptions, | 615 uploadOptions: _uploadOptions, |
617 uploadMedia: _uploadMedia, | 616 uploadMedia: _uploadMedia, |
618 downloadOptions: _downloadOptions); | 617 downloadOptions: _downloadOptions); |
619 return _response.then((data) => null); | 618 return _response.then((data) => null); |
620 } | 619 } |
621 | 620 |
622 } | 621 } |
623 | 622 |
624 | 623 |
625 /** Not documented yet. */ | |
626 class QuestsResourceApi { | 624 class QuestsResourceApi { |
627 final common_internal.ApiRequester _requester; | 625 final commons.ApiRequester _requester; |
628 | 626 |
629 QuestsResourceApi(common_internal.ApiRequester client) : | 627 QuestsResourceApi(commons.ApiRequester client) : |
630 _requester = client; | 628 _requester = client; |
631 | 629 |
632 /** | 630 /** |
633 * Resets all player progress on the quest with the given ID for the currently | 631 * Resets all player progress on the quest with the given ID for the currently |
634 * authenticated player. This method is only accessible to whitelisted tester | 632 * authenticated player. This method is only accessible to whitelisted tester |
635 * accounts for your application. | 633 * accounts for your application. |
636 * | 634 * |
637 * Request parameters: | 635 * Request parameters: |
638 * | 636 * |
639 * [questId] - The ID of the quest. | 637 * [questId] - The ID of the quest. |
640 * | 638 * |
641 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
642 * error. | 640 * error. |
643 * | 641 * |
644 * If the used [http.Client] completes with an error when making a REST call, | 642 * If the used [http.Client] completes with an error when making a REST call, |
645 * this method will complete with the same error. | 643 * this method will complete with the same error. |
646 */ | 644 */ |
647 async.Future reset(core.String questId) { | 645 async.Future reset(core.String questId) { |
648 var _url = null; | 646 var _url = null; |
649 var _queryParams = new core.Map(); | 647 var _queryParams = new core.Map(); |
650 var _uploadMedia = null; | 648 var _uploadMedia = null; |
651 var _uploadOptions = null; | 649 var _uploadOptions = null; |
652 var _downloadOptions = common.DownloadOptions.Metadata; | 650 var _downloadOptions = commons.DownloadOptions.Metadata; |
653 var _body = null; | 651 var _body = null; |
654 | 652 |
655 if (questId == null) { | 653 if (questId == null) { |
656 throw new core.ArgumentError("Parameter questId is required."); | 654 throw new core.ArgumentError("Parameter questId is required."); |
657 } | 655 } |
658 | 656 |
659 _downloadOptions = null; | 657 _downloadOptions = null; |
660 | 658 |
661 _url = 'quests/' + common_internal.Escaper.ecapeVariable('$questId') + '/res
et'; | 659 _url = 'quests/' + commons.Escaper.ecapeVariable('$questId') + '/reset'; |
662 | 660 |
663 var _response = _requester.request(_url, | 661 var _response = _requester.request(_url, |
664 "POST", | 662 "POST", |
665 body: _body, | 663 body: _body, |
666 queryParams: _queryParams, | 664 queryParams: _queryParams, |
667 uploadOptions: _uploadOptions, | 665 uploadOptions: _uploadOptions, |
668 uploadMedia: _uploadMedia, | 666 uploadMedia: _uploadMedia, |
669 downloadOptions: _downloadOptions); | 667 downloadOptions: _downloadOptions); |
670 return _response.then((data) => null); | 668 return _response.then((data) => null); |
671 } | 669 } |
672 | 670 |
673 /** | 671 /** |
674 * Resets all player progress on all quests for the currently authenticated | 672 * Resets all player progress on all quests for the currently authenticated |
675 * player. This method is only accessible to whitelisted tester accounts for | 673 * player. This method is only accessible to whitelisted tester accounts for |
676 * your application. | 674 * your application. |
677 * | 675 * |
678 * Request parameters: | 676 * Request parameters: |
679 * | 677 * |
680 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 678 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
681 * error. | 679 * error. |
682 * | 680 * |
683 * If the used [http.Client] completes with an error when making a REST call, | 681 * If the used [http.Client] completes with an error when making a REST call, |
684 * this method will complete with the same error. | 682 * this method will complete with the same error. |
685 */ | 683 */ |
686 async.Future resetAll() { | 684 async.Future resetAll() { |
687 var _url = null; | 685 var _url = null; |
688 var _queryParams = new core.Map(); | 686 var _queryParams = new core.Map(); |
689 var _uploadMedia = null; | 687 var _uploadMedia = null; |
690 var _uploadOptions = null; | 688 var _uploadOptions = null; |
691 var _downloadOptions = common.DownloadOptions.Metadata; | 689 var _downloadOptions = commons.DownloadOptions.Metadata; |
692 var _body = null; | 690 var _body = null; |
693 | 691 |
694 | 692 |
695 _downloadOptions = null; | 693 _downloadOptions = null; |
696 | 694 |
697 _url = 'quests/reset'; | 695 _url = 'quests/reset'; |
698 | 696 |
699 var _response = _requester.request(_url, | 697 var _response = _requester.request(_url, |
700 "POST", | 698 "POST", |
701 body: _body, | 699 body: _body, |
702 queryParams: _queryParams, | 700 queryParams: _queryParams, |
703 uploadOptions: _uploadOptions, | 701 uploadOptions: _uploadOptions, |
704 uploadMedia: _uploadMedia, | 702 uploadMedia: _uploadMedia, |
705 downloadOptions: _downloadOptions); | 703 downloadOptions: _downloadOptions); |
706 return _response.then((data) => null); | 704 return _response.then((data) => null); |
707 } | 705 } |
708 | 706 |
709 /** | 707 /** |
710 * Resets all draft quests for all players. This method is only available to | 708 * Resets all draft quests for all players. This method is only available to |
711 * user accounts for your developer console. | 709 * user accounts for your developer console. |
712 * | 710 * |
713 * Request parameters: | 711 * Request parameters: |
714 * | 712 * |
715 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 713 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
716 * error. | 714 * error. |
717 * | 715 * |
718 * If the used [http.Client] completes with an error when making a REST call, | 716 * If the used [http.Client] completes with an error when making a REST call, |
719 * this method will complete with the same error. | 717 * this method will complete with the same error. |
720 */ | 718 */ |
721 async.Future resetAllForAllPlayers() { | 719 async.Future resetAllForAllPlayers() { |
722 var _url = null; | 720 var _url = null; |
723 var _queryParams = new core.Map(); | 721 var _queryParams = new core.Map(); |
724 var _uploadMedia = null; | 722 var _uploadMedia = null; |
725 var _uploadOptions = null; | 723 var _uploadOptions = null; |
726 var _downloadOptions = common.DownloadOptions.Metadata; | 724 var _downloadOptions = commons.DownloadOptions.Metadata; |
727 var _body = null; | 725 var _body = null; |
728 | 726 |
729 | 727 |
730 _downloadOptions = null; | 728 _downloadOptions = null; |
731 | 729 |
732 _url = 'quests/resetAllForAllPlayers'; | 730 _url = 'quests/resetAllForAllPlayers'; |
733 | 731 |
734 var _response = _requester.request(_url, | 732 var _response = _requester.request(_url, |
735 "POST", | 733 "POST", |
736 body: _body, | 734 body: _body, |
737 queryParams: _queryParams, | 735 queryParams: _queryParams, |
738 uploadOptions: _uploadOptions, | 736 uploadOptions: _uploadOptions, |
739 uploadMedia: _uploadMedia, | 737 uploadMedia: _uploadMedia, |
740 downloadOptions: _downloadOptions); | 738 downloadOptions: _downloadOptions); |
741 return _response.then((data) => null); | 739 return _response.then((data) => null); |
742 } | 740 } |
743 | 741 |
744 /** | 742 /** |
745 * Resets all player progress on the quest with the given ID for all players. | 743 * Resets all player progress on the quest with the given ID for all players. |
746 * This method is only available to user accounts for your developer console. | 744 * This method is only available to user accounts for your developer console. |
747 * Only draft quests can be reset. | 745 * Only draft quests can be reset. |
748 * | 746 * |
749 * Request parameters: | 747 * Request parameters: |
750 * | 748 * |
751 * [questId] - The ID of the quest. | 749 * [questId] - The ID of the quest. |
752 * | 750 * |
753 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 751 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
754 * error. | 752 * error. |
755 * | 753 * |
756 * If the used [http.Client] completes with an error when making a REST call, | 754 * If the used [http.Client] completes with an error when making a REST call, |
757 * this method will complete with the same error. | 755 * this method will complete with the same error. |
758 */ | 756 */ |
759 async.Future resetForAllPlayers(core.String questId) { | 757 async.Future resetForAllPlayers(core.String questId) { |
760 var _url = null; | 758 var _url = null; |
761 var _queryParams = new core.Map(); | 759 var _queryParams = new core.Map(); |
762 var _uploadMedia = null; | 760 var _uploadMedia = null; |
763 var _uploadOptions = null; | 761 var _uploadOptions = null; |
764 var _downloadOptions = common.DownloadOptions.Metadata; | 762 var _downloadOptions = commons.DownloadOptions.Metadata; |
765 var _body = null; | 763 var _body = null; |
766 | 764 |
767 if (questId == null) { | 765 if (questId == null) { |
768 throw new core.ArgumentError("Parameter questId is required."); | 766 throw new core.ArgumentError("Parameter questId is required."); |
769 } | 767 } |
770 | 768 |
771 _downloadOptions = null; | 769 _downloadOptions = null; |
772 | 770 |
773 _url = 'quests/' + common_internal.Escaper.ecapeVariable('$questId') + '/res
etForAllPlayers'; | 771 _url = 'quests/' + commons.Escaper.ecapeVariable('$questId') + '/resetForAll
Players'; |
774 | 772 |
775 var _response = _requester.request(_url, | 773 var _response = _requester.request(_url, |
776 "POST", | 774 "POST", |
777 body: _body, | 775 body: _body, |
778 queryParams: _queryParams, | 776 queryParams: _queryParams, |
779 uploadOptions: _uploadOptions, | 777 uploadOptions: _uploadOptions, |
780 uploadMedia: _uploadMedia, | 778 uploadMedia: _uploadMedia, |
781 downloadOptions: _downloadOptions); | 779 downloadOptions: _downloadOptions); |
782 return _response.then((data) => null); | 780 return _response.then((data) => null); |
783 } | 781 } |
784 | 782 |
785 /** | 783 /** |
786 * Resets quests with the given IDs for all players. This method is only | 784 * Resets quests with the given IDs for all players. This method is only |
787 * available to user accounts for your developer console. Only draft quests | 785 * available to user accounts for your developer console. Only draft quests |
788 * may be reset. | 786 * may be reset. |
789 * | 787 * |
790 * [request] - The metadata request object. | 788 * [request] - The metadata request object. |
791 * | 789 * |
792 * Request parameters: | 790 * Request parameters: |
793 * | 791 * |
794 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 792 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
795 * error. | 793 * error. |
796 * | 794 * |
797 * If the used [http.Client] completes with an error when making a REST call, | 795 * If the used [http.Client] completes with an error when making a REST call, |
798 * this method will complete with the same error. | 796 * this method will complete with the same error. |
799 */ | 797 */ |
800 async.Future resetMultipleForAllPlayers(QuestsResetMultipleForAllRequest reque
st) { | 798 async.Future resetMultipleForAllPlayers(QuestsResetMultipleForAllRequest reque
st) { |
801 var _url = null; | 799 var _url = null; |
802 var _queryParams = new core.Map(); | 800 var _queryParams = new core.Map(); |
803 var _uploadMedia = null; | 801 var _uploadMedia = null; |
804 var _uploadOptions = null; | 802 var _uploadOptions = null; |
805 var _downloadOptions = common.DownloadOptions.Metadata; | 803 var _downloadOptions = commons.DownloadOptions.Metadata; |
806 var _body = null; | 804 var _body = null; |
807 | 805 |
808 if (request != null) { | 806 if (request != null) { |
809 _body = convert.JSON.encode((request).toJson()); | 807 _body = convert.JSON.encode((request).toJson()); |
810 } | 808 } |
811 | 809 |
812 _downloadOptions = null; | 810 _downloadOptions = null; |
813 | 811 |
814 _url = 'quests/resetMultipleForAllPlayers'; | 812 _url = 'quests/resetMultipleForAllPlayers'; |
815 | 813 |
816 var _response = _requester.request(_url, | 814 var _response = _requester.request(_url, |
817 "POST", | 815 "POST", |
818 body: _body, | 816 body: _body, |
819 queryParams: _queryParams, | 817 queryParams: _queryParams, |
820 uploadOptions: _uploadOptions, | 818 uploadOptions: _uploadOptions, |
821 uploadMedia: _uploadMedia, | 819 uploadMedia: _uploadMedia, |
822 downloadOptions: _downloadOptions); | 820 downloadOptions: _downloadOptions); |
823 return _response.then((data) => null); | 821 return _response.then((data) => null); |
824 } | 822 } |
825 | 823 |
826 } | 824 } |
827 | 825 |
828 | 826 |
829 /** Not documented yet. */ | |
830 class RoomsResourceApi { | 827 class RoomsResourceApi { |
831 final common_internal.ApiRequester _requester; | 828 final commons.ApiRequester _requester; |
832 | 829 |
833 RoomsResourceApi(common_internal.ApiRequester client) : | 830 RoomsResourceApi(commons.ApiRequester client) : |
834 _requester = client; | 831 _requester = client; |
835 | 832 |
836 /** | 833 /** |
837 * Reset all rooms for the currently authenticated player for your | 834 * Reset all rooms for the currently authenticated player for your |
838 * application. This method is only accessible to whitelisted tester accounts | 835 * application. This method is only accessible to whitelisted tester accounts |
839 * for your application. | 836 * for your application. |
840 * | 837 * |
841 * Request parameters: | 838 * Request parameters: |
842 * | 839 * |
843 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 840 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
844 * error. | 841 * error. |
845 * | 842 * |
846 * If the used [http.Client] completes with an error when making a REST call, | 843 * If the used [http.Client] completes with an error when making a REST call, |
847 * this method will complete with the same error. | 844 * this method will complete with the same error. |
848 */ | 845 */ |
849 async.Future reset() { | 846 async.Future reset() { |
850 var _url = null; | 847 var _url = null; |
851 var _queryParams = new core.Map(); | 848 var _queryParams = new core.Map(); |
852 var _uploadMedia = null; | 849 var _uploadMedia = null; |
853 var _uploadOptions = null; | 850 var _uploadOptions = null; |
854 var _downloadOptions = common.DownloadOptions.Metadata; | 851 var _downloadOptions = commons.DownloadOptions.Metadata; |
855 var _body = null; | 852 var _body = null; |
856 | 853 |
857 | 854 |
858 _downloadOptions = null; | 855 _downloadOptions = null; |
859 | 856 |
860 _url = 'rooms/reset'; | 857 _url = 'rooms/reset'; |
861 | 858 |
862 var _response = _requester.request(_url, | 859 var _response = _requester.request(_url, |
863 "POST", | 860 "POST", |
864 body: _body, | 861 body: _body, |
865 queryParams: _queryParams, | 862 queryParams: _queryParams, |
866 uploadOptions: _uploadOptions, | 863 uploadOptions: _uploadOptions, |
867 uploadMedia: _uploadMedia, | 864 uploadMedia: _uploadMedia, |
868 downloadOptions: _downloadOptions); | 865 downloadOptions: _downloadOptions); |
869 return _response.then((data) => null); | 866 return _response.then((data) => null); |
870 } | 867 } |
871 | 868 |
872 /** | 869 /** |
873 * Deletes rooms where the only room participants are from whitelisted tester | 870 * Deletes rooms where the only room participants are from whitelisted tester |
874 * accounts for your application. This method is only available to user | 871 * accounts for your application. This method is only available to user |
875 * accounts for your developer console. | 872 * accounts for your developer console. |
876 * | 873 * |
877 * Request parameters: | 874 * Request parameters: |
878 * | 875 * |
879 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 876 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
880 * error. | 877 * error. |
881 * | 878 * |
882 * If the used [http.Client] completes with an error when making a REST call, | 879 * If the used [http.Client] completes with an error when making a REST call, |
883 * this method will complete with the same error. | 880 * this method will complete with the same error. |
884 */ | 881 */ |
885 async.Future resetForAllPlayers() { | 882 async.Future resetForAllPlayers() { |
886 var _url = null; | 883 var _url = null; |
887 var _queryParams = new core.Map(); | 884 var _queryParams = new core.Map(); |
888 var _uploadMedia = null; | 885 var _uploadMedia = null; |
889 var _uploadOptions = null; | 886 var _uploadOptions = null; |
890 var _downloadOptions = common.DownloadOptions.Metadata; | 887 var _downloadOptions = commons.DownloadOptions.Metadata; |
891 var _body = null; | 888 var _body = null; |
892 | 889 |
893 | 890 |
894 _downloadOptions = null; | 891 _downloadOptions = null; |
895 | 892 |
896 _url = 'rooms/resetForAllPlayers'; | 893 _url = 'rooms/resetForAllPlayers'; |
897 | 894 |
898 var _response = _requester.request(_url, | 895 var _response = _requester.request(_url, |
899 "POST", | 896 "POST", |
900 body: _body, | 897 body: _body, |
901 queryParams: _queryParams, | 898 queryParams: _queryParams, |
902 uploadOptions: _uploadOptions, | 899 uploadOptions: _uploadOptions, |
903 uploadMedia: _uploadMedia, | 900 uploadMedia: _uploadMedia, |
904 downloadOptions: _downloadOptions); | 901 downloadOptions: _downloadOptions); |
905 return _response.then((data) => null); | 902 return _response.then((data) => null); |
906 } | 903 } |
907 | 904 |
908 } | 905 } |
909 | 906 |
910 | 907 |
911 /** Not documented yet. */ | |
912 class ScoresResourceApi { | 908 class ScoresResourceApi { |
913 final common_internal.ApiRequester _requester; | 909 final commons.ApiRequester _requester; |
914 | 910 |
915 ScoresResourceApi(common_internal.ApiRequester client) : | 911 ScoresResourceApi(commons.ApiRequester client) : |
916 _requester = client; | 912 _requester = client; |
917 | 913 |
918 /** | 914 /** |
919 * Resets scores for the leaderboard with the given ID for the currently | 915 * Resets scores for the leaderboard with the given ID for the currently |
920 * authenticated player. This method is only accessible to whitelisted tester | 916 * authenticated player. This method is only accessible to whitelisted tester |
921 * accounts for your application. | 917 * accounts for your application. |
922 * | 918 * |
923 * Request parameters: | 919 * Request parameters: |
924 * | 920 * |
925 * [leaderboardId] - The ID of the leaderboard. | 921 * [leaderboardId] - The ID of the leaderboard. |
926 * | 922 * |
927 * Completes with a [PlayerScoreResetResponse]. | 923 * Completes with a [PlayerScoreResetResponse]. |
928 * | 924 * |
929 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 925 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
930 * error. | 926 * error. |
931 * | 927 * |
932 * If the used [http.Client] completes with an error when making a REST call, | 928 * If the used [http.Client] completes with an error when making a REST call, |
933 * this method will complete with the same error. | 929 * this method will complete with the same error. |
934 */ | 930 */ |
935 async.Future<PlayerScoreResetResponse> reset(core.String leaderboardId) { | 931 async.Future<PlayerScoreResetResponse> reset(core.String leaderboardId) { |
936 var _url = null; | 932 var _url = null; |
937 var _queryParams = new core.Map(); | 933 var _queryParams = new core.Map(); |
938 var _uploadMedia = null; | 934 var _uploadMedia = null; |
939 var _uploadOptions = null; | 935 var _uploadOptions = null; |
940 var _downloadOptions = common.DownloadOptions.Metadata; | 936 var _downloadOptions = commons.DownloadOptions.Metadata; |
941 var _body = null; | 937 var _body = null; |
942 | 938 |
943 if (leaderboardId == null) { | 939 if (leaderboardId == null) { |
944 throw new core.ArgumentError("Parameter leaderboardId is required."); | 940 throw new core.ArgumentError("Parameter leaderboardId is required."); |
945 } | 941 } |
946 | 942 |
947 | 943 |
948 _url = 'leaderboards/' + common_internal.Escaper.ecapeVariable('$leaderboard
Id') + '/scores/reset'; | 944 _url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId') + '
/scores/reset'; |
949 | 945 |
950 var _response = _requester.request(_url, | 946 var _response = _requester.request(_url, |
951 "POST", | 947 "POST", |
952 body: _body, | 948 body: _body, |
953 queryParams: _queryParams, | 949 queryParams: _queryParams, |
954 uploadOptions: _uploadOptions, | 950 uploadOptions: _uploadOptions, |
955 uploadMedia: _uploadMedia, | 951 uploadMedia: _uploadMedia, |
956 downloadOptions: _downloadOptions); | 952 downloadOptions: _downloadOptions); |
957 return _response.then((data) => new PlayerScoreResetResponse.fromJson(data))
; | 953 return _response.then((data) => new PlayerScoreResetResponse.fromJson(data))
; |
958 } | 954 } |
959 | 955 |
960 /** | 956 /** |
961 * Resets all scores for all leaderboards for the currently authenticated | 957 * Resets all scores for all leaderboards for the currently authenticated |
962 * players. This method is only accessible to whitelisted tester accounts for | 958 * players. This method is only accessible to whitelisted tester accounts for |
963 * your application. | 959 * your application. |
964 * | 960 * |
965 * Request parameters: | 961 * Request parameters: |
966 * | 962 * |
967 * Completes with a [PlayerScoreResetAllResponse]. | 963 * Completes with a [PlayerScoreResetAllResponse]. |
968 * | 964 * |
969 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 965 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
970 * error. | 966 * error. |
971 * | 967 * |
972 * If the used [http.Client] completes with an error when making a REST call, | 968 * If the used [http.Client] completes with an error when making a REST call, |
973 * this method will complete with the same error. | 969 * this method will complete with the same error. |
974 */ | 970 */ |
975 async.Future<PlayerScoreResetAllResponse> resetAll() { | 971 async.Future<PlayerScoreResetAllResponse> resetAll() { |
976 var _url = null; | 972 var _url = null; |
977 var _queryParams = new core.Map(); | 973 var _queryParams = new core.Map(); |
978 var _uploadMedia = null; | 974 var _uploadMedia = null; |
979 var _uploadOptions = null; | 975 var _uploadOptions = null; |
980 var _downloadOptions = common.DownloadOptions.Metadata; | 976 var _downloadOptions = commons.DownloadOptions.Metadata; |
981 var _body = null; | 977 var _body = null; |
982 | 978 |
983 | 979 |
984 | 980 |
985 _url = 'scores/reset'; | 981 _url = 'scores/reset'; |
986 | 982 |
987 var _response = _requester.request(_url, | 983 var _response = _requester.request(_url, |
988 "POST", | 984 "POST", |
989 body: _body, | 985 body: _body, |
990 queryParams: _queryParams, | 986 queryParams: _queryParams, |
991 uploadOptions: _uploadOptions, | 987 uploadOptions: _uploadOptions, |
992 uploadMedia: _uploadMedia, | 988 uploadMedia: _uploadMedia, |
993 downloadOptions: _downloadOptions); | 989 downloadOptions: _downloadOptions); |
994 return _response.then((data) => new PlayerScoreResetAllResponse.fromJson(dat
a)); | 990 return _response.then((data) => new PlayerScoreResetAllResponse.fromJson(dat
a)); |
995 } | 991 } |
996 | 992 |
997 /** | 993 /** |
998 * Resets scores for all draft leaderboards for all players. This method is | 994 * Resets scores for all draft leaderboards for all players. This method is |
999 * only available to user accounts for your developer console. | 995 * only available to user accounts for your developer console. |
1000 * | 996 * |
1001 * Request parameters: | 997 * Request parameters: |
1002 * | 998 * |
1003 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 999 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1004 * error. | 1000 * error. |
1005 * | 1001 * |
1006 * If the used [http.Client] completes with an error when making a REST call, | 1002 * If the used [http.Client] completes with an error when making a REST call, |
1007 * this method will complete with the same error. | 1003 * this method will complete with the same error. |
1008 */ | 1004 */ |
1009 async.Future resetAllForAllPlayers() { | 1005 async.Future resetAllForAllPlayers() { |
1010 var _url = null; | 1006 var _url = null; |
1011 var _queryParams = new core.Map(); | 1007 var _queryParams = new core.Map(); |
1012 var _uploadMedia = null; | 1008 var _uploadMedia = null; |
1013 var _uploadOptions = null; | 1009 var _uploadOptions = null; |
1014 var _downloadOptions = common.DownloadOptions.Metadata; | 1010 var _downloadOptions = commons.DownloadOptions.Metadata; |
1015 var _body = null; | 1011 var _body = null; |
1016 | 1012 |
1017 | 1013 |
1018 _downloadOptions = null; | 1014 _downloadOptions = null; |
1019 | 1015 |
1020 _url = 'scores/resetAllForAllPlayers'; | 1016 _url = 'scores/resetAllForAllPlayers'; |
1021 | 1017 |
1022 var _response = _requester.request(_url, | 1018 var _response = _requester.request(_url, |
1023 "POST", | 1019 "POST", |
1024 body: _body, | 1020 body: _body, |
1025 queryParams: _queryParams, | 1021 queryParams: _queryParams, |
1026 uploadOptions: _uploadOptions, | 1022 uploadOptions: _uploadOptions, |
1027 uploadMedia: _uploadMedia, | 1023 uploadMedia: _uploadMedia, |
1028 downloadOptions: _downloadOptions); | 1024 downloadOptions: _downloadOptions); |
1029 return _response.then((data) => null); | 1025 return _response.then((data) => null); |
1030 } | 1026 } |
1031 | 1027 |
1032 /** | 1028 /** |
1033 * Resets scores for the leaderboard with the given ID for all players. This | 1029 * Resets scores for the leaderboard with the given ID for all players. This |
1034 * method is only available to user accounts for your developer console. Only | 1030 * method is only available to user accounts for your developer console. Only |
1035 * draft leaderboards can be reset. | 1031 * draft leaderboards can be reset. |
1036 * | 1032 * |
1037 * Request parameters: | 1033 * Request parameters: |
1038 * | 1034 * |
1039 * [leaderboardId] - The ID of the leaderboard. | 1035 * [leaderboardId] - The ID of the leaderboard. |
1040 * | 1036 * |
1041 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1037 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1042 * error. | 1038 * error. |
1043 * | 1039 * |
1044 * If the used [http.Client] completes with an error when making a REST call, | 1040 * If the used [http.Client] completes with an error when making a REST call, |
1045 * this method will complete with the same error. | 1041 * this method will complete with the same error. |
1046 */ | 1042 */ |
1047 async.Future resetForAllPlayers(core.String leaderboardId) { | 1043 async.Future resetForAllPlayers(core.String leaderboardId) { |
1048 var _url = null; | 1044 var _url = null; |
1049 var _queryParams = new core.Map(); | 1045 var _queryParams = new core.Map(); |
1050 var _uploadMedia = null; | 1046 var _uploadMedia = null; |
1051 var _uploadOptions = null; | 1047 var _uploadOptions = null; |
1052 var _downloadOptions = common.DownloadOptions.Metadata; | 1048 var _downloadOptions = commons.DownloadOptions.Metadata; |
1053 var _body = null; | 1049 var _body = null; |
1054 | 1050 |
1055 if (leaderboardId == null) { | 1051 if (leaderboardId == null) { |
1056 throw new core.ArgumentError("Parameter leaderboardId is required."); | 1052 throw new core.ArgumentError("Parameter leaderboardId is required."); |
1057 } | 1053 } |
1058 | 1054 |
1059 _downloadOptions = null; | 1055 _downloadOptions = null; |
1060 | 1056 |
1061 _url = 'leaderboards/' + common_internal.Escaper.ecapeVariable('$leaderboard
Id') + '/scores/resetForAllPlayers'; | 1057 _url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId') + '
/scores/resetForAllPlayers'; |
1062 | 1058 |
1063 var _response = _requester.request(_url, | 1059 var _response = _requester.request(_url, |
1064 "POST", | 1060 "POST", |
1065 body: _body, | 1061 body: _body, |
1066 queryParams: _queryParams, | 1062 queryParams: _queryParams, |
1067 uploadOptions: _uploadOptions, | 1063 uploadOptions: _uploadOptions, |
1068 uploadMedia: _uploadMedia, | 1064 uploadMedia: _uploadMedia, |
1069 downloadOptions: _downloadOptions); | 1065 downloadOptions: _downloadOptions); |
1070 return _response.then((data) => null); | 1066 return _response.then((data) => null); |
1071 } | 1067 } |
1072 | 1068 |
1073 /** | 1069 /** |
1074 * Resets scores for the leaderboards with the given IDs for all players. This | 1070 * Resets scores for the leaderboards with the given IDs for all players. This |
1075 * method is only available to user accounts for your developer console. Only | 1071 * method is only available to user accounts for your developer console. Only |
1076 * draft leaderboards may be reset. | 1072 * draft leaderboards may be reset. |
1077 * | 1073 * |
1078 * [request] - The metadata request object. | 1074 * [request] - The metadata request object. |
1079 * | 1075 * |
1080 * Request parameters: | 1076 * Request parameters: |
1081 * | 1077 * |
1082 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1078 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1083 * error. | 1079 * error. |
1084 * | 1080 * |
1085 * If the used [http.Client] completes with an error when making a REST call, | 1081 * If the used [http.Client] completes with an error when making a REST call, |
1086 * this method will complete with the same error. | 1082 * this method will complete with the same error. |
1087 */ | 1083 */ |
1088 async.Future resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest reque
st) { | 1084 async.Future resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest reque
st) { |
1089 var _url = null; | 1085 var _url = null; |
1090 var _queryParams = new core.Map(); | 1086 var _queryParams = new core.Map(); |
1091 var _uploadMedia = null; | 1087 var _uploadMedia = null; |
1092 var _uploadOptions = null; | 1088 var _uploadOptions = null; |
1093 var _downloadOptions = common.DownloadOptions.Metadata; | 1089 var _downloadOptions = commons.DownloadOptions.Metadata; |
1094 var _body = null; | 1090 var _body = null; |
1095 | 1091 |
1096 if (request != null) { | 1092 if (request != null) { |
1097 _body = convert.JSON.encode((request).toJson()); | 1093 _body = convert.JSON.encode((request).toJson()); |
1098 } | 1094 } |
1099 | 1095 |
1100 _downloadOptions = null; | 1096 _downloadOptions = null; |
1101 | 1097 |
1102 _url = 'scores/resetMultipleForAllPlayers'; | 1098 _url = 'scores/resetMultipleForAllPlayers'; |
1103 | 1099 |
1104 var _response = _requester.request(_url, | 1100 var _response = _requester.request(_url, |
1105 "POST", | 1101 "POST", |
1106 body: _body, | 1102 body: _body, |
1107 queryParams: _queryParams, | 1103 queryParams: _queryParams, |
1108 uploadOptions: _uploadOptions, | 1104 uploadOptions: _uploadOptions, |
1109 uploadMedia: _uploadMedia, | 1105 uploadMedia: _uploadMedia, |
1110 downloadOptions: _downloadOptions); | 1106 downloadOptions: _downloadOptions); |
1111 return _response.then((data) => null); | 1107 return _response.then((data) => null); |
1112 } | 1108 } |
1113 | 1109 |
1114 } | 1110 } |
1115 | 1111 |
1116 | 1112 |
1117 /** Not documented yet. */ | |
1118 class TurnBasedMatchesResourceApi { | 1113 class TurnBasedMatchesResourceApi { |
1119 final common_internal.ApiRequester _requester; | 1114 final commons.ApiRequester _requester; |
1120 | 1115 |
1121 TurnBasedMatchesResourceApi(common_internal.ApiRequester client) : | 1116 TurnBasedMatchesResourceApi(commons.ApiRequester client) : |
1122 _requester = client; | 1117 _requester = client; |
1123 | 1118 |
1124 /** | 1119 /** |
1125 * Reset all turn-based match data for a user. This method is only accessible | 1120 * Reset all turn-based match data for a user. This method is only accessible |
1126 * to whitelisted tester accounts for your application. | 1121 * to whitelisted tester accounts for your application. |
1127 * | 1122 * |
1128 * Request parameters: | 1123 * Request parameters: |
1129 * | 1124 * |
1130 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1125 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1131 * error. | 1126 * error. |
1132 * | 1127 * |
1133 * If the used [http.Client] completes with an error when making a REST call, | 1128 * If the used [http.Client] completes with an error when making a REST call, |
1134 * this method will complete with the same error. | 1129 * this method will complete with the same error. |
1135 */ | 1130 */ |
1136 async.Future reset() { | 1131 async.Future reset() { |
1137 var _url = null; | 1132 var _url = null; |
1138 var _queryParams = new core.Map(); | 1133 var _queryParams = new core.Map(); |
1139 var _uploadMedia = null; | 1134 var _uploadMedia = null; |
1140 var _uploadOptions = null; | 1135 var _uploadOptions = null; |
1141 var _downloadOptions = common.DownloadOptions.Metadata; | 1136 var _downloadOptions = commons.DownloadOptions.Metadata; |
1142 var _body = null; | 1137 var _body = null; |
1143 | 1138 |
1144 | 1139 |
1145 _downloadOptions = null; | 1140 _downloadOptions = null; |
1146 | 1141 |
1147 _url = 'turnbasedmatches/reset'; | 1142 _url = 'turnbasedmatches/reset'; |
1148 | 1143 |
1149 var _response = _requester.request(_url, | 1144 var _response = _requester.request(_url, |
1150 "POST", | 1145 "POST", |
1151 body: _body, | 1146 body: _body, |
1152 queryParams: _queryParams, | 1147 queryParams: _queryParams, |
1153 uploadOptions: _uploadOptions, | 1148 uploadOptions: _uploadOptions, |
1154 uploadMedia: _uploadMedia, | 1149 uploadMedia: _uploadMedia, |
1155 downloadOptions: _downloadOptions); | 1150 downloadOptions: _downloadOptions); |
1156 return _response.then((data) => null); | 1151 return _response.then((data) => null); |
1157 } | 1152 } |
1158 | 1153 |
1159 /** | 1154 /** |
1160 * Deletes turn-based matches where the only match participants are from | 1155 * Deletes turn-based matches where the only match participants are from |
1161 * whitelisted tester accounts for your application. This method is only | 1156 * whitelisted tester accounts for your application. This method is only |
1162 * available to user accounts for your developer console. | 1157 * available to user accounts for your developer console. |
1163 * | 1158 * |
1164 * Request parameters: | 1159 * Request parameters: |
1165 * | 1160 * |
1166 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1161 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1167 * error. | 1162 * error. |
1168 * | 1163 * |
1169 * If the used [http.Client] completes with an error when making a REST call, | 1164 * If the used [http.Client] completes with an error when making a REST call, |
1170 * this method will complete with the same error. | 1165 * this method will complete with the same error. |
1171 */ | 1166 */ |
1172 async.Future resetForAllPlayers() { | 1167 async.Future resetForAllPlayers() { |
1173 var _url = null; | 1168 var _url = null; |
1174 var _queryParams = new core.Map(); | 1169 var _queryParams = new core.Map(); |
1175 var _uploadMedia = null; | 1170 var _uploadMedia = null; |
1176 var _uploadOptions = null; | 1171 var _uploadOptions = null; |
1177 var _downloadOptions = common.DownloadOptions.Metadata; | 1172 var _downloadOptions = commons.DownloadOptions.Metadata; |
1178 var _body = null; | 1173 var _body = null; |
1179 | 1174 |
1180 | 1175 |
1181 _downloadOptions = null; | 1176 _downloadOptions = null; |
1182 | 1177 |
1183 _url = 'turnbasedmatches/resetForAllPlayers'; | 1178 _url = 'turnbasedmatches/resetForAllPlayers'; |
1184 | 1179 |
1185 var _response = _requester.request(_url, | 1180 var _response = _requester.request(_url, |
1186 "POST", | 1181 "POST", |
1187 body: _body, | 1182 body: _body, |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 var _json = new core.Map(); | 1883 var _json = new core.Map(); |
1889 if (kind != null) { | 1884 if (kind != null) { |
1890 _json["kind"] = kind; | 1885 _json["kind"] = kind; |
1891 } | 1886 } |
1892 if (leaderboardIds != null) { | 1887 if (leaderboardIds != null) { |
1893 _json["leaderboard_ids"] = leaderboardIds; | 1888 _json["leaderboard_ids"] = leaderboardIds; |
1894 } | 1889 } |
1895 return _json; | 1890 return _json; |
1896 } | 1891 } |
1897 } | 1892 } |
1898 | |
1899 | |
OLD | NEW |