WiFiShopGetJsonResult.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. 文件名:WiFiShopGetJsonResult.cs
  17. 文件功能描述:查询门店Wi-Fi信息的返回结果
  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.WiFi
  27. {
  28. /// <summary>
  29. /// 查询门店Wi-Fi信息的返回结果
  30. /// </summary>
  31. public class WiFiShopGetJsonResult : WxJsonResult
  32. {
  33. public ShopGet_Data data { get; set; }
  34. }
  35. public class ShopGet_Ssid_Password_List
  36. {
  37. /// <summary>
  38. /// 无线网络设备的ssid,未添加设备为空,多个ssid时显示第一个
  39. /// </summary>
  40. public string ssid { get; set; }
  41. public string password { get; set; }
  42. }
  43. public class ShopGet_Data
  44. {
  45. /// <summary>
  46. /// 门店名称
  47. /// </summary>
  48. public string shop_name { get; set; }
  49. /// <summary>
  50. /// 无线网络设备的ssid,未添加设备为空,多个ssid时显示第一个
  51. /// </summary>
  52. public string ssid { get; set; }
  53. /// <summary>
  54. /// 无线网络设备的ssid列表,返回数组格式
  55. /// </summary>
  56. // public List<string> ssid_list { get; set; }
  57. public List<string> ssid_list { get; set; }
  58. /// <summary>
  59. /// ssid和密码的列表,数组格式。当为密码型设备时,密码才有值
  60. /// </summary>
  61. public List<ShopGet_Ssid_Password_List> ssid_password_list { get; set; }
  62. /// <summary>
  63. /// 设备密码,当设备类型为密码型时返回
  64. /// </summary>
  65. public string password { get; set; }
  66. /// <summary>
  67. /// 门店内设备的设备类型,0-未添加设备,4-密码型设备,31-portal型设备
  68. /// </summary>
  69. public int protocol_type { get; set; }
  70. /// <summary>
  71. /// 门店内设备总数
  72. /// </summary>
  73. public int ap_count { get; set; }
  74. /// <summary>
  75. /// 商家主页模板类型
  76. /// </summary>
  77. public int template_id { get; set; }
  78. /// <summary>
  79. /// 商家主页链接
  80. /// </summary>
  81. public string homepage_url { get; set; }
  82. /// <summary>
  83. /// 顶部常驻入口上显示的文本内容:0--欢迎光临+公众号名称;1--欢迎光临+门店名称;2--已连接+公众号名称+WiFi;3--已连接+门店名称+Wi-Fi
  84. /// </summary>
  85. public int bar_type { get; set; }
  86. /// <summary>
  87. /// 商户自己的id,与门店poi_id对应关系,建议在添加门店时候建立关联关系,具体请参考“微信门店接口”
  88. /// </summary>
  89. public string sid { get; set; }
  90. /// <summary>
  91. /// 门店ID(适用于微信卡券、微信门店业务),具体定义参考微信门店,与shop_id一一对应。
  92. /// </summary>
  93. public string poi_id { get; set; }
  94. /// <summary>
  95. /// 商家主页(bar条)跳转的小程序原始id,template_id为2时有效
  96. /// </summary>
  97. public string homepage_wxa_user_name { get; set; }
  98. /// <summary>
  99. /// 商家主页(bar条)跳转的小程序路径,template_id为2时有效
  100. /// </summary>
  101. public string homepage_wxa_path { get; set; }
  102. /// <summary>
  103. /// 连网完成页链接
  104. /// </summary>
  105. public string finishpage_url { get; set; }
  106. /// <summary>
  107. /// 完成页跳转的小程序原始id,finishpage_type为1时有效
  108. /// </summary>
  109. public string finishpage_wxa_user_name { get; set; }
  110. /// <summary>
  111. /// 完成页跳转的小程序路径,需要做urlencode,finishpage_type为1时有效
  112. /// </summary>
  113. public string finishpage_wxa_path { get; set; }
  114. /// <summary>
  115. /// 完成页跳转类型 0为H5;1为小程序
  116. /// </summary>
  117. public int finishpage_type { get; set; }
  118. }
  119. }