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.BaseFolderIds:
      this.RootFolderIds.InternalClear();
      await this.RootFolderIds.LoadFromXml(reader, reader.LocalName);
      return true;
    case XmlElementNames.Restriction:
      await reader.Read();
      this.searchFilter = search.SearchFilter.LoadFromXmlWithReader(reader);
      return true;
    default:
      return false;
  }
}