using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Top.Api.Response { /// /// OpenmallItemsQueryResponse. /// public class OpenmallItemsQueryResponse : TopResponse { /// /// 返回结果 /// [XmlElement("result")] public ResultDoDomain Result { get; set; } /// /// TopItemVoDomain Data Structure. /// [Serializable] public class TopItemVoDomain : TopObject { /// /// 商品类目 /// [XmlElement("category_id")] public long CategoryId { get; set; } /// /// 商品所在城市 /// [XmlElement("city")] public string City { get; set; } /// /// 商品成本价,精确到2位小数,单位:元。如:200.07,表示200元7分。 /// [XmlElement("cost_price")] public string CostPrice { get; set; } /// /// 商品ID /// [XmlElement("item_id")] public long ItemId { get; set; } /// /// 商品主图 /// [XmlElement("pic_url")] public string PicUrl { get; set; } /// /// 商品所在省份 /// [XmlElement("prov")] public string Prov { get; set; } /// /// 库存 /// [XmlElement("quantity")] public string Quantity { get; set; } /// /// 商品状态:上架(1)、下架(0) /// [XmlElement("status")] public long Status { get; set; } /// /// 商品标题 /// [XmlElement("title")] public string Title { get; set; } } /// /// ResultDoDomain Data Structure. /// [Serializable] public class ResultDoDomain : TopObject { /// /// 错误码 /// [XmlElement("error_code")] public string ErrorCode { get; set; } /// /// 错误信息 /// [XmlElement("error_msg")] public string ErrorMsg { get; set; } /// /// 商品列表 /// [XmlArray("item_list")] [XmlArrayItem("top_item_vo")] public List ItemList { get; set; } /// /// 调用是否成功 /// [XmlElement("success")] public bool Success { get; set; } } } }