me.chanjar.weixin.mp.bean.WxMpTemplateMessage Maven / Gradle / Ivy
package me.chanjar.weixin.mp.bean;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class WxMpTemplateMessage implements Serializable {
private String toUser;
private String templateId;
private String url;
private String topColor;
private List data = new ArrayList();
public String getToUser() {
return toUser;
}
public void setToUser(String toUser) {
this.toUser = toUser;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getTopColor() {
return topColor;
}
public void setTopColor(String topColor) {
this.topColor = topColor;
}
public List getData() {
return data;
}
public void setData(List data) {
this.data = data;
}
public void addWxMpTemplateData(WxMpTemplateData datum) {
this.data.add(datum);
}
public String toJson() {
return WxMpGsonBuilder.INSTANCE.create().toJson(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy