readMessage abstract method
- @PATCH('/messages/{id}')
- @Headers({'StatusAsResponse' : true, 'Content-Type' : 'application/merge-patch+json'})
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,
);