11package me .chanjar .weixin .mp .bean ;
22
3- import java .io .Serializable ;
4-
53import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
64
5+ import java .io .Serializable ;
6+
77/**
88 * 按标签群发的消息
9- *
9+ *
1010 * @author chanjarster
1111 */
1212public class WxMpMassTagMessage implements Serializable {
13-
13+
1414 private static final long serialVersionUID = -6625914040986749286L ;
1515 private Long tagId ;
16- private String msgtype ;
16+ private String msgType ;
1717 private String content ;
1818 private String mediaId ;
19+ private boolean sendIgnoreReprint = false ;
1920
2021 public WxMpMassTagMessage () {
2122 super ();
2223 }
23-
24- public String getMsgtype () {
25- return this .msgtype ;
24+
25+ public String getMsgType () {
26+ return this .msgType ;
2627 }
2728
2829 /**
@@ -35,10 +36,11 @@ public String getMsgtype() {
3536 * {@link me.chanjar.weixin.common.api.WxConsts#MASS_MSG_VOICE}
3637 * 如果msgtype和media_id不匹配的话,会返回系统繁忙的错误
3738 * </pre>
38- * @param msgtype
39+ *
40+ * @param msgType 消息类型
3941 */
40- public void setMsgtype (String msgtype ) {
41- this .msgtype = msgtype ;
42+ public void setMsgType (String msgType ) {
43+ this .msgType = msgType ;
4244 }
4345
4446 public String getContent () {
@@ -67,10 +69,23 @@ public Long getTagId() {
6769
6870 /**
6971 * 如果不设置则就意味着发给所有用户
70- * @param tagId
72+ *
73+ * @param tagId 标签id
7174 */
7275 public void setTagId (Long tagId ) {
7376 this .tagId = tagId ;
7477 }
7578
79+ public boolean isSendIgnoreReprint () {
80+ return sendIgnoreReprint ;
81+ }
82+
83+ /**
84+ *
85+ * @param sendIgnoreReprint 文章被判定为转载时,是否继续进行群发操作。
86+ */
87+ public void setSendIgnoreReprint (boolean sendIgnoreReprint ) {
88+ this .sendIgnoreReprint = sendIgnoreReprint ;
89+ }
90+
7691}
0 commit comments