BaseGroupMessageDataByOpenId.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. 文件名:BaseGroupMessageDataByOpenId.cs
  17. 文件功能描述:根据OpenId群发所需的数据
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. 修改标识:Senparc - 2011224
  22. 修改描述:v14.8.12 完成群发接口添加clientmsgid属性
  23. ----------------------------------------------------------------*/
  24. namespace Senparc.Weixin.MP.AdvancedAPIs.GroupMessage
  25. {
  26. public class BaseGroupMessageDataByOpenId
  27. {
  28. public string[] touser { get; set; }
  29. public string msgtype { get; set; }
  30. /// <summary>
  31. /// (非必填)开发者侧群发msgid,长度限制64字节,如不填,则后台默认以群发范围和群发内容的摘要值做为clientmsgid
  32. /// </summary>
  33. public string clientmsgid { get; set; }
  34. }
  35. public class GroupMessageByOpenId_MediaId
  36. {
  37. public string media_id { get; set; }
  38. }
  39. public class GroupMessageByOpenId_Content
  40. {
  41. public string content { get; set; }
  42. }
  43. public class GroupMessageByOpenId_Video
  44. {
  45. public string title { get; set; }
  46. public string media_id { get; set; }
  47. public string description { get; set; }
  48. }
  49. public class GroupMessageByOpenId_WxCard
  50. {
  51. public string card_id { get; set; }
  52. }
  53. public class GroupMessageByOpenId_VoiceData : BaseGroupMessageDataByOpenId
  54. {
  55. public GroupMessageByOpenId_MediaId voice { get; set; }
  56. }
  57. public class GroupMessageByOpenId_ImageData : BaseGroupMessageDataByOpenId
  58. {
  59. public GroupMessageByOpenId_MediaId image { get; set; }
  60. }
  61. public class GroupMessageByOpenId_TextData : BaseGroupMessageDataByOpenId
  62. {
  63. public GroupMessageByOpenId_Content text { get; set; }
  64. }
  65. public class GroupMessageByOpenId_MpNewsData : BaseGroupMessageDataByOpenId
  66. {
  67. public GroupMessageByOpenId_MediaId mpnews { get; set; }
  68. }
  69. public class GroupMessageByOpenId_MpVideoData : BaseGroupMessageDataByOpenId
  70. {
  71. public GroupMessageByOpenId_Video video { get; set; }
  72. }
  73. public class GroupMessageByOpenId_WxCardData : BaseGroupMessageDataByOpenId
  74. {
  75. public GroupMessageByOpenId_WxCard wxcard { get; set; }
  76. }
  77. }