using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: taobao.tbk.thor.mfrs.promotion.query /// public class TbkThorMfrsPromotionQueryRequest : BaseTopRequest { /// /// 查询请求对象 /// public string Option { get; set; } public ManufacturerLaunchOptionDomain Option_ { set { this.Option = TopUtils.ObjectToJson(value); } } #region ITopRequest Members public override string GetApiName() { return "taobao.tbk.thor.mfrs.promotion.query"; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("option", this.Option); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { } /// /// ManufacturerLaunchOptionDomain Data Structure. /// [Serializable] public class ManufacturerLaunchOptionDomain : TopObject { /// /// 如手淘、京东、抖音、快手 /// [XmlElement("from")] public string From { get; set; } /// /// 图片按照短边不超过320的方式等比例缩放,转字节流时按jpg格式,压缩率80进行转换 /// [XmlElement("img")] public string Img { get; set; } /// /// 媒体pid /// [XmlElement("pid")] public string Pid { get; set; } /// /// 价格 /// [XmlElement("price")] public string Price { get; set; } /// /// 场景类型 /// [XmlElement("scene_code")] public string SceneCode { get; set; } /// /// 子场景码:Hivision(拍照识图)、Hitoch(双指按压) /// [XmlElement("scene_sub_code")] public string SceneSubCode { get; set; } /// /// sku名 /// [XmlElement("sku")] public string Sku { get; set; } /// /// 商品副标题 /// [XmlElement("sub_title")] public string SubTitle { get; set; } /// /// 淘口令 /// [XmlElement("tbpwd")] public string Tbpwd { get; set; } /// /// 商品标题 /// [XmlElement("title")] public string Title { get; set; } /// /// 唯一标识 /// [XmlElement("unique_id")] public string UniqueId { get; set; } /// /// OAID/手机号/imei /// [XmlElement("unique_id_type")] public string UniqueIdType { get; set; } /// /// 商品链接 /// [XmlElement("url")] public string Url { get; set; } /// /// 扩展字段 /// [XmlElement("variable_map")] public string VariableMap { get; set; } } #endregion } }