LoadResponseCollectionFromXml method
Loads the response collection from XML.
The reader.
Implementation
/* private */
Future<void> LoadResponseCollectionFromXml(EwsXmlReader reader) async {
if (!reader.IsEmptyElement) {
do {
await reader.Read();
if ((reader.NodeType == XmlNodeType.Element) &&
(reader.LocalName == GetResponseInstanceXmlElementName())) {
TResponse response = CreateResponseInstance();
await response.LoadFromXml(
reader,
GetResponseInstanceXmlElementName(),
);
Responses!.add(response);
}
} while (!reader.IsEndElementWithNamespace(
XmlNamespace.Autodiscover,
GetResponseCollectionXmlElementName(),
));
}
}