ReadAttributesFromXml method
Reads the attributes from XML.
The reader.
Implementation
@override
void ReadAttributesFromXml(EwsServiceXmlReader reader) {
_name = reader.ReadAttributeValue(XmlAttributeNames.Name);
_id = reader.ReadAttributeValue(XmlAttributeNames.Id);
// EWS can return a TimeZone definition with no Id. Generate a new Id in this case.
if (StringUtils.IsNullOrEmpty(_id)) {
String? nameValue = StringUtils.IsNullOrEmpty(Name) ? "" : Name;
Id = _NoIdPrefix + Abs(nameValue.hashCode).toString();
}
}