
top.hmtools.wxmp.message.reply.model.ReplyNewsMessage Maven / Gradle / Ivy
The newest version!
package top.hmtools.wxmp.message.reply.model;
import java.util.List;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import top.hmtools.wxmp.core.model.message.BaseMessage;
/**
* 回复图文消息
* {@code
*
12345678
1
-
* }
* @author hybo
*
*/
public class ReplyNewsMessage extends BaseMessage {
/**
*
*/
private static final long serialVersionUID = -7854301878376985670L;
/**
* 图文消息个数;当用户发送文本、图片、视频、图文、地理位置这五种消息时,开发者只能回复1条图文消息;其余场景最多可回复8条图文消息
*/
@XStreamAlias("ArticleCount")
private int articleCount;
/**
* 图文消息信息,注意,如果图文数超过限制,则将只发限制内的条数
*/
private List Articles;
public int getArticleCount() {
if(this.Articles!=null){
return this.Articles.size();
}else{
return -1;
}
}
public void setArticleCount(int articleCount) {
this.articleCount = articleCount;
}
public List getArticles() {
return Articles;
}
public void setArticles(List articles) {
Articles = articles;
if(this.Articles != null){
this.articleCount = this.Articles.size();
}
}
public static long getSerialversionuid() {
return serialVersionUID;
}
@Override
public void configXStream(XStream xStream) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy