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 (IsSetNextToken())
            {
                xml.Append("<NextToken>");
                xml.Append(EscapeXML(this.NextToken));
                xml.Append("</NextToken>");
            }
            if (IsSetAmazonOrderId())
            {
                xml.Append("<AmazonOrderId>");
                xml.Append(EscapeXML(this.AmazonOrderId));
                xml.Append("</AmazonOrderId>");
            }
            if (IsSetOrderItems())
            {
                OrderItemList orderItemsObj = this.OrderItems;
                xml.Append("<OrderItems>");
                xml.Append(orderItemsObj.ToXMLFragment());
                xml.Append("</OrderItems>");
            }
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the OrderItems property.
 /// </summary>
 /// <param name="orderItems">OrderItems property.</param>
 /// <returns>this instance.</returns>
 public ListOrderItemsResult WithOrderItems(OrderItemList orderItems)
 {
     this._orderItems = orderItems;
     return this;
 }
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _nextToken = reader.Read<string>("NextToken");
     _amazonOrderId = reader.Read<string>("AmazonOrderId");
     _orderItems = reader.Read<OrderItemList>("OrderItems");
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sets the OrderItems property
 /// </summary>
 /// <param name="orderItems">OrderItems property</param>
 /// <returns>this instance</returns>
 public ListOrderItemsResult WithOrderItems(OrderItemList orderItems)
 {
     this.orderItemsField = orderItems;
     return(this);
 }
 /// <summary>
 /// Sets the OrderItems property
 /// </summary>
 /// <param name="orderItems">OrderItems property</param>
 /// <returns>this instance</returns>
 public ListOrderItemsByNextTokenResult WithOrderItems(OrderItemList orderItems)
 {
     this.orderItemsField = orderItems;
     return this;
 }
Exemplo n.º 6
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _nextToken     = reader.Read <string>("NextToken");
     _amazonOrderId = reader.Read <string>("AmazonOrderId");
     _orderItems    = reader.Read <OrderItemList>("OrderItems");
 }
 /// <summary>
 /// Sets the OrderItems property.
 /// </summary>
 /// <param name="orderItems">OrderItems property.</param>
 /// <returns>this instance.</returns>
 public ListOrderItemsByNextTokenResult WithOrderItems(OrderItemList orderItems)
 {
     this._orderItems = orderItems;
     return(this);
 }