TryReadElementFromXml method
Tries to read element from XML.
The reader.
Implementation
@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
bool result = await super.TryReadElementFromXml(reader);
if (!result) {
if (reader.LocalName == XmlElementNames.AttachLongPathName) {
this._attachLongPathName = await reader.ReadElementValue<String>();
return true;
}
if (reader.LocalName == XmlElementNames.ProviderType) {
this._providerType = await reader.ReadElementValue<String>();
return true;
}
if (reader.LocalName == XmlElementNames.ProviderEndpointUrl) {
this._providerEndpointUrl = await reader.ReadElementValue<String>();
return true;
}
if (reader.LocalName == XmlElementNames.AttachmentThumbnailUrl) {
this._attachmentThumbnailUrl = await reader.ReadElementValue<String>();
return true;
}
if (reader.LocalName == XmlElementNames.AttachmentPreviewUrl) {
this._attachmentPreviewUrl = await reader.ReadElementValue<String>();
return true;
}
if (reader.LocalName == XmlElementNames.PermissionType) {
this._permissionType = await reader.ReadElementValue<int>();
return true;
}
if (reader.LocalName == XmlElementNames.AttachmentIsFolder) {
this._attachmentIsFolder = await reader.ReadElementValue<bool>();
return true;
}
}
return result;
}