Пример #1
0
 void WriteElementsToXml(EwsServiceXmlWriter writer)
 {
     for (Uint8List item in this.content)
     {
         writer.WriteStartElement(XmlNamespace.Types, ByteArrayArray.ItemXmlElementName);
         writer.WriteBase64ElementValue(item);
         writer.WriteEndElement();
     }
 }
Пример #2
0
    void WriteElementsToXml(EwsServiceXmlWriter writer)
    {
        writer.WriteStartElement(XmlNamespace.Messages, XmlElementNames.Manifest);

        writer.WriteBase64ElementValue(manifestStream);

        if (!StringUtils.IsNullOrEmpty(this.marketplaceAssetId))
        {
            writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.MarketplaceAssetId, this.marketplaceAssetId);

            if (!StringUtils.IsNullOrEmpty(this.marketplaceContentMarket))
            {
                writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.MarketplaceContentMarket, this.marketplaceContentMarket);
            }

            writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.SendWelcomeEmail, this.sendWelcomeEmail);
        }

        writer.WriteEndElement();
    }
Пример #3
0
    void WriteElementsToXml(EwsServiceXmlWriter writer)
    {
        if (null != this.SpecificUsers)
        {
            writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.ClientExtensionSpecificUsers);
            this.SpecificUsers.WriteElementsToXml(writer);
            writer.WriteEndElement();
        }

        if (null != this.ManifestStream)
        {
            if (this.ManifestStream.CanSeek)
            {
                this.ManifestStream.Position = 0;
            }

            writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Manifest);
            writer.WriteBase64ElementValue(this.ManifestStream);
            writer.WriteEndElement();
        }
    }