TaobaoTbkDgVegasTljReportRequest.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System.Text.Json.Serialization;
  2. using System.Collections.Generic;
  3. using Topsdk.Util;
  4. namespace Topsdk.Top.Ability1826.Request;
  5. public class TaobaoTbkDgVegasTljReportRequest : AbstractTopApiRequest
  6. {
  7. /*
  8. adzoneId
  9. */
  10. private long? adzoneId;
  11. /*
  12. 创建淘礼金时返回的rightsId
  13. */
  14. private string? rightsId;
  15. [JsonPropertyName("adzone_id")]
  16. public long? AdzoneId
  17. {
  18. get => adzoneId;
  19. set => this.adzoneId = value;
  20. }
  21. [JsonPropertyName("rights_id")]
  22. public string? RightsId
  23. {
  24. get => rightsId;
  25. set => this.rightsId = value;
  26. }
  27. public override IDictionary<string, string> ToRequestParam()
  28. {
  29. IDictionary<string, string> requestParam = new Dictionary<string, string>();
  30. if(this.adzoneId != null)
  31. {
  32. requestParam.Add("adzone_id",TopUtils.ConvertBasicType(this.adzoneId));
  33. }
  34. if(this.rightsId != null)
  35. {
  36. requestParam.Add("rights_id",TopUtils.ConvertBasicType(this.rightsId));
  37. }
  38. return requestParam;
  39. }
  40. public override IDictionary<string, TopFileItem> ToFileParam()
  41. {
  42. IDictionary<string, TopFileItem> fileParam = new Dictionary<string, TopFileItem>();
  43. return fileParam;
  44. }
  45. public override string GetApiCode()
  46. {
  47. return "taobao.tbk.dg.vegas.tlj.report";
  48. }
  49. }