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

com.riversoft.weixin.common.message.News Maven / Gradle / Ivy

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

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by exizhai on 9/26/2015.
 */
public class News implements Serializable {

    @JacksonXmlProperty(localName = "item")
    @JacksonXmlElementWrapper(useWrapping = false)
    private List
articles = new ArrayList<>(); public List
getArticles() { return articles; } public void setArticles(List
articles) { this.articles = articles; } public void add(Article article) { this.getArticles().add(article); } public News article(Article article) { this.getArticles().add(article); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy