public override void ReadFragmentFrom(IMwsReader reader)
 {
     _itemCondition                = reader.Read <string>("ItemCondition");
     _itemSubcondition             = reader.Read <string>("ItemSubcondition");
     _fulfillmentChannel           = reader.Read <string>("FulfillmentChannel");
     _shipsDomestically            = reader.Read <string>("ShipsDomestically");
     _shippingTime                 = reader.Read <ShippingTimeType>("ShippingTime");
     _sellerPositiveFeedbackRating = reader.Read <string>("SellerPositiveFeedbackRating");
 }
Esempio n. 2
0
 public QualifiersType(string itemCondition, string itemSubcondition, string fulfillmentChannel, string shipsDomestically, ShippingTimeType shippingTime, string sellerPositiveFeedbackRating) : base()
 {
     this._itemCondition                = itemCondition;
     this._itemSubcondition             = itemSubcondition;
     this._fulfillmentChannel           = fulfillmentChannel;
     this._shipsDomestically            = shipsDomestically;
     this._shippingTime                 = shippingTime;
     this._sellerPositiveFeedbackRating = sellerPositiveFeedbackRating;
 }
Esempio n. 3
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 (IsSetItemCondition())
            {
                xml.Append("<ItemCondition>");
                xml.Append(EscapeXML(this.ItemCondition));
                xml.Append("</ItemCondition>");
            }
            if (IsSetItemSubcondition())
            {
                xml.Append("<ItemSubcondition>");
                xml.Append(EscapeXML(this.ItemSubcondition));
                xml.Append("</ItemSubcondition>");
            }
            if (IsSetFulfillmentChannel())
            {
                xml.Append("<FulfillmentChannel>");
                xml.Append(EscapeXML(this.FulfillmentChannel));
                xml.Append("</FulfillmentChannel>");
            }
            if (IsSetShipsDomestically())
            {
                xml.Append("<ShipsDomestically>");
                xml.Append(EscapeXML(this.ShipsDomestically));
                xml.Append("</ShipsDomestically>");
            }
            if (IsSetShippingTime())
            {
                ShippingTimeType shippingTimeObj = this.ShippingTime;
                xml.Append("<ShippingTime>");
                xml.Append(shippingTimeObj.ToXMLFragment());
                xml.Append("</ShippingTime>");
            }
            if (IsSetSellerPositiveFeedbackRating())
            {
                xml.Append("<SellerPositiveFeedbackRating>");
                xml.Append(EscapeXML(this.SellerPositiveFeedbackRating));
                xml.Append("</SellerPositiveFeedbackRating>");
            }
            return(xml.ToString());
        }
Esempio n. 4
0
 /// <summary>
 /// Sets the ShippingTime property
 /// </summary>
 /// <param name="shippingTime">ShippingTime property</param>
 /// <returns>this instance</returns>
 public QualifiersType WithShippingTime(ShippingTimeType shippingTime)
 {
     this.shippingTimeField = shippingTime;
     return this;
 }
Esempio n. 5
0
 /// <summary>
 /// Sets the ShippingTime property
 /// </summary>
 /// <param name="shippingTime">ShippingTime property</param>
 /// <returns>this instance</returns>
 public QualifiersType WithShippingTime(ShippingTimeType shippingTime)
 {
     this.shippingTimeField = shippingTime;
     return(this);
 }
Esempio n. 6
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _itemCondition = reader.Read<string>("ItemCondition");
     _itemSubcondition = reader.Read<string>("ItemSubcondition");
     _fulfillmentChannel = reader.Read<string>("FulfillmentChannel");
     _shipsDomestically = reader.Read<string>("ShipsDomestically");
     _shippingTime = reader.Read<ShippingTimeType>("ShippingTime");
     _sellerPositiveFeedbackRating = reader.Read<string>("SellerPositiveFeedbackRating");
 }