TaobaoKfcKeywordSearchKfcSearchResult.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System.Text.Json.Serialization;
  2. using System.Collections.Generic;
  3. using Topsdk.Util;
  4. namespace Topsdk.Top.Defaultability.Domain;
  5. public class TaobaoKfcKeywordSearchKfcSearchResult
  6. {
  7. /*
  8. 是否匹配到关键词,匹配到则为true.
  9. */
  10. private bool? matched;
  11. /*
  12. 匹配到的关键词的等级,值为null,或为A、B、C、D。
  13. 当匹配不到关键词时,值为null,否则值为A、B、C、D中的一个。
  14. A、B、C、D等级按严重程度从高至低排列。
  15. */
  16. private string? level;
  17. /*
  18. 过滤后的文本:
  19. 当匹配到B等级的词时,文本中的关键词被替换为*号,content即为关键词替换后的文本;
  20. 其他情况,content始终为null
  21. */
  22. private string? content;
  23. [JsonPropertyName("matched")]
  24. public bool? Matched
  25. {
  26. get => matched;
  27. set => this.matched = value;
  28. }
  29. [JsonPropertyName("level")]
  30. public string? Level
  31. {
  32. get => level;
  33. set => this.level = value;
  34. }
  35. [JsonPropertyName("content")]
  36. public string? Content
  37. {
  38. get => content;
  39. set => this.content = value;
  40. }
  41. }