MessageAnalysisItemJson.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. 文件名:MessageAnalysisItemJson.cs
  17. 文件功能描述:获取消息发送概况数据返回结果 单条数据类
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. 修改标识:Senparc - 20150310
  22. 修改描述:修改类
  23. ----------------------------------------------------------------*/
  24. namespace Senparc.Weixin.MP.AdvancedAPIs.Analysis
  25. {
  26. public class BaseUpStreamMsgResult : BaseAnalysisObject
  27. {
  28. /// <summary>
  29. /// 数据的日期,需在begin_date和end_date之间
  30. /// </summary>
  31. public string ref_date { get; set; }
  32. /// <summary>
  33. /// 消息类型,代表含义如下:1代表文字 2代表图片 3代表语音 4代表视频 6代表第三方应用消息(链接消息)
  34. /// </summary>
  35. public int msg_type { get; set; }
  36. /// <summary>
  37. /// 上行发送了(向公众号发送了)消息的用户数
  38. /// </summary>
  39. public int msg_user { get; set; }
  40. /// <summary>
  41. /// 上行发送了消息的消息总数
  42. /// </summary>
  43. public int msg_count { get; set; }
  44. }
  45. /// <summary>
  46. /// 消息发送概况数据 单条数据
  47. /// </summary>
  48. public class UpStreamMsgItem : BaseUpStreamMsgResult
  49. {
  50. }
  51. /// <summary>
  52. /// 消息分送分时数据 单条数据
  53. /// </summary>
  54. public class UpStreamMsgHourItem : BaseUpStreamMsgResult
  55. {
  56. /// <summary>
  57. /// 数据的小时,包括从000到2300,分别代表的是[000,100)到[2300,2400),即每日的第1小时和最后1小时
  58. /// </summary>
  59. public int ref_hour { get; set; }
  60. }
  61. /// <summary>
  62. /// 消息发送周数据 单条数据
  63. /// </summary>
  64. public class UpStreamMsgWeekItem : BaseUpStreamMsgResult
  65. {
  66. }
  67. /// <summary>
  68. /// 消息发送月数据 单条数据
  69. /// </summary>
  70. public class UpStreamMsgMonthItem : BaseUpStreamMsgResult
  71. {
  72. }
  73. public class BaseUpStreamMsgDist : BaseAnalysisObject
  74. {
  75. /// <summary>
  76. /// 数据的日期,需在begin_date和end_date之间
  77. /// </summary>
  78. public string ref_date { get; set; }
  79. /// <summary>
  80. /// 当日发送消息量分布的区间,0代表 “0”,1代表“1-5”,2代表“6-10”,3代表“10次以上”
  81. /// </summary>
  82. public int count_interval { get; set; }
  83. /// <summary>
  84. /// 上行发送了(向公众号发送了)消息的用户数
  85. /// </summary>
  86. public int msg_user { get; set; }
  87. }
  88. /// <summary>
  89. /// 消息发送分布数据 单条数据
  90. /// </summary>
  91. public class UpStreamMsgDistItem : BaseUpStreamMsgDist
  92. {
  93. }
  94. /// <summary>
  95. /// 消息发送分布周数据 单条数据
  96. /// </summary>
  97. public class UpStreamMsgDistWeekItem : BaseUpStreamMsgDist
  98. {
  99. }
  100. /// <summary>
  101. /// 消息发送分布月数据 单条数据
  102. /// </summary>
  103. public class UpStreamMsgDistMonthItem : BaseUpStreamMsgDist
  104. {
  105. }
  106. }