LoadFromXml method

Future<void> LoadFromXml(
  1. EwsXmlReader reader,
  2. String endElementName
)
Loads response from XML. The reader. End element name.

Implementation

Future<void> LoadFromXml(EwsXmlReader reader, String endElementName) async {
  switch (reader.LocalName) {
    case XmlElementNames.ErrorCode:
      this.ErrorCode = await reader.ReadElementValue<AutodiscoverErrorCode>();
      break;
    case XmlElementNames.ErrorMessage:
      this.ErrorMessage = await reader.ReadElementValue<String>();
      break;
    default:
      break;
  }
}