/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<ListMatchingProductsResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">"); if (IsSetListMatchingProductsResult()) { ListMatchingProductsResult listMatchingProductsResult = this.ListMatchingProductsResult; xml.Append("<ListMatchingProductsResult>"); xml.Append(listMatchingProductsResult.ToXMLFragment()); xml.Append("</ListMatchingProductsResult>"); } if (IsSetResponseMetadata()) { ResponseMetadata responseMetadata = this.ResponseMetadata; xml.Append("<ResponseMetadata>"); xml.Append(responseMetadata.ToXMLFragment()); xml.Append("</ResponseMetadata>"); } xml.Append("</ListMatchingProductsResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the ListMatchingProductsResult property. /// </summary> /// <param name="listMatchingProductsResult">ListMatchingProductsResult property.</param> /// <returns>this instance.</returns> public ListMatchingProductsResponse WithListMatchingProductsResult(ListMatchingProductsResult listMatchingProductsResult) { this._listMatchingProductsResult = listMatchingProductsResult; return this; }
public override void ReadFragmentFrom(IMwsReader reader) { _listMatchingProductsResult = reader.Read<ListMatchingProductsResult>("ListMatchingProductsResult"); _responseMetadata = reader.Read<ResponseMetadata>("ResponseMetadata"); }
/// <summary> /// Sets the ListMatchingProductsResult property. /// </summary> /// <param name="listMatchingProductsResult">ListMatchingProductsResult property.</param> /// <returns>this instance.</returns> public ListMatchingProductsResponse WithListMatchingProductsResult(ListMatchingProductsResult listMatchingProductsResult) { this._listMatchingProductsResult = listMatchingProductsResult; return(this); }
public override void ReadFragmentFrom(IMwsReader reader) { _listMatchingProductsResult = reader.Read <ListMatchingProductsResult>("ListMatchingProductsResult"); _responseMetadata = reader.Read <ResponseMetadata>("ResponseMetadata"); }