WriteElementsToXml method

  1. @override
void WriteElementsToXml(
  1. EwsServiceXmlWriter writer
)
override
Writes the elements to XML writer. The writer.

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  writer.WriteStartElement(
      XmlNamespace.Messages, XmlElementNames.SubscriptionIds);

  for (String id in this.subscriptionIds) {
    writer.WriteElementValueWithNamespace(
        XmlNamespace.Types, XmlElementNames.SubscriptionId, id);
  }

  writer.WriteEndElement();

  writer.WriteElementValueWithNamespace(XmlNamespace.Messages,
      XmlElementNames.ConnectionTimeout, this.connectionTimeout);
}