setReadMarker method

Future<DynamiteResponse<ChatSetReadMarkerResponseApplicationJson, ChatChatSetReadMarkerHeaders>> setReadMarker({
  1. required int lastReadMessage,
  2. required String token,
  3. ChatSetReadMarkerApiVersion? apiVersion,
  4. bool? oCSAPIRequest,
})

Set the read marker to a specific message.

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:

  • lastReadMessage ID if the last read message.
  • apiVersion Defaults to v1.
  • token
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Read marker set successfully

See:

Implementation

Future<DynamiteResponse<ChatSetReadMarkerResponseApplicationJson, ChatChatSetReadMarkerHeaders>> setReadMarker({
  required int lastReadMessage,
  required String token,
  ChatSetReadMarkerApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final rawResponse = setReadMarkerRaw(
    lastReadMessage: lastReadMessage,
    token: token,
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
  );

  return rawResponse.future;
}