ListResultJson.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #region Apache License Version 2.0
  2. /*----------------------------------------------------------------
  3. Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  9. either express or implied. See the License for the specific language governing permissions
  10. and limitations under the License.
  11. Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
  12. ----------------------------------------------------------------*/
  13. #endregion Apache License Version 2.0
  14. /*----------------------------------------------------------------
  15. Copyright (C) 2019 Senparc
  16. 文件名:ListResultJson.cs
  17. 文件功能描述:查看指定文章的评论数据 返回结果
  18. 创建标识:Senparc - 20180131
  19. 修改标识:Senparc - 20180318
  20. 修改描述:v14.10.6 完善“查看指定文章的评论数据”接口(CommentApi.List())的返回结果数据
  21. ----------------------------------------------------------------*/
  22. using Senparc.Weixin.Entities;
  23. using System;
  24. using System.Collections.Generic;
  25. using System.Linq;
  26. using System.Text;
  27. using System.Threading.Tasks;
  28. namespace Senparc.Weixin.MP.AdvancedAPIs.Comment.CommentJson
  29. {
  30. /// <summary>
  31. /// 查看指定文章的评论数据 返回结果
  32. /// </summary>
  33. public class ListResultJson : WxJsonResult
  34. {
  35. /// <summary>
  36. /// 评论列表
  37. /// </summary>
  38. public ListResultJson_comment[] comment { get; set; }
  39. /// <summary>
  40. /// 总数,非comment的size
  41. /// </summary>
  42. public int total { get; set; }
  43. }
  44. public class ListResultJson_comment
  45. {
  46. /*
  47. * 返回结果:
  48. {
  49. "user_comment_id": 9,
  50. "create_time": 1521255525,
  51. "content": "如果有什么大考验的话可能会发现自己啥都没改都白扯了吧",
  52. "comment_type": 0,
  53. "openid": "oufSm0Xw0nhuha_nWD6AfiZ3rgvA",
  54. "reply" :
  55. {
  56. "content" : "CONTENT",
  57. "create_time" : 1521265525
  58. }
  59. }
  60. */
  61. /// <summary>
  62. /// 用户评论id
  63. /// </summary>
  64. public int user_comment_id { get; set; }
  65. /// <summary>
  66. /// 评论时间
  67. /// </summary>
  68. public long create_time { get; set; }
  69. /// <summary>
  70. /// 评论内容
  71. /// </summary>
  72. public string content { get; set; }
  73. /// <summary>
  74. /// 是否精选评论,0为即非精选,1为true,即精选
  75. /// </summary>
  76. public int comment_type { get; set; }
  77. /// <summary>
  78. /// OpenId
  79. /// </summary>
  80. public string openid { get; set; }
  81. /// <summary>
  82. /// 回复
  83. /// </summary>
  84. public ListResultJson_comment_reply reply { get; set; }
  85. }
  86. public class ListResultJson_comment_reply
  87. {
  88. /// <summary>
  89. /// 作者回复内容
  90. /// </summary>
  91. public string content { get; set; }
  92. /// <summary>
  93. /// 作者回复时间
  94. /// </summary>
  95. public long create_time { get; set; }
  96. }
  97. }