SetReadStateForItemsInConversations method

Future<ServiceResponseCollection<ServiceResponse>> SetReadStateForItemsInConversations(
  1. Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  2. FolderId? contextFolderId,
  3. bool isRead
)
Sets the read state for items in conversation. Calling this method would result in call to EWS. The pairs of Id of conversation whose items should have their read state set and the date and time conversation was last synced (Items received after that date will not have their read state set). The Id of the folder that contains the conversation. if set to , conversation items are marked as read; otherwise they are marked as unread.

Implementation

Future<ServiceResponseCollection<ServiceResponse>>
SetReadStateForItemsInConversations(
  Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  FolderId? contextFolderId,
  bool isRead,
) {
  return ApplyConversationOneTimeAction(
    ConversationActionType.SetReadState,
    idLastSyncTimePairs,
    contextFolderId,
    null,
    null,
    isRead,
    null,
    null,
    null,
    null,
    ServiceErrorHandling.ReturnErrors,
  );
}