TaobaoTbkDgVegasSendStatusRequest.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using System.Text.Json.Serialization;
  2. using System.Collections.Generic;
  3. using Topsdk.Util;
  4. namespace Topsdk.Top.Ability382.Request;
  5. public class TaobaoTbkDgVegasSendStatusRequest : AbstractTopApiRequest
  6. {
  7. /*
  8. 渠道管理id
  9. */
  10. private string? relationId;
  11. /*
  12. 会员运营id
  13. */
  14. private string? specialId;
  15. /*
  16. 加密后的值,需用MD5加密,32位小写
  17. */
  18. private string? deviceValue;
  19. /*
  20. 入参类型(该模式下返回的结果为模糊匹配结果,和实际情况可能存在误差): 1. IMEI 2. IDFA 3. OAID 4. MOBILE
  21. */
  22. private string? deviceType;
  23. /*
  24. 已废弃,请勿传入
  25. */
  26. private string? thorBizCode;
  27. /*
  28. 媒体pid
  29. */
  30. private string? pid;
  31. /*
  32. 查询红包类型,1-超级红包,2-福利购,3-签到红包,4-福利直降,5-幸运赢免单,不传时默认查询超级红包数据
  33. */
  34. private long? activityCategory;
  35. [JsonPropertyName("relation_id")]
  36. public string? RelationId
  37. {
  38. get => relationId;
  39. set => this.relationId = value;
  40. }
  41. [JsonPropertyName("special_id")]
  42. public string? SpecialId
  43. {
  44. get => specialId;
  45. set => this.specialId = value;
  46. }
  47. [JsonPropertyName("device_value")]
  48. public string? DeviceValue
  49. {
  50. get => deviceValue;
  51. set => this.deviceValue = value;
  52. }
  53. [JsonPropertyName("device_type")]
  54. public string? DeviceType
  55. {
  56. get => deviceType;
  57. set => this.deviceType = value;
  58. }
  59. [JsonPropertyName("thor_biz_code")]
  60. public string? ThorBizCode
  61. {
  62. get => thorBizCode;
  63. set => this.thorBizCode = value;
  64. }
  65. [JsonPropertyName("pid")]
  66. public string? Pid
  67. {
  68. get => pid;
  69. set => this.pid = value;
  70. }
  71. [JsonPropertyName("activity_category")]
  72. public long? ActivityCategory
  73. {
  74. get => activityCategory;
  75. set => this.activityCategory = value;
  76. }
  77. public override IDictionary<string, string> ToRequestParam()
  78. {
  79. IDictionary<string, string> requestParam = new Dictionary<string, string>();
  80. if(this.relationId != null)
  81. {
  82. requestParam.Add("relation_id",TopUtils.ConvertBasicType(this.relationId));
  83. }
  84. if(this.specialId != null)
  85. {
  86. requestParam.Add("special_id",TopUtils.ConvertBasicType(this.specialId));
  87. }
  88. if(this.deviceValue != null)
  89. {
  90. requestParam.Add("device_value",TopUtils.ConvertBasicType(this.deviceValue));
  91. }
  92. if(this.deviceType != null)
  93. {
  94. requestParam.Add("device_type",TopUtils.ConvertBasicType(this.deviceType));
  95. }
  96. if(this.thorBizCode != null)
  97. {
  98. requestParam.Add("thor_biz_code",TopUtils.ConvertBasicType(this.thorBizCode));
  99. }
  100. if(this.pid != null)
  101. {
  102. requestParam.Add("pid",TopUtils.ConvertBasicType(this.pid));
  103. }
  104. if(this.activityCategory != null)
  105. {
  106. requestParam.Add("activity_category",TopUtils.ConvertBasicType(this.activityCategory));
  107. }
  108. return requestParam;
  109. }
  110. public override IDictionary<string, TopFileItem> ToFileParam()
  111. {
  112. IDictionary<string, TopFileItem> fileParam = new Dictionary<string, TopFileItem>();
  113. return fileParam;
  114. }
  115. public override string GetApiCode()
  116. {
  117. return "taobao.tbk.dg.vegas.send.status";
  118. }
  119. }