com.riversoft.weixin.common.message.MpNews Maven / Gradle / Ivy
package com.riversoft.weixin.common.message;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Created by exizhai on 9/26/2015.
*/
public class MpNews implements Serializable {
private List articles = new ArrayList<>();
public List getArticles() {
return articles;
}
public void setArticles(List articles) {
this.articles = articles;
}
public void add(MpArticle mpArticle) {
this.getArticles().add(mpArticle);
}
public MpNews article(MpArticle article) {
this.getArticles().add(article);
return this;
}
}