TryReadElementFromXml method
Tries to read element from XML.
The reader.
Implementation
@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
switch (reader.LocalName) {
case XmlElementNames.Title:
this._title = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.FirstName:
this._givenName = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.MiddleName:
this._middleName = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.LastName:
this._surname = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.Suffix:
this._suffix = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.Initials:
this._initials = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.FullName:
this._fullName = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.NickName:
this._nickname = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.YomiFirstName:
this._yomiGivenName = await reader.ReadElementValue<String>();
return true;
case XmlElementNames.YomiLastName:
this._yomiSurname = await reader.ReadElementValue<String>();
return true;
default:
return false;
}
}