SetReadStateForItemsInConversationsWithSuppressReadReceipts method

Future<ServiceResponseCollection<ServiceResponse>> SetReadStateForItemsInConversationsWithSuppressReadReceipts(
  1. Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  2. FolderId? contextFolderId,
  3. bool isRead,
  4. bool suppressReadReceipts,
)
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. if set to read receipts are suppressed.

Implementation

Future<ServiceResponseCollection<ServiceResponse>>
SetReadStateForItemsInConversationsWithSuppressReadReceipts(
  Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  FolderId? contextFolderId,
  bool isRead,
  bool suppressReadReceipts,
) {
  EwsUtilities.ValidateMethodVersion(
    this,
    ExchangeVersion.Exchange2013,
    "SetReadStateForItemsInConversations",
  );

  return ApplyConversationOneTimeAction(
    ConversationActionType.SetReadState,
    idLastSyncTimePairs,
    contextFolderId,
    null,
    null,
    isRead,
    null,
    null,
    null,
    suppressReadReceipts,
    ServiceErrorHandling.ReturnErrors,
  );
}