QueryLotteryJsonResult.cs 4.1 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. 文件名:QueryLotteryJsonResult.cs
  17. 文件功能描述:红包查询的返回结果
  18. 创建标识:Senparc - 20160520
  19. ----------------------------------------------------------------*/
  20. using System;
  21. using System.Collections.Generic;
  22. using System.Linq;
  23. using System.Text;
  24. using System.Threading.Tasks;
  25. using Senparc.Weixin.Entities;
  26. namespace Senparc.Weixin.MP.AdvancedAPIs.ShakeAround
  27. {
  28. /// <summary>
  29. /// 红包查询的返回结果
  30. /// </summary>
  31. public class QueryLotteryJsonResult : WxJsonResult
  32. {
  33. public QueryLottery_Result result { get; set; }
  34. }
  35. public class QueryLottery_Result
  36. {
  37. /// <summary>
  38. /// 红包抽奖id,来自addlotteryinfo返回的lottery_id
  39. /// </summary>
  40. public string lottery_id { get; set; }
  41. /// <summary>
  42. /// 抽奖活动名称(选择使用模板时,也作为摇一摇消息主标题),最长6个汉字,12个英文字母。
  43. /// </summary>
  44. public string title { get; set; }
  45. /// <summary>
  46. /// 抽奖活动描述(选择使用模板时,也作为摇一摇消息副标题),最长7个汉字,14个英文字母。
  47. /// </summary>
  48. public string desc { get; set; }
  49. /// <summary>
  50. /// 抽奖开关。0关闭,1开启,默认为1
  51. /// </summary>
  52. public int onoff { get; set; }
  53. /// <summary>
  54. /// 抽奖活动开始时间,unix时间戳,单位秒
  55. /// </summary>
  56. public long begin_time { get; set; }
  57. /// <summary>
  58. /// 抽奖活动结束时间,unix时间戳,单位秒,红包活动有效期最长为91天
  59. /// </summary>
  60. public long expire_time { get; set; }
  61. /// <summary>
  62. /// 红包提供商户公众号的appid
  63. /// </summary>
  64. public string sponsor_appid { get; set; }
  65. /// <summary>
  66. /// 创建活动的开发者appid
  67. /// </summary>
  68. public string appid { get; set; }
  69. /// <summary>
  70. /// 创建活动时预设的录入红包ticket数量上限
  71. /// </summary>
  72. public long prize_count_limit { get; set; }
  73. /// <summary>
  74. /// 已录入的红包总数
  75. /// </summary>
  76. public long prize_count { get; set; }
  77. /// <summary>
  78. /// 红包关注界面后可以跳转到第三方自定义的页面
  79. /// </summary>
  80. public string jump_url { get; set; }
  81. /// <summary>
  82. /// 过期红包ticket数量
  83. /// </summary>
  84. public long expired_prizes { get; set; }
  85. /// <summary>
  86. /// 已发放的红包ticket数量
  87. /// </summary>
  88. public long drawed_prizes { get; set; }
  89. /// <summary>
  90. /// 可用的红包ticket数量
  91. /// </summary>
  92. public long available_prizes { get; set; }
  93. /// <summary>
  94. /// 已过期的红包金额总和
  95. /// </summary>
  96. public long expired_value { get; set; }
  97. /// <summary>
  98. /// 已发放的红包金额总和
  99. /// </summary>
  100. public long drawed_value { get; set; }
  101. /// <summary>
  102. /// 可用的红包金额总和
  103. /// </summary>
  104. public long available_value { get; set; }
  105. }
  106. }