readMessage abstract method

  1. @PATCH('/messages/{id}')
  2. @Headers({'StatusAsResponse' : true, 'Content-Type' : 'application/merge-patch+json'})
Future<bool> readMessage(
  1. @Path() String id,
  2. @Field() bool seen,
  3. @Header('Authorization') String token
)

Marks a message as read

Implementation

@PATCH('/messages/{id}')
@Headers({
  'StatusAsResponse': true,
  'Content-Type': 'application/merge-patch+json'
})
Future<bool> readMessage(
  @Path() String id,
  @Field() bool seen,
  @Header('Authorization') String token,
);