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.LobbyBypass:
      this.lobbyBypass =
          await reader.ReadElementValue<enumerations.LobbyBypass>();
      return true;
    case XmlElementNames.AccessLevel:
      this.accessLevel =
          await reader.ReadElementValue<OnlineMeetingAccessLevel>();
      return true;
    case XmlElementNames.Presenters:
      this.presenters =
          await reader.ReadElementValue<enumerations.Presenters>();
      return true;
    default:
      return false;
  }
}