ReadElementsFromXml method
Reads response elements from XML.
The reader.
Implementation
@override
Future<void> ReadElementsFromXml(EwsServiceXmlReader reader) async {
await super.ReadElementsFromXml(reader);
await reader.Read();
if (reader.LocalName == XmlElementNames.Notifications) {
await this._results.LoadFromXml(reader);
} else if (reader.LocalName == XmlElementNames.ConnectionStatus) {
String? connectionStatus = await reader.ReadElementValueWithNamespace(
XmlNamespace.Messages, XmlElementNames.ConnectionStatus);
if (EnumToString.parse(ConnectionStatus.Closed) == connectionStatus) {
await this
._request
.DisconnectWithReason(HangingRequestDisconnectReason.Clean, null);
}
}
}