Index: generated/googleapis/lib/gamesconfiguration/v1configuration.dart |
diff --git a/generated/googleapis/lib/gamesconfiguration/v1configuration.dart b/generated/googleapis/lib/gamesconfiguration/v1configuration.dart |
index 059a9a193823649d35789824e41b957425bbb3a4..571fee4912ea982f90419ce5c9a8f4e173d81b3b 100644 |
--- a/generated/googleapis/lib/gamesconfiguration/v1configuration.dart |
+++ b/generated/googleapis/lib/gamesconfiguration/v1configuration.dart |
@@ -9,49 +9,59 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
- ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
- ByteRange; |
- |
-const core.String USER_AGENT = 'dart-api-client gamesConfiguration/v1configuration'; |
- |
-/** The Publishing API for Google Play Game Services. */ |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show |
+ ApiRequestError, |
+ DetailedApiRequestError, |
+ Media, |
+ UploadOptions, |
+ ResumableUploadOptions, |
+ DownloadOptions, |
+ PartialDownloadOptions, |
+ ByteRange; |
+ |
+const core.String USER_AGENT = |
+ 'dart-api-client gamesConfiguration/v1configuration'; |
+ |
+/// The Publishing API for Google Play Game Services. |
class GamesConfigurationApi { |
- /** View and manage your Google Play Developer account */ |
- static const AndroidpublisherScope = "https://www.googleapis.com/auth/androidpublisher"; |
- |
+ /// View and manage your Google Play Developer account |
+ static const AndroidpublisherScope = |
+ "https://www.googleapis.com/auth/androidpublisher"; |
final commons.ApiRequester _requester; |
- AchievementConfigurationsResourceApi get achievementConfigurations => new AchievementConfigurationsResourceApi(_requester); |
- ImageConfigurationsResourceApi get imageConfigurations => new ImageConfigurationsResourceApi(_requester); |
- LeaderboardConfigurationsResourceApi get leaderboardConfigurations => new LeaderboardConfigurationsResourceApi(_requester); |
- |
- GamesConfigurationApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "games/v1configuration/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ AchievementConfigurationsResourceApi get achievementConfigurations => |
+ new AchievementConfigurationsResourceApi(_requester); |
+ ImageConfigurationsResourceApi get imageConfigurations => |
+ new ImageConfigurationsResourceApi(_requester); |
+ LeaderboardConfigurationsResourceApi get leaderboardConfigurations => |
+ new LeaderboardConfigurationsResourceApi(_requester); |
+ |
+ GamesConfigurationApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "games/v1configuration/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class AchievementConfigurationsResourceApi { |
final commons.ApiRequester _requester; |
- AchievementConfigurationsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Delete the achievement configuration with the given ID. |
- * |
- * Request parameters: |
- * |
- * [achievementId] - The ID of the achievement used by this method. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ AchievementConfigurationsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Delete the achievement configuration with the given ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [achievementId] - The ID of the achievement used by this method. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String achievementId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -68,31 +78,29 @@ class AchievementConfigurationsResourceApi { |
_url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Retrieves the metadata of the achievement configuration with the given ID. |
- * |
- * Request parameters: |
- * |
- * [achievementId] - The ID of the achievement used by this method. |
- * |
- * Completes with a [AchievementConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Retrieves the metadata of the achievement configuration with the given |
+ /// ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [achievementId] - The ID of the achievement used by this method. |
+ /// |
+ /// Completes with a [AchievementConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<AchievementConfiguration> get(core.String achievementId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -107,35 +115,34 @@ class AchievementConfigurationsResourceApi { |
_url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new AchievementConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new AchievementConfiguration.fromJson(data)); |
} |
- /** |
- * Insert a new achievement configuration in this application. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [applicationId] - The application ID from the Google Play developer |
- * console. |
- * |
- * Completes with a [AchievementConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<AchievementConfiguration> insert(AchievementConfiguration request, core.String applicationId) { |
+ /// Insert a new achievement configuration in this application. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [applicationId] - The application ID from the Google Play developer |
+ /// console. |
+ /// |
+ /// Completes with a [AchievementConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<AchievementConfiguration> insert( |
+ AchievementConfiguration request, core.String applicationId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -150,42 +157,45 @@ class AchievementConfigurationsResourceApi { |
throw new core.ArgumentError("Parameter applicationId is required."); |
} |
- _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '/achievements'; |
+ _url = 'applications/' + |
+ commons.Escaper.ecapeVariable('$applicationId') + |
+ '/achievements'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new AchievementConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new AchievementConfiguration.fromJson(data)); |
} |
- /** |
- * Returns a list of the achievement configurations in this application. |
- * |
- * Request parameters: |
- * |
- * [applicationId] - The application ID from the Google Play developer |
- * console. |
- * |
- * [maxResults] - The maximum number of resource configurations to return in |
- * the response, used for paging. For any response, the actual number of |
- * resources returned may be less than the specified maxResults. |
- * Value must be between "1" and "200". |
- * |
- * [pageToken] - The token returned by the previous request. |
- * |
- * Completes with a [AchievementConfigurationListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<AchievementConfigurationListResponse> list(core.String applicationId, {core.int maxResults, core.String pageToken}) { |
+ /// Returns a list of the achievement configurations in this application. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [applicationId] - The application ID from the Google Play developer |
+ /// console. |
+ /// |
+ /// [maxResults] - The maximum number of resource configurations to return in |
+ /// the response, used for paging. For any response, the actual number of |
+ /// resources returned may be less than the specified maxResults. |
+ /// Value must be between "1" and "200". |
+ /// |
+ /// [pageToken] - The token returned by the previous request. |
+ /// |
+ /// Completes with a [AchievementConfigurationListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<AchievementConfigurationListResponse> list( |
+ core.String applicationId, |
+ {core.int maxResults, |
+ core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -203,37 +213,38 @@ class AchievementConfigurationsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '/achievements'; |
+ _url = 'applications/' + |
+ commons.Escaper.ecapeVariable('$applicationId') + |
+ '/achievements'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new AchievementConfigurationListResponse.fromJson(data)); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then( |
+ (data) => new AchievementConfigurationListResponse.fromJson(data)); |
} |
- /** |
- * Update the metadata of the achievement configuration with the given ID. |
- * This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [achievementId] - The ID of the achievement used by this method. |
- * |
- * Completes with a [AchievementConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<AchievementConfiguration> patch(AchievementConfiguration request, core.String achievementId) { |
+ /// Update the metadata of the achievement configuration with the given ID. |
+ /// This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [achievementId] - The ID of the achievement used by this method. |
+ /// |
+ /// Completes with a [AchievementConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<AchievementConfiguration> patch( |
+ AchievementConfiguration request, core.String achievementId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -250,34 +261,33 @@ class AchievementConfigurationsResourceApi { |
_url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId'); |
- var _response = _requester.request(_url, |
- "PATCH", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new AchievementConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "PATCH", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new AchievementConfiguration.fromJson(data)); |
} |
- /** |
- * Update the metadata of the achievement configuration with the given ID. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [achievementId] - The ID of the achievement used by this method. |
- * |
- * Completes with a [AchievementConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<AchievementConfiguration> update(AchievementConfiguration request, core.String achievementId) { |
+ /// Update the metadata of the achievement configuration with the given ID. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [achievementId] - The ID of the achievement used by this method. |
+ /// |
+ /// Completes with a [AchievementConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<AchievementConfiguration> update( |
+ AchievementConfiguration request, core.String achievementId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -294,51 +304,51 @@ class AchievementConfigurationsResourceApi { |
_url = 'achievements/' + commons.Escaper.ecapeVariable('$achievementId'); |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new AchievementConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new AchievementConfiguration.fromJson(data)); |
} |
- |
} |
- |
class ImageConfigurationsResourceApi { |
final commons.ApiRequester _requester; |
- ImageConfigurationsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Uploads an image for a resource with the given ID and image type. |
- * |
- * Request parameters: |
- * |
- * [resourceId] - The ID of the resource used by this method. |
- * |
- * [imageType] - Selects which image in a resource for this method. |
- * Possible string values are: |
- * - "ACHIEVEMENT_ICON" : The icon image for an achievement resource. |
- * - "LEADERBOARD_ICON" : The icon image for a leaderboard resource. |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [ImageConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ImageConfiguration> upload(core.String resourceId, core.String imageType, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ ImageConfigurationsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Uploads an image for a resource with the given ID and image type. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [resourceId] - The ID of the resource used by this method. |
+ /// |
+ /// [imageType] - Selects which image in a resource for this method. |
+ /// Possible string values are: |
+ /// - "ACHIEVEMENT_ICON" : The icon image for an achievement resource. |
+ /// - "LEADERBOARD_ICON" : The icon image for a leaderboard resource. |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [ImageConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ImageConfiguration> upload( |
+ core.String resourceId, core.String imageType, |
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -353,50 +363,53 @@ class ImageConfigurationsResourceApi { |
throw new core.ArgumentError("Parameter imageType is required."); |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
- _url = 'images/' + commons.Escaper.ecapeVariable('$resourceId') + '/imageType/' + commons.Escaper.ecapeVariable('$imageType'); |
+ _url = 'images/' + |
+ commons.Escaper.ecapeVariable('$resourceId') + |
+ '/imageType/' + |
+ commons.Escaper.ecapeVariable('$imageType'); |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/games/v1configuration/images/' + commons.Escaper.ecapeVariable('$resourceId') + '/imageType/' + commons.Escaper.ecapeVariable('$imageType'); |
+ _url = '/resumable/upload/games/v1configuration/images/' + |
+ commons.Escaper.ecapeVariable('$resourceId') + |
+ '/imageType/' + |
+ commons.Escaper.ecapeVariable('$imageType'); |
} else { |
- _url = '/upload/games/v1configuration/images/' + commons.Escaper.ecapeVariable('$resourceId') + '/imageType/' + commons.Escaper.ecapeVariable('$imageType'); |
- } |
- |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = '/upload/games/v1configuration/images/' + |
+ commons.Escaper.ecapeVariable('$resourceId') + |
+ '/imageType/' + |
+ commons.Escaper.ecapeVariable('$imageType'); |
+ } |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ImageConfiguration.fromJson(data)); |
} |
- |
} |
- |
class LeaderboardConfigurationsResourceApi { |
final commons.ApiRequester _requester; |
- LeaderboardConfigurationsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Delete the leaderboard configuration with the given ID. |
- * |
- * Request parameters: |
- * |
- * [leaderboardId] - The ID of the leaderboard. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ LeaderboardConfigurationsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Delete the leaderboard configuration with the given ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [leaderboardId] - The ID of the leaderboard. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String leaderboardId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -413,31 +426,29 @@ class LeaderboardConfigurationsResourceApi { |
_url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Retrieves the metadata of the leaderboard configuration with the given ID. |
- * |
- * Request parameters: |
- * |
- * [leaderboardId] - The ID of the leaderboard. |
- * |
- * Completes with a [LeaderboardConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Retrieves the metadata of the leaderboard configuration with the given |
+ /// ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [leaderboardId] - The ID of the leaderboard. |
+ /// |
+ /// Completes with a [LeaderboardConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<LeaderboardConfiguration> get(core.String leaderboardId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -452,35 +463,34 @@ class LeaderboardConfigurationsResourceApi { |
_url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new LeaderboardConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new LeaderboardConfiguration.fromJson(data)); |
} |
- /** |
- * Insert a new leaderboard configuration in this application. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [applicationId] - The application ID from the Google Play developer |
- * console. |
- * |
- * Completes with a [LeaderboardConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<LeaderboardConfiguration> insert(LeaderboardConfiguration request, core.String applicationId) { |
+ /// Insert a new leaderboard configuration in this application. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [applicationId] - The application ID from the Google Play developer |
+ /// console. |
+ /// |
+ /// Completes with a [LeaderboardConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<LeaderboardConfiguration> insert( |
+ LeaderboardConfiguration request, core.String applicationId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -495,42 +505,45 @@ class LeaderboardConfigurationsResourceApi { |
throw new core.ArgumentError("Parameter applicationId is required."); |
} |
- _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '/leaderboards'; |
+ _url = 'applications/' + |
+ commons.Escaper.ecapeVariable('$applicationId') + |
+ '/leaderboards'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new LeaderboardConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new LeaderboardConfiguration.fromJson(data)); |
} |
- /** |
- * Returns a list of the leaderboard configurations in this application. |
- * |
- * Request parameters: |
- * |
- * [applicationId] - The application ID from the Google Play developer |
- * console. |
- * |
- * [maxResults] - The maximum number of resource configurations to return in |
- * the response, used for paging. For any response, the actual number of |
- * resources returned may be less than the specified maxResults. |
- * Value must be between "1" and "200". |
- * |
- * [pageToken] - The token returned by the previous request. |
- * |
- * Completes with a [LeaderboardConfigurationListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<LeaderboardConfigurationListResponse> list(core.String applicationId, {core.int maxResults, core.String pageToken}) { |
+ /// Returns a list of the leaderboard configurations in this application. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [applicationId] - The application ID from the Google Play developer |
+ /// console. |
+ /// |
+ /// [maxResults] - The maximum number of resource configurations to return in |
+ /// the response, used for paging. For any response, the actual number of |
+ /// resources returned may be less than the specified maxResults. |
+ /// Value must be between "1" and "200". |
+ /// |
+ /// [pageToken] - The token returned by the previous request. |
+ /// |
+ /// Completes with a [LeaderboardConfigurationListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<LeaderboardConfigurationListResponse> list( |
+ core.String applicationId, |
+ {core.int maxResults, |
+ core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -548,37 +561,38 @@ class LeaderboardConfigurationsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = 'applications/' + commons.Escaper.ecapeVariable('$applicationId') + '/leaderboards'; |
+ _url = 'applications/' + |
+ commons.Escaper.ecapeVariable('$applicationId') + |
+ '/leaderboards'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new LeaderboardConfigurationListResponse.fromJson(data)); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then( |
+ (data) => new LeaderboardConfigurationListResponse.fromJson(data)); |
} |
- /** |
- * Update the metadata of the leaderboard configuration with the given ID. |
- * This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [leaderboardId] - The ID of the leaderboard. |
- * |
- * Completes with a [LeaderboardConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<LeaderboardConfiguration> patch(LeaderboardConfiguration request, core.String leaderboardId) { |
+ /// Update the metadata of the leaderboard configuration with the given ID. |
+ /// This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [leaderboardId] - The ID of the leaderboard. |
+ /// |
+ /// Completes with a [LeaderboardConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<LeaderboardConfiguration> patch( |
+ LeaderboardConfiguration request, core.String leaderboardId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -595,34 +609,33 @@ class LeaderboardConfigurationsResourceApi { |
_url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId'); |
- var _response = _requester.request(_url, |
- "PATCH", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new LeaderboardConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "PATCH", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new LeaderboardConfiguration.fromJson(data)); |
} |
- /** |
- * Update the metadata of the leaderboard configuration with the given ID. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [leaderboardId] - The ID of the leaderboard. |
- * |
- * Completes with a [LeaderboardConfiguration]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<LeaderboardConfiguration> update(LeaderboardConfiguration request, core.String leaderboardId) { |
+ /// Update the metadata of the leaderboard configuration with the given ID. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [leaderboardId] - The ID of the leaderboard. |
+ /// |
+ /// Completes with a [LeaderboardConfiguration]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<LeaderboardConfiguration> update( |
+ LeaderboardConfiguration request, core.String leaderboardId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -639,51 +652,49 @@ class LeaderboardConfigurationsResourceApi { |
_url = 'leaderboards/' + commons.Escaper.ecapeVariable('$leaderboardId'); |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new LeaderboardConfiguration.fromJson(data)); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new LeaderboardConfiguration.fromJson(data)); |
} |
- |
} |
- |
- |
-/** This is a JSON template for an achievement configuration resource. */ |
+/// This is a JSON template for an achievement configuration resource. |
class AchievementConfiguration { |
- /** |
- * The type of the achievement. |
- * Possible values are: |
- * - "STANDARD" - Achievement is either locked or unlocked. |
- * - "INCREMENTAL" - Achievement is incremental. |
- */ |
+ /// The type of the achievement. |
+ /// Possible values are: |
+ /// - "STANDARD" - Achievement is either locked or unlocked. |
+ /// - "INCREMENTAL" - Achievement is incremental. |
core.String achievementType; |
- /** The draft data of the achievement. */ |
+ |
+ /// The draft data of the achievement. |
AchievementConfigurationDetail draft; |
- /** The ID of the achievement. */ |
+ |
+ /// The ID of the achievement. |
core.String id; |
- /** |
- * The initial state of the achievement. |
- * Possible values are: |
- * - "HIDDEN" - Achievement is hidden. |
- * - "REVEALED" - Achievement is revealed. |
- * - "UNLOCKED" - Achievement is unlocked. |
- */ |
+ |
+ /// The initial state of the achievement. |
+ /// Possible values are: |
+ /// - "HIDDEN" - Achievement is hidden. |
+ /// - "REVEALED" - Achievement is revealed. |
+ /// - "UNLOCKED" - Achievement is unlocked. |
core.String initialState; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#achievementConfiguration. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#achievementConfiguration. |
core.String kind; |
- /** The read-only published data of the achievement. */ |
+ |
+ /// The read-only published data of the achievement. |
AchievementConfigurationDetail published; |
- /** Steps to unlock. Only applicable to incremental achievements. */ |
+ |
+ /// Steps to unlock. Only applicable to incremental achievements. |
core.int stepsToUnlock; |
- /** The token for this resource. */ |
+ |
+ /// The token for this resource. |
core.String token; |
AchievementConfiguration(); |
@@ -705,7 +716,8 @@ class AchievementConfiguration { |
kind = _json["kind"]; |
} |
if (_json.containsKey("published")) { |
- published = new AchievementConfigurationDetail.fromJson(_json["published"]); |
+ published = |
+ new AchievementConfigurationDetail.fromJson(_json["published"]); |
} |
if (_json.containsKey("stepsToUnlock")) { |
stepsToUnlock = _json["stepsToUnlock"]; |
@@ -716,7 +728,8 @@ class AchievementConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (achievementType != null) { |
_json["achievementType"] = achievementType; |
} |
@@ -745,22 +758,25 @@ class AchievementConfiguration { |
} |
} |
-/** This is a JSON template for an achievement configuration detail. */ |
+/// This is a JSON template for an achievement configuration detail. |
class AchievementConfigurationDetail { |
- /** Localized strings for the achievement description. */ |
+ /// Localized strings for the achievement description. |
LocalizedStringBundle description; |
- /** The icon url of this achievement. Writes to this field are ignored. */ |
+ |
+ /// The icon url of this achievement. Writes to this field are ignored. |
core.String iconUrl; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#achievementConfigurationDetail. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#achievementConfigurationDetail. |
core.String kind; |
- /** Localized strings for the achievement name. */ |
+ |
+ /// Localized strings for the achievement name. |
LocalizedStringBundle name; |
- /** Point value for the achievement. */ |
+ |
+ /// Point value for the achievement. |
core.int pointValue; |
- /** The sort rank of this achievement. Writes to this field are ignored. */ |
+ |
+ /// The sort rank of this achievement. Writes to this field are ignored. |
core.int sortRank; |
AchievementConfigurationDetail(); |
@@ -787,7 +803,8 @@ class AchievementConfigurationDetail { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (description != null) { |
_json["description"] = (description).toJson(); |
} |
@@ -810,23 +827,25 @@ class AchievementConfigurationDetail { |
} |
} |
-/** This is a JSON template for a ListConfigurations response. */ |
+/// This is a JSON template for a ListConfigurations response. |
class AchievementConfigurationListResponse { |
- /** The achievement configurations. */ |
+ /// The achievement configurations. |
core.List<AchievementConfiguration> items; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string games#achievementConfigurationListResponse. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string games#achievementConfigurationListResponse. |
core.String kind; |
- /** The pagination token for the next page of results. */ |
+ |
+ /// The pagination token for the next page of results. |
core.String nextPageToken; |
AchievementConfigurationListResponse(); |
AchievementConfigurationListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new AchievementConfiguration.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new AchievementConfiguration.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -837,7 +856,8 @@ class AchievementConfigurationListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -851,39 +871,32 @@ class AchievementConfigurationListResponse { |
} |
} |
-/** This is a JSON template for a number affix resource. */ |
+/// This is a JSON template for a number affix resource. |
class GamesNumberAffixConfiguration { |
- /** |
- * When the language requires special treatment of "small" numbers (as with 2, |
- * 3, and 4 in Czech; or numbers ending 2, 3, or 4 but not 12, 13, or 14 in |
- * Polish). |
- */ |
+ /// When the language requires special treatment of "small" numbers (as with |
+ /// 2, 3, and 4 in Czech; or numbers ending 2, 3, or 4 but not 12, 13, or 14 |
+ /// in Polish). |
LocalizedStringBundle few; |
- /** |
- * When the language requires special treatment of "large" numbers (as with |
- * numbers ending 11-99 in Maltese). |
- */ |
+ |
+ /// When the language requires special treatment of "large" numbers (as with |
+ /// numbers ending 11-99 in Maltese). |
LocalizedStringBundle many; |
- /** |
- * When the language requires special treatment of numbers like one (as with |
- * the number 1 in English and most other languages; in Russian, any number |
- * ending in 1 but not ending in 11 is in this class). |
- */ |
+ |
+ /// When the language requires special treatment of numbers like one (as with |
+ /// the number 1 in English and most other languages; in Russian, any number |
+ /// ending in 1 but not ending in 11 is in this class). |
LocalizedStringBundle one; |
- /** |
- * When the language does not require special treatment of the given quantity |
- * (as with all numbers in Chinese, or 42 in English). |
- */ |
+ |
+ /// When the language does not require special treatment of the given |
+ /// quantity (as with all numbers in Chinese, or 42 in English). |
LocalizedStringBundle other; |
- /** |
- * When the language requires special treatment of numbers like two (as with 2 |
- * in Welsh, or 102 in Slovenian). |
- */ |
+ |
+ /// When the language requires special treatment of numbers like two (as with |
+ /// 2 in Welsh, or 102 in Slovenian). |
LocalizedStringBundle two; |
- /** |
- * When the language requires special treatment of the number 0 (as in |
- * Arabic). |
- */ |
+ |
+ /// When the language requires special treatment of the number 0 (as in |
+ /// Arabic). |
LocalizedStringBundle zero; |
GamesNumberAffixConfiguration(); |
@@ -910,7 +923,8 @@ class GamesNumberAffixConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (few != null) { |
_json["few"] = (few).toJson(); |
} |
@@ -933,28 +947,26 @@ class GamesNumberAffixConfiguration { |
} |
} |
-/** This is a JSON template for a number format resource. */ |
+/// This is a JSON template for a number format resource. |
class GamesNumberFormatConfiguration { |
- /** The curreny code string. Only used for CURRENCY format type. */ |
+ /// The curreny code string. Only used for CURRENCY format type. |
core.String currencyCode; |
- /** |
- * The number of decimal places for number. Only used for NUMERIC format type. |
- */ |
+ |
+ /// The number of decimal places for number. Only used for NUMERIC format |
+ /// type. |
core.int numDecimalPlaces; |
- /** |
- * The formatting for the number. |
- * Possible values are: |
- * - "NUMERIC" - Numbers are formatted to have no digits or a fixed number of |
- * digits after the decimal point according to locale. An optional custom unit |
- * can be added. |
- * - "TIME_DURATION" - Numbers are formatted to hours, minutes and seconds. |
- * - "CURRENCY" - Numbers are formatted to currency according to locale. |
- */ |
+ |
+ /// The formatting for the number. |
+ /// Possible values are: |
+ /// - "NUMERIC" - Numbers are formatted to have no digits or a fixed number |
+ /// of digits after the decimal point according to locale. An optional custom |
+ /// unit can be added. |
+ /// - "TIME_DURATION" - Numbers are formatted to hours, minutes and seconds. |
+ /// - "CURRENCY" - Numbers are formatted to currency according to locale. |
core.String numberFormatType; |
- /** |
- * An optional suffix for the NUMERIC format type. These strings follow the |
- * same plural rules as all Android string resources. |
- */ |
+ |
+ /// An optional suffix for the NUMERIC format type. These strings follow the |
+ /// same plural rules as all Android string resources. |
GamesNumberAffixConfiguration suffix; |
GamesNumberFormatConfiguration(); |
@@ -975,7 +987,8 @@ class GamesNumberFormatConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (currencyCode != null) { |
_json["currencyCode"] = currencyCode; |
} |
@@ -992,18 +1005,19 @@ class GamesNumberFormatConfiguration { |
} |
} |
-/** This is a JSON template for an image configuration resource. */ |
+/// This is a JSON template for an image configuration resource. |
class ImageConfiguration { |
- /** The image type for the image. */ |
+ /// The image type for the image. |
core.String imageType; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#imageConfiguration. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#imageConfiguration. |
core.String kind; |
- /** The resource ID of resource which the image belongs to. */ |
+ |
+ /// The resource ID of resource which the image belongs to. |
core.String resourceId; |
- /** The url for this image. */ |
+ |
+ /// The url for this image. |
core.String url; |
ImageConfiguration(); |
@@ -1024,7 +1038,8 @@ class ImageConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (imageType != null) { |
_json["imageType"] = imageType; |
} |
@@ -1041,31 +1056,34 @@ class ImageConfiguration { |
} |
} |
-/** This is a JSON template for an leaderboard configuration resource. */ |
+/// This is a JSON template for an leaderboard configuration resource. |
class LeaderboardConfiguration { |
- /** The draft data of the leaderboard. */ |
+ /// The draft data of the leaderboard. |
LeaderboardConfigurationDetail draft; |
- /** The ID of the leaderboard. */ |
+ |
+ /// The ID of the leaderboard. |
core.String id; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#leaderboardConfiguration. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#leaderboardConfiguration. |
core.String kind; |
- /** The read-only published data of the leaderboard. */ |
+ |
+ /// The read-only published data of the leaderboard. |
LeaderboardConfigurationDetail published; |
- /** Maximum score that can be posted to this leaderboard. */ |
+ |
+ /// Maximum score that can be posted to this leaderboard. |
core.String scoreMax; |
- /** Minimum score that can be posted to this leaderboard. */ |
+ |
+ /// Minimum score that can be posted to this leaderboard. |
core.String scoreMin; |
- /** |
- * The type of the leaderboard. |
- * Possible values are: |
- * - "LARGER_IS_BETTER" - Larger scores posted are ranked higher. |
- * - "SMALLER_IS_BETTER" - Smaller scores posted are ranked higher. |
- */ |
+ |
+ /// The type of the leaderboard. |
+ /// Possible values are: |
+ /// - "LARGER_IS_BETTER" - Larger scores posted are ranked higher. |
+ /// - "SMALLER_IS_BETTER" - Smaller scores posted are ranked higher. |
core.String scoreOrder; |
- /** The token for this resource. */ |
+ |
+ /// The token for this resource. |
core.String token; |
LeaderboardConfiguration(); |
@@ -1081,7 +1099,8 @@ class LeaderboardConfiguration { |
kind = _json["kind"]; |
} |
if (_json.containsKey("published")) { |
- published = new LeaderboardConfigurationDetail.fromJson(_json["published"]); |
+ published = |
+ new LeaderboardConfigurationDetail.fromJson(_json["published"]); |
} |
if (_json.containsKey("scoreMax")) { |
scoreMax = _json["scoreMax"]; |
@@ -1098,7 +1117,8 @@ class LeaderboardConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (draft != null) { |
_json["draft"] = (draft).toJson(); |
} |
@@ -1127,20 +1147,22 @@ class LeaderboardConfiguration { |
} |
} |
-/** This is a JSON template for a leaderboard configuration detail. */ |
+/// This is a JSON template for a leaderboard configuration detail. |
class LeaderboardConfigurationDetail { |
- /** The icon url of this leaderboard. Writes to this field are ignored. */ |
+ /// The icon url of this leaderboard. Writes to this field are ignored. |
core.String iconUrl; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#leaderboardConfigurationDetail. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#leaderboardConfigurationDetail. |
core.String kind; |
- /** Localized strings for the leaderboard name. */ |
+ |
+ /// Localized strings for the leaderboard name. |
LocalizedStringBundle name; |
- /** The score formatting for the leaderboard. */ |
+ |
+ /// The score formatting for the leaderboard. |
GamesNumberFormatConfiguration scoreFormat; |
- /** The sort rank of this leaderboard. Writes to this field are ignored. */ |
+ |
+ /// The sort rank of this leaderboard. Writes to this field are ignored. |
core.int sortRank; |
LeaderboardConfigurationDetail(); |
@@ -1156,7 +1178,8 @@ class LeaderboardConfigurationDetail { |
name = new LocalizedStringBundle.fromJson(_json["name"]); |
} |
if (_json.containsKey("scoreFormat")) { |
- scoreFormat = new GamesNumberFormatConfiguration.fromJson(_json["scoreFormat"]); |
+ scoreFormat = |
+ new GamesNumberFormatConfiguration.fromJson(_json["scoreFormat"]); |
} |
if (_json.containsKey("sortRank")) { |
sortRank = _json["sortRank"]; |
@@ -1164,7 +1187,8 @@ class LeaderboardConfigurationDetail { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (iconUrl != null) { |
_json["iconUrl"] = iconUrl; |
} |
@@ -1184,23 +1208,25 @@ class LeaderboardConfigurationDetail { |
} |
} |
-/** This is a JSON template for a ListConfigurations response. */ |
+/// This is a JSON template for a ListConfigurations response. |
class LeaderboardConfigurationListResponse { |
- /** The leaderboard configurations. */ |
+ /// The leaderboard configurations. |
core.List<LeaderboardConfiguration> items; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string games#leaderboardConfigurationListResponse. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string games#leaderboardConfigurationListResponse. |
core.String kind; |
- /** The pagination token for the next page of results. */ |
+ |
+ /// The pagination token for the next page of results. |
core.String nextPageToken; |
LeaderboardConfigurationListResponse(); |
LeaderboardConfigurationListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new LeaderboardConfiguration.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new LeaderboardConfiguration.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -1211,7 +1237,8 @@ class LeaderboardConfigurationListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -1225,16 +1252,16 @@ class LeaderboardConfigurationListResponse { |
} |
} |
-/** This is a JSON template for a localized string resource. */ |
+/// This is a JSON template for a localized string resource. |
class LocalizedString { |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#localizedString. |
- */ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#localizedString. |
core.String kind; |
- /** The locale string. */ |
+ |
+ /// The locale string. |
core.String locale; |
- /** The string value. */ |
+ |
+ /// The string value. |
core.String value; |
LocalizedString(); |
@@ -1252,7 +1279,8 @@ class LocalizedString { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -1266,14 +1294,13 @@ class LocalizedString { |
} |
} |
-/** This is a JSON template for a localized string bundle resource. */ |
+/// This is a JSON template for a localized string bundle resource. |
class LocalizedStringBundle { |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string gamesConfiguration#localizedStringBundle. |
- */ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string gamesConfiguration#localizedStringBundle. |
core.String kind; |
- /** The locale strings. */ |
+ |
+ /// The locale strings. |
core.List<LocalizedString> translations; |
LocalizedStringBundle(); |
@@ -1283,17 +1310,21 @@ class LocalizedStringBundle { |
kind = _json["kind"]; |
} |
if (_json.containsKey("translations")) { |
- translations = _json["translations"].map((value) => new LocalizedString.fromJson(value)).toList(); |
+ translations = _json["translations"] |
+ .map((value) => new LocalizedString.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
if (translations != null) { |
- _json["translations"] = translations.map((value) => (value).toJson()).toList(); |
+ _json["translations"] = |
+ translations.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |