TryReadElementFromXml method

  1. @override
Future<bool> TryReadElementFromXml(
  1. EwsServiceXmlReader reader
)
override
Tries to read element from XML. The reader.

Implementation

@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
  switch (reader.LocalName) {
    case XmlElementNames.Mailbox:
      await this.LoadFromXml(reader, reader.LocalName);
      return true;
    case XmlElementNames.ResponseType:
      this._responseType =
          await reader.ReadElementValue<MeetingResponseType>();
      return true;
    case XmlElementNames.LastResponseTime:
      this._lastResponseTime = await reader.ReadElementValueAsDateTime();
      return true;
    default:
      return super.TryReadElementFromXml(reader);
  }
}