list method

Future<GoogleFirebaseFcmDataV1beta1ListAndroidDeliveryDataResponse> list(
  1. String parent, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? $fields,
})

List aggregate delivery data for the given Android application.

Request parameters:

parent - Required. The application for which to list delivery data. Format: projects/{project_id}/androidApps/{app_id} Value must have pattern ^projects/\[^/\]+/androidApps/\[^/\]+$.

pageSize - The maximum number of entries to return. The service may return fewer than this value. If unspecified, at most 1,000 entries will be returned. The maximum value is 10,000; values above 10,000 will be capped to 10,000. This default may change over time.

pageToken - A page token, received from a previous ListAndroidDeliveryDataRequest call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAndroidDeliveryDataRequest must match the call that provided the page token.

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

Completes with a GoogleFirebaseFcmDataV1beta1ListAndroidDeliveryDataResponse.

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<GoogleFirebaseFcmDataV1beta1ListAndroidDeliveryDataResponse>
    list(
  core.String parent, {
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };

  final _url = 'v1beta1/' + core.Uri.encodeFull('$parent') + '/deliveryData';

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return GoogleFirebaseFcmDataV1beta1ListAndroidDeliveryDataResponse.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}