check method

Future<RevisionCheckResponse> check(
  1. String clientRevision, {
  2. String? $fields,
})

Checks whether the games client is out of date.

Request parameters:

clientRevision - Required. The revision of the client SDK used by your application. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: * ANDROID - Client is running the Android SDK. * IOS - Client is running the iOS SDK. * WEB_APP - Client is running as a Web App.

$fields - Selector specifying which fields to include in a partial response.

Completes with a RevisionCheckResponse.

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.

Implementation

async.Future<RevisionCheckResponse> check(
  core.String clientRevision, {
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'clientRevision': [clientRevision],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'games/v1/revisions/check';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return RevisionCheckResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}