GetShakeInfoResultJson.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. 文件名:GetShakeInfoResultJson.cs
  17. 文件功能描述:获取摇周边的设备及用户信息返回结果
  18. 创建标识:Senparc - 20150512
  19. ----------------------------------------------------------------*/
  20. using Senparc.Weixin.Entities;
  21. namespace Senparc.Weixin.MP.AdvancedAPIs.ShakeAround
  22. {
  23. /// <summary>
  24. /// 获取摇周边的设备及用户信息返回结果
  25. /// </summary>
  26. public class GetShakeInfoResultJson : WxJsonResult
  27. {
  28. /// <summary>
  29. /// 获取摇周边的设备及用户信息返回数据
  30. /// </summary>
  31. public ShakeInfo_Data data { get; set; }
  32. }
  33. public class ShakeInfo_Data
  34. {
  35. /// <summary>
  36. /// 摇周边页面唯一ID
  37. /// </summary>
  38. public string page_id { get; set; }
  39. /// <summary>
  40. /// 设备信息,包括UUID、major、minor,以及距离
  41. /// </summary>
  42. public ShakeInfo_Data_Beacon_Info beacon_info { get; set; }
  43. /// <summary>
  44. /// 商户AppID下用户的唯一标识
  45. /// </summary>
  46. public string openid { get; set; }
  47. /// <summary>
  48. /// 门店ID,有的话则返回,反之不会在JSON格式内
  49. /// </summary>
  50. public long poi_id { get; set; }
  51. }
  52. public class ShakeInfo_Data_Beacon_Info
  53. {
  54. /// <summary>
  55. /// Beacon信号与手机的距离,单位为米
  56. /// </summary>
  57. public double distance { get; set; }
  58. public long major { get; set; }
  59. public long minor { get; set; }
  60. public string uuid { get; set; }
  61. }
  62. }