All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.riversoft.weixin.common.media.MpNews Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
package com.riversoft.weixin.common.media;

import com.fasterxml.jackson.annotation.JsonProperty;

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;
    }

    @JsonProperty("news_item")
    public void setItems(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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy