BaseGroupMessageDataPreview.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. 文件名:BaseGroupMessageDataPreview.cs
  17. 文件功能描述:预览群发所需的数据
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. 修改标识:Senparc - 20150702
  22. 修改描述:修改结构,可根据微信号预览群发消息
  23. ----------------------------------------------------------------*/
  24. namespace Senparc.Weixin.MP.AdvancedAPIs.GroupMessage
  25. {
  26. public class BaseGroupMessageDataPreview
  27. {
  28. /// <summary>
  29. /// OpenId
  30. /// </summary>
  31. public string touser { get; set; }
  32. /// <summary>
  33. /// 微信号
  34. /// </summary>
  35. public string towxname { get; set; }
  36. /// <summary>
  37. /// 消息类型
  38. /// </summary>
  39. public string msgtype { get; set; }
  40. }
  41. public class GroupMessagePreview_MediaId
  42. {
  43. public string media_id { get; set; }
  44. }
  45. public class GroupMessagePreview_Content
  46. {
  47. public string content { get; set; }
  48. }
  49. public class GroupMessagePreview_WxCard
  50. {
  51. public string card_id { get; set; }
  52. public string card_ext { get; set; }
  53. }
  54. public class GroupMessagePreview_VoiceData : BaseGroupMessageDataPreview
  55. {
  56. public GroupMessagePreview_MediaId voice { get; set; }
  57. }
  58. public class GroupMessagePreview_ImageData : BaseGroupMessageDataPreview
  59. {
  60. public GroupMessagePreview_MediaId image { get; set; }
  61. }
  62. public class GroupMessagePreview_TextData : BaseGroupMessageDataPreview
  63. {
  64. public GroupMessagePreview_Content text { get; set; }
  65. }
  66. public class GroupMessagePreview_MpNewsData : BaseGroupMessageDataPreview
  67. {
  68. public GroupMessagePreview_MediaId mpnews { get; set; }
  69. }
  70. public class GroupMessagePreview_MpVideoData : BaseGroupMessageDataPreview
  71. {
  72. public GroupMessagePreview_MediaId mpvideo { get; set; }
  73. }
  74. public class GroupMessagePreview_WxCardData : BaseGroupMessageDataPreview
  75. {
  76. public GroupMessagePreview_WxCard wxcard { get; set; }
  77. }
  78. }