SyncFolderItemsWithNumberOfDays method

Future<ChangeCollection<ItemChange>> SyncFolderItemsWithNumberOfDays(
  1. FolderId? syncFolderId,
  2. PropertySet propertySet,
  3. Iterable<ItemId>? ignoredItemIds,
  4. int maxChangesReturned,
  5. int numberOfDays,
  6. SyncFolderItemsScope syncScope,
  7. String? syncState,
)
Synchronizes the items of a specific folder. Calling this method results in a call to EWS. The Id of the folder containing the items to synchronize with. The set of properties to retrieve for synchronized items. The optional list of item Ids that should be ignored. The maximum number of changes that should be returned. Limit the changes returned to this many days ago; 0 means no limit. The sync scope identifying items to include in the ChangeCollection. The optional sync state representing the point in time when to start the synchronization.

Implementation

Future<ChangeCollection<ItemChange>> SyncFolderItemsWithNumberOfDays(
    FolderId? syncFolderId,
    PropertySet propertySet,
    Iterable<ItemId>? ignoredItemIds,
    int maxChangesReturned,
    int numberOfDays,
    SyncFolderItemsScope syncScope,
    String? syncState) async {
  final request = this.BuildSyncFolderItemsRequest(syncFolderId, propertySet,
      ignoredItemIds, maxChangesReturned, numberOfDays, syncScope, syncState);
  final ServiceResponseCollection<SyncFolderItemsResponse> response =
      await request.Execute();
  return response[0].Changes;
}