TaobaoTopSdkFeedbackUploadRequest.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System.Text.Json.Serialization;
  2. using System.Collections.Generic;
  3. using Topsdk.Util;
  4. namespace Topsdk.Top.Ability304.Request;
  5. public class TaobaoTopSdkFeedbackUploadRequest : AbstractTopApiRequest
  6. {
  7. /*
  8. 1、回传加密信息
  9. */
  10. private string? type;
  11. /*
  12. 具体内容,json形式
  13. */
  14. private string? content;
  15. [JsonPropertyName("type")]
  16. public string? Type
  17. {
  18. get => type;
  19. set => this.type = value;
  20. }
  21. [JsonPropertyName("content")]
  22. public string? Content
  23. {
  24. get => content;
  25. set => this.content = value;
  26. }
  27. public override IDictionary<string, string> ToRequestParam()
  28. {
  29. IDictionary<string, string> requestParam = new Dictionary<string, string>();
  30. if(this.type != null)
  31. {
  32. requestParam.Add("type",TopUtils.ConvertBasicType(this.type));
  33. }
  34. if(this.content != null)
  35. {
  36. requestParam.Add("content",TopUtils.ConvertBasicType(this.content));
  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.top.sdk.feedback.upload";
  48. }
  49. }