InternalUpdateItems method

Future<ServiceResponseCollection<UpdateItemResponse>> InternalUpdateItems(
  1. Iterable<Item> items,
  2. FolderId? savedItemsDestinationFolderId,
  3. ConflictResolutionMode conflictResolution,
  4. MessageDisposition messageDisposition,
  5. SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode,
  6. ServiceErrorHandling errorHandling,
  7. bool suppressReadReceipt,
)
Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments. The items to update. The folder in which to save sent messages, meeting invitations or cancellations. If null, the messages, meeting invitation or cancellations are saved in the Sent Items folder. The conflict resolution mode. Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance. Indicates if and how invitations and/or cancellations should be sent for items of type Appointment. Required if items contains at least one Appointment instance. What type of error handling should be performed. Whether to suppress read receipts

Implementation

Future<ServiceResponseCollection<UpdateItemResponse>> InternalUpdateItems(
    Iterable<Item> items,
    FolderId? savedItemsDestinationFolderId,
    ConflictResolutionMode conflictResolution,
    MessageDisposition messageDisposition,
    SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode,
    ServiceErrorHandling errorHandling,
    bool suppressReadReceipt) {
  UpdateItemRequest request = new UpdateItemRequest(this, errorHandling);

  request.Items.addAll(items);
  request.SavedItemsDestinationFolder = savedItemsDestinationFolderId;
  request.MessageDisposition = messageDisposition;
  request.ConflictResolutionMode = conflictResolution;
  request.SendInvitationsOrCancellationsMode =
      sendInvitationsOrCancellationsMode;
  request.SuppressReadReceipts = suppressReadReceipt;

  return request.Execute();
}