listArticles method

Future<DynamiteResponse<ListArticles, void>> listArticles({
  1. int? type,
  2. int? id,
  3. int? getRead,
  4. int? batchSize,
  5. int? offset,
  6. int? oldestFirst,
})

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • type Defaults to 3.
  • id Defaults to 0.
  • getRead Defaults to 1.
  • batchSize Defaults to -1.
  • offset Defaults to 0.
  • oldestFirst Defaults to 0.

Status codes:

  • 200

See:

Implementation

Future<_i1.DynamiteResponse<ListArticles, void>> listArticles({
  int? type,
  int? id,
  int? getRead,
  int? batchSize,
  int? offset,
  int? oldestFirst,
}) async {
  final _request = $listArticles_Request(
    type: type,
    id: id,
    getRead: getRead,
    batchSize: batchSize,
    offset: offset,
    oldestFirst: oldestFirst,
  );
  final _response = await httpClient.send(_request);

  final _serializer = $listArticles_Serializer();
  final _rawResponse = await _i1.ResponseConverter<ListArticles, void>(_serializer).convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}