GetGroupConversationItems method

Future<ConversationResponse?> GetGroupConversationItems(
  1. ConversationId conversationId,
  2. PropertySet propertySet,
  3. String? syncState,
  4. Iterable<FolderId>? foldersToIgnore,
  5. ConversationSortOrder? sortOrder,
  6. String anchorMailbox,
)
Gets the items for a conversation. The conversation id. The set of properties to load. The optional sync state representing the point in time when to start the synchronization. The folders to ignore. Conversation item sort order. The smtp address of the mailbox hosting the conversations

Implementation

Future<ConversationResponse?> GetGroupConversationItems(
  ConversationId conversationId,
  PropertySet propertySet,
  String? syncState,
  Iterable<FolderId>? foldersToIgnore,
  ConversationSortOrder? sortOrder,
  String anchorMailbox,
) async {
  EwsUtilities.ValidateParam(anchorMailbox, "anchorMailbox");

  List<ConversationRequest> conversations = <ConversationRequest>[];
  conversations.add(
    ConversationRequest.withConversationIdAndSyncState(
      conversationId,
      syncState,
    ),
  );

  return (await InternalGetConversationItems(
    conversations,
    propertySet,
    foldersToIgnore,
    sortOrder,
    null,
    /* mailboxScope */
    null,
    /* maxItemsToReturn */
    anchorMailbox,
    /* anchorMailbox */
    ServiceErrorHandling.ThrowOnError,
  ))[0].Conversation;
}