Inheritance: MWSClientCsRuntime.AbstractMwsObject
示例#1
0
        /// <summary>
        /// XML fragment representation of this object
        /// </summary>
        /// <returns>XML fragment for this object.</returns>
        /// <remarks>
        /// Name for outer tag expected to be set by calling method.
        /// This fragment returns inner properties representation only
        /// </remarks>


        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();

            if (IsSetMarketplaceASIN())
            {
                ASINIdentifier marketplaceASINObj = this.MarketplaceASIN;
                xml.Append("<MarketplaceASIN>");
                xml.Append(marketplaceASINObj.ToXMLFragment());
                xml.Append("</MarketplaceASIN>");
            }
            if (IsSetSKUIdentifier())
            {
                SellerSKUIdentifier SKUIdentifierObj = this.SKUIdentifier;
                xml.Append("<SKUIdentifier>");
                xml.Append(SKUIdentifierObj.ToXMLFragment());
                xml.Append("</SKUIdentifier>");
            }
            return(xml.ToString());
        }
示例#2
0
 /// <summary>
 /// Sets the MarketplaceASIN property
 /// </summary>
 /// <param name="marketplaceASIN">MarketplaceASIN property</param>
 /// <returns>this instance</returns>
 public IdentifierType WithMarketplaceASIN(ASINIdentifier marketplaceASIN)
 {
     this.marketplaceASINField = marketplaceASIN;
     return(this);
 }
示例#3
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _marketplaceASIN = reader.Read <ASINIdentifier>("MarketplaceASIN");
     _skuIdentifier   = reader.Read <SellerSKUIdentifier>("SKUIdentifier");
 }
示例#4
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _marketplaceASIN = reader.Read<ASINIdentifier>("MarketplaceASIN");
     _skuIdentifier = reader.Read<SellerSKUIdentifier>("SKUIdentifier");
 }
示例#5
0
 /// <summary>
 /// Sets the MarketplaceASIN property.
 /// </summary>
 /// <param name="marketplaceASIN">MarketplaceASIN property.</param>
 /// <returns>this instance.</returns>
 public IdentifierType WithMarketplaceASIN(ASINIdentifier marketplaceASIN)
 {
     this._marketplaceASIN = marketplaceASIN;
     return this;
 }
示例#6
0
 public IdentifierType(ASINIdentifier marketplaceASIN) : base()
 {
     this._marketplaceASIN = marketplaceASIN;
 }