Semantic_NearByResult.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. 文件名:Semantic_NearByResult.cs
  17. 文件功能描述:语意理解接口周边服务(nearby)返回信息
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. ----------------------------------------------------------------*/
  22. namespace Senparc.Weixin.MP.AdvancedAPIs.Semantic
  23. {
  24. /// <summary>
  25. /// 周边服务(nearby)
  26. /// 注:service字段表示是否是服务类,比如:找家政、租房、招聘等即为服务类;找ATM、羽毛球馆等即为非服务类。
  27. /// </summary>
  28. public class Semantic_NearByResult : BaseSemanticResultJson
  29. {
  30. public Semantic_NearBy semantic { get; set; }
  31. }
  32. public class Semantic_NearBy : BaseSemanticIntent
  33. {
  34. public Semantic_Details_NearBy details { get; set; }
  35. /// <summary>
  36. /// SEARCH 普通查询
  37. /// </summary>
  38. public string intent { get; set; }
  39. }
  40. public class Semantic_Details_NearBy
  41. {
  42. /// <summary>
  43. /// 地点
  44. /// </summary>
  45. public Semantic_Location location { get; set; }
  46. /// <summary>
  47. /// 关键词
  48. /// </summary>
  49. public string keyword { get; set; }
  50. /// <summary>
  51. /// 限定词
  52. /// </summary>
  53. public string limit { get; set; }
  54. /// <summary>
  55. /// 价格(单位元)
  56. /// </summary>
  57. public Semantic_Number price { get; set; }
  58. /// <summary>
  59. /// 距离(单位米)
  60. /// </summary>
  61. public Semantic_Number radius { get; set; }
  62. /// <summary>
  63. /// 是否是服务类:0不是(默认),1是
  64. /// </summary>
  65. public int service { get; set; }
  66. /// <summary>
  67. /// 优惠信息:0无(默认),1优惠券,2团购
  68. /// </summary>
  69. public int coupon { get; set; }
  70. /// <summary>
  71. /// 排序类型:0距离(默认),1点评高优先级,2服务质量高优先级,3环境高优先级,4价格高到低,5价格低到高
  72. /// </summary>
  73. public int sort { get; set; }
  74. }
  75. }