updateChannelReadMarker method
Sets the timestamp to the point when a user last read messages in a channel.
May throw BadRequestException. May throw ForbiddenException. May throw ConflictException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter channelArn
:
The ARN of the channel.
Implementation
Future<UpdateChannelReadMarkerResponse> updateChannelReadMarker({
required String channelArn,
}) async {
ArgumentError.checkNotNull(channelArn, 'channelArn');
_s.validateStringLength(
'channelArn',
channelArn,
5,
1600,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri: '/channels/${Uri.encodeComponent(channelArn)}/readMarker',
exceptionFnMap: _exceptionFns,
);
return UpdateChannelReadMarkerResponse.fromJson(response);
}