Semantic_StockResult.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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_StockResult.cs
  17. 文件功能描述:语意理解接口股票服务(stock)返回信息
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. ----------------------------------------------------------------*/
  22. using System.Collections.Generic;
  23. namespace Senparc.Weixin.MP.AdvancedAPIs.Semantic
  24. {
  25. /// <summary>
  26. /// 股票服务(stock)
  27. /// 注:1、币种单位同上市所在地;2、如果用户输入的时间是未来的时间,那么结果展示的是当前时间的信息。
  28. /// </summary>
  29. public class Semantic_StockResult : BaseSemanticResultJson
  30. {
  31. public Semantic_Stock semantic { get; set; }
  32. }
  33. public class Semantic_Stock : BaseSemanticIntent
  34. {
  35. public Semantic_Details_Stock details { get; set; }
  36. public List<Semantic_Stock_Result> result { get; set; }
  37. }
  38. public class Semantic_Details_Stock
  39. {
  40. /// <summary>
  41. /// 股票名称
  42. /// </summary>
  43. public string name { get; set; }
  44. /// <summary>
  45. /// 标准股票代码
  46. /// </summary>
  47. public string code { get; set; }
  48. /// <summary>
  49. /// 市场:sz,sh,hk,us
  50. /// </summary>
  51. public string category { get; set; }
  52. /// <summary>
  53. /// 时间
  54. /// </summary>
  55. public Semantic_DateTime datetime { get; set; }
  56. }
  57. public class Semantic_Stock_Result
  58. {
  59. /// <summary>
  60. /// 股票代码
  61. /// </summary>
  62. public string cd { get; set; }
  63. /// <summary>
  64. /// 当前价
  65. /// </summary>
  66. public string np { get; set; }
  67. /// <summary>
  68. /// 涨幅
  69. /// </summary>
  70. public string ap { get; set; }
  71. /// <summary>
  72. /// 涨幅比例
  73. /// </summary>
  74. public string apn { get; set; }
  75. /// <summary>
  76. /// 最高价
  77. /// </summary>
  78. public string tp_max { get; set; }
  79. /// <summary>
  80. /// 最低价
  81. /// </summary>
  82. public string tp_min { get; set; }
  83. /// <summary>
  84. /// 成交量(单位:万)
  85. /// </summary>
  86. public string dn { get; set; }
  87. /// <summary>
  88. /// 成交额(单位:亿)
  89. /// </summary>
  90. public string de { get; set; }
  91. /// <summary>
  92. /// 市盈率
  93. /// </summary>
  94. public string pe { get; set; }
  95. /// <summary>
  96. /// 市值(单位:亿)
  97. /// </summary>
  98. public string sz { get; set; }
  99. }
  100. }