ParseResponse method

  1. @override
Future<Object> ParseResponse(
  1. EwsServiceXmlReader reader
)
override
Parses the response. The reader.

Implementation

@override
Future<Object> ParseResponse(EwsServiceXmlReader reader) async {
  await reader.ReadStartElementWithNamespace(
      XmlNamespace.Messages, XmlElementNames.ResponseMessages);

  GetStreamingEventsResponse response = new GetStreamingEventsResponse(this);
  await response.LoadFromXml(
      reader, XmlElementNames.GetStreamingEventsResponseMessage);

  await reader.ReadEndElementIfNecessary(
      XmlNamespace.Messages, XmlElementNames.ResponseMessages);

  return response;
}