markFolderAsRead method

Future<DynamiteResponse<void, void>> markFolderAsRead({
  1. required int folderId,
  2. required int newestItemId,
})

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:

  • newestItemId The newest read item.

Status codes:

  • 200

See:

Implementation

Future<_i1.DynamiteResponse<void, void>> markFolderAsRead({
  required int folderId,
  required int newestItemId,
}) async {
  final _request = $markFolderAsRead_Request(
    folderId: folderId,
    newestItemId: newestItemId,
  );
  final _response = await httpClient.send(_request);

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