dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.3 KiB

  1. package chanjarster.weixin.bean;
  2. import chanjarster.weixin.api.WxConsts;
  3. import chanjarster.weixin.util.json.WxGsonBuilder;
  4. /**
  5. * 分组群发的消息
  6. *
  7. * @author chanjarster
  8. */
  9. public class WxMassGroupMessage {
  10. private long group_id;
  11. private String msgtype;
  12. private String content;
  13. private String media_id;
  14. public WxMassGroupMessage() {
  15. super();
  16. }
  17. public String getMsgtype() {
  18. return msgtype;
  19. }
  20. /**
  21. * <pre>
  22. * 请使用
  23. * {@link WxConsts#MASS_MSG_IMAGE}
  24. * {@link WxConsts#MASS_MSG_NEWS}
  25. * {@link WxConsts#MASS_MSG_TEXT}
  26. * {@link WxConsts#MASS_MSG_VIDEO}
  27. * {@link WxConsts#MASS_MSG_VOICE}
  28. * 如果msgtype和media_id不匹配的话,会返回系统繁忙的错误
  29. * </pre>
  30. * @param msgtype
  31. */
  32. public void setMsgtype(String msgtype) {
  33. this.msgtype = msgtype;
  34. }
  35. public String getContent() {
  36. return content;
  37. }
  38. public void setContent(String content) {
  39. this.content = content;
  40. }
  41. public String getMedia_id() {
  42. return media_id;
  43. }
  44. public void setMedia_id(String media_id) {
  45. this.media_id = media_id;
  46. }
  47. public String toJson() {
  48. return WxGsonBuilder.INSTANCE.create().toJson(this);
  49. }
  50. public long getGroup_id() {
  51. return group_id;
  52. }
  53. public void setGroup_id(long group_id) {
  54. this.group_id = group_id;
  55. }
  56. }