TryReadElementFromXml method
Tries to read element from XML.
The reader.
Implementation
@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
switch (reader.LocalName) {
case XmlElementNames.BaseOffset:
this._baseOffset = EwsUtilities.XSDurationToTimeSpan(
(await reader.ReadElementValue<String>())!);
return true;
case XmlElementNames.Standard:
this._standard = new TimeChange();
await this._standard!.LoadFromXml(reader, reader.LocalName);
return true;
case XmlElementNames.Daylight:
this._daylight = new TimeChange();
await this._daylight!.LoadFromXml(reader, reader.LocalName);
return true;
default:
return false;
}
}