TryReadElementFromXml method
Attempts to read the element at the reader's current position.
The reader used to read the element.
Implementation
@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
switch (reader.LocalName) {
case XmlElementNames.ID:
_storeId = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.Subject:
_subject = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.Location:
_location = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.IsMeeting:
_isMeeting = (await reader.ReadElementValue<bool>()) ?? false;
return true;
case XmlElementNames.IsRecurring:
_isRecurring = (await reader.ReadElementValue<bool>()) ?? false;
return true;
case XmlElementNames.IsException:
_isException = (await reader.ReadElementValue<bool>()) ?? false;
return true;
case XmlElementNames.IsReminderSet:
_isReminderSet = (await reader.ReadElementValue<bool>()) ?? false;
return true;
case XmlElementNames.IsPrivate:
_isPrivate = (await reader.ReadElementValue<bool>()) ?? false;
return true;
default:
return false;
}
}