ReadElementsFromXml method
Reads response elements from XML.
The reader.
Implementation
@override
Future<void> ReadElementsFromXml(EwsServiceXmlReader reader) async {
await super.ReadElementsFromXml(reader);
List<service_objects.Item> items =
await reader.ReadServiceObjectsCollectionFromXml<service_objects.Item>(
XmlElementNames.Items,
_GetObjectInstance,
false,
/* clearPropertyBag */
null,
/* requestedPropertySet */
false,
); /* summaryPropertiesOnly */
// We only receive the copied or moved items if the copy or move operation was within
// a single mailbox. No item is returned if the operation is cross-mailbox, from a
// mailbox to a public folder or from a public folder to a mailbox.
if (items.isNotEmpty) {
_item = items[0];
}
}