TryReadElementFromXml method

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

Implementation

@override
bool TryReadElementFromXml(EwsServiceXmlReader reader) {
  switch (reader.LocalName) {
    case XmlElementNames.IsUndecidedApprovalRequest:
      this.isUndecidedApprovalRequest = reader.ReadElementValue<bool>();
      return true;
    case XmlElementNames.ApprovalDecision:
      this.approvalDecision = reader.ReadElementValue<int>();
      return true;
    case XmlElementNames.ApprovalDecisionMaker:
      this.approvalDecisionMaker = reader.ReadElementValue<String>();
      return true;
    case XmlElementNames.ApprovalDecisionTime:
      this.approvalDecisionTime = reader.ReadElementValueAsDateTime();
      return true;
    default:
      return false;
  }
}