TryReadElementFromXml method
Tries to read element from XML.
The reader.
Implementation
@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
switch (reader.LocalName) {
case XmlElementNames.FlagStatus:
this.flagStatus = await reader.ReadElementValue<ItemFlagStatus>();
return true;
case XmlElementNames.StartDate:
this.startDate = await reader.ReadElementValueAsDateTime();
return true;
case XmlElementNames.DueDate:
this.dueDate = await reader.ReadElementValueAsDateTime();
return true;
case XmlElementNames.CompleteDate:
this.completeDate = await reader.ReadElementValueAsDateTime();
return true;
default:
return false;
}
}