using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Top.Api.Domain
{
///
/// Product Data Structure.
///
[Serializable]
public class Product : TopObject
{
///
/// 产品的非关键属性列表.格式:pid:vid;pid:vid.
///
[XmlElement("binds")]
public string Binds { get; set; }
///
/// 产品的非关键属性字符串列表.格式同props_str(注:属性名称中的冒号":"被转换为:"#cln#"; 分号";"被转换为:"#scln#" )
///
[XmlElement("binds_str")]
public string BindsStr { get; set; }
///
/// 商品类目名称
///
[XmlElement("cat_name")]
public string CatName { get; set; }
///
/// 商品类目ID.必须是叶子类目ID
///
[XmlElement("cid")]
public long Cid { get; set; }
///
/// 创建时间.格式:yyyy-mm-dd hh:mm:ss
///
[XmlElement("created")]
public string Created { get; set; }
///
/// 用户自定义属性,结构:pid1:value1;pid2:value2 例如:“20000:优衣库”,表示“品牌:优衣库”
///
[XmlElement("customer_props")]
public string CustomerProps { get; set; }
///
/// 产品的描述.最大25000个字节
///
[XmlElement("desc")]
public string Desc { get; set; }
///
/// 修改时间.格式:yyyy-mm-dd hh:mm:ss
///
[XmlElement("modified")]
public string Modified { get; set; }
///
/// 产品名称
///
[XmlElement("name")]
public string Name { get; set; }
///
/// 外部产品ID
///
[XmlElement("outer_id")]
public string OuterId { get; set; }
///
/// 产品的主图片地址.(绝对地址,格式:http://host/image_path)
///
[XmlElement("pic_url")]
public string PicUrl { get; set; }
///
/// 产品的市场价.单位为元.精确到2位小数;如:200.07
///
[XmlElement("price")]
public string Price { get; set; }
///
/// 产品ID
///
[XmlElement("product_id")]
public long ProductId { get; set; }
///
/// 产品的子图片.目前最多支持4张。fields中设置为product_imgs.id、product_imgs.url、product_imgs.position 等形式就会返回相应的字段
///
[XmlArray("product_imgs")]
[XmlArrayItem("product_img")]
public List ProductImgs { get; set; }
///
/// 产品的属性图片.比如说黄色对应的产品图片,绿色对应的产品图片。fields中设置为product_prop_imgs.id、 product_prop_imgs.props、product_prop_imgs.url、product_prop_imgs.position等形式就会返回相应的字段
///
[XmlArray("product_prop_imgs")]
[XmlArrayItem("product_prop_img")]
public List ProductPropImgs { get; set; }
///
/// 销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。
///
[XmlElement("property_alias")]
public string PropertyAlias { get; set; }
///
/// 产品的关键属性列表.格式:pid:vid;pid:vid
///
[XmlElement("props")]
public string Props { get; set; }
///
/// 产品的关键属性字符串列表.比如:品牌:诺基亚;型号:N73(注:属性名称中的冒号":"被转换为:"#cln#"; 分号";"被转换为:"#scln#" )
///
[XmlElement("props_str")]
public string PropsStr { get; set; }
///
/// 产品的销售属性列表.格式:pid:vid;pid:vid
///
[XmlElement("sale_props")]
public string SaleProps { get; set; }
///
/// 产品的销售属性字符串列表.格式同props_str(注:属性名称中的冒号":"被转换为:"#cln#"; 分号";"被转换为:"#scln#" )
///
[XmlElement("sale_props_str")]
public string SalePropsStr { get; set; }
///
/// 产品卖点描述,长度限制20个汉字
///
[XmlElement("sell_pt")]
public string SellPt { get; set; }
///
/// 当前状态(0 商家确认 1 屏蔽 3 小二确认 2 未确认 -1 删除)
///
[XmlElement("status")]
public long Status { get; set; }
///
/// 淘宝标准产品编码
///
[XmlElement("tsc")]
public string Tsc { get; set; }
///
/// 垂直市场,如:3(3C),4(鞋城)
///
[XmlElement("vertical_market")]
public long VerticalMarket { get; set; }
}
}