Inheritance: MWSClientCsRuntime.AbstractMwsObject
Exemplo n.º 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 (IsSetCompetitivePrices())
            {
                CompetitivePriceList competitivePricesObj = this.CompetitivePrices;
                xml.Append("<CompetitivePrices>");
                xml.Append(competitivePricesObj.ToXMLFragment());
                xml.Append("</CompetitivePrices>");
            }
            if (IsSetNumberOfOfferListings())
            {
                NumberOfOfferListingsList numberOfOfferListingsObj = this.NumberOfOfferListings;
                xml.Append("<NumberOfOfferListings>");
                xml.Append(numberOfOfferListingsObj.ToXMLFragment());
                xml.Append("</NumberOfOfferListings>");
            }
            if (IsSetTradeInValue())
            {
                MoneyType tradeInValueObj = this.TradeInValue;
                xml.Append("<TradeInValue>");
                xml.Append(tradeInValueObj.ToXMLFragment());
                xml.Append("</TradeInValue>");
            }
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the CompetitivePrices property.
 /// </summary>
 /// <param name="competitivePrices">CompetitivePrices property.</param>
 /// <returns>this instance.</returns>
 public CompetitivePricingType WithCompetitivePrices(CompetitivePriceList competitivePrices)
 {
     this._competitivePrices = competitivePrices;
     return this;
 }
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _competitivePrices = reader.Read<CompetitivePriceList>("CompetitivePrices");
     _numberOfOfferListings = reader.Read<NumberOfOfferListingsList>("NumberOfOfferListings");
     _tradeInValue = reader.Read<MoneyType>("TradeInValue");
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sets the CompetitivePrices property.
 /// </summary>
 /// <param name="competitivePrices">CompetitivePrices property.</param>
 /// <returns>this instance.</returns>
 public CompetitivePricingType WithCompetitivePrices(CompetitivePriceList competitivePrices)
 {
     this._competitivePrices = competitivePrices;
     return(this);
 }
Exemplo n.º 5
0
 public CompetitivePricingType(CompetitivePriceList competitivePrices, NumberOfOfferListingsList numberOfOfferListings) : base()
 {
     this._competitivePrices     = competitivePrices;
     this._numberOfOfferListings = numberOfOfferListings;
 }
Exemplo n.º 6
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _competitivePrices     = reader.Read <CompetitivePriceList>("CompetitivePrices");
     _numberOfOfferListings = reader.Read <NumberOfOfferListingsList>("NumberOfOfferListings");
     _tradeInValue          = reader.Read <MoneyType>("TradeInValue");
 }