DeviceManageResultJson.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. 文件名:DeviceManageResultJson.cs
  17. 文件功能描述:设备管理返回结果
  18. 创建标识:Senparc - 20150512
  19. ----------------------------------------------------------------*/
  20. using System.Collections.Generic;
  21. using Senparc.Weixin.Entities;
  22. namespace Senparc.Weixin.MP.AdvancedAPIs.ShakeAround
  23. {
  24. /// <summary>
  25. /// 申请设备ID返回结果
  26. /// </summary>
  27. public class DeviceApplyResultJson : WxJsonResult
  28. {
  29. /// <summary>
  30. /// 申请设备ID返回数据
  31. /// </summary>
  32. public DeviceApply_Data data { get; set; }
  33. }
  34. public class DeviceApply_Data
  35. {
  36. /// <summary>
  37. /// 申请的批次ID,可用在“查询设备列表”接口按批次查询本次申请成功的设备ID。
  38. /// </summary>
  39. public long apply_id { get; set; }
  40. ///// <summary>
  41. ///// 指定的设备ID列表
  42. ///// </summary>
  43. //public List<DeviceApply_Data_Device_Identifiers> device_identifiers { get; set; }
  44. /// <summary>
  45. /// 审核状态。0:审核未通过、1:审核中、2:审核已通过;审核会在三个工作日内完成
  46. /// </summary>
  47. public int audit_status { get; set; }
  48. /// <summary>
  49. /// 审核备注,包括审核不通过的原因
  50. /// </summary>
  51. public string audit_comment { get; set; }
  52. }
  53. /// <summary>
  54. /// 设备参数
  55. /// </summary>
  56. public class DeviceApply_Data_Device_Identifiers
  57. {
  58. /// <summary>
  59. /// 设备编号
  60. /// </summary>
  61. public long? device_id { get; set; }
  62. public string uuid { get; set; }
  63. public long major { get; set; }
  64. public long minor { get; set; }
  65. }
  66. #region 返回结果示例
  67. //当申请个数小于等于500时,
  68. //{
  69. //"data": {
  70. // "apply_id": 123,
  71. // "device_identifiers":[
  72. // {
  73. // "device_id":10100,
  74. // "uuid":"FDA50693-A4E2-4FB1-AFCF-C6EB07647825",
  75. // "major":10001,
  76. // "minor":10002
  77. // }
  78. // ]
  79. // },
  80. // "errcode": 0,
  81. // "errmsg": "success."
  82. //}
  83. //当申请个数大于500时,
  84. //{
  85. //"data": {
  86. // "apply_id": 123,
  87. // "audit_status": 0,
  88. // "audit_comment": "审核未通过"
  89. // },
  90. // "errcode": 0,
  91. // "errmsg": "success."
  92. //}
  93. #endregion
  94. /// <summary>
  95. /// 查询设备列表返回结果
  96. /// </summary>
  97. public class DeviceSearchResultJson : WxJsonResult
  98. {
  99. /// <summary>
  100. /// 申请设备ID返回数据
  101. /// </summary>
  102. public DeviceSearch_Data data { get; set; }
  103. }
  104. public class DeviceSearch_Data
  105. {
  106. /// <summary>
  107. /// 指定的设备信息列表
  108. /// </summary>
  109. public List<DeviceSearch_Data_Devices> devices { get; set; }
  110. /// <summary>
  111. /// 商户名下的设备总量
  112. /// </summary>
  113. public int total_count { get; set; }
  114. }
  115. public class DeviceSearch_Data_Devices
  116. {
  117. /// <summary>
  118. /// 设备的备注信息
  119. /// </summary>
  120. public string comment { get; set; }
  121. /// <summary>
  122. /// 设备编号
  123. /// </summary>
  124. public long device_id { get; set; }
  125. public long major { get; set; }
  126. public long minor { get; set; }
  127. /// <summary>
  128. /// 与此设备关联的页面ID列表,用逗号隔开
  129. /// </summary>
  130. public string page_ids { get; set; }
  131. /// <summary>
  132. /// 激活状态,0:未激活,1:已激活(但不活跃),2:活跃
  133. /// </summary>
  134. public int status { get; set; }
  135. /// <summary>
  136. /// 设备关联的门店ID
  137. /// </summary>
  138. public long poi_id { get; set; }
  139. public string uuid { get; set; }
  140. }
  141. }