weixin.popular.bean.message.message.Message Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin-popular Show documentation
Show all versions of weixin-popular Show documentation
The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.
package weixin.popular.bean.message.message;
public abstract class Message {
public Message() {
super();
}
protected Message(String touser,String msgtype) {
super();
this.touser = touser;
this.msgtype = msgtype;
}
private String touser;
private String msgtype;
private Customservice customservice; //如果需要以某个客服帐号来发消息(在微信6.0.2及以上版本中显示自定义头像),则需在JSON数据包的后半部分加入customservice参数,例如发送文本消息则改为:
public String getTouser() {
return touser;
}
public void setTouser(String touser) {
this.touser = touser;
}
public String getMsgtype() {
return msgtype;
}
protected void setMsgtype(String msgtype) {
this.msgtype = msgtype;
}
public Customservice getCustomservice() {
return customservice;
}
public void setCustomservice(Customservice customservice) {
this.customservice = customservice;
}
public static class Customservice{
private String kf_account;
public String getKf_account() {
return kf_account;
}
public void setKf_account(String kf_account) {
this.kf_account = kf_account;
}
}
}