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

cn.ipokerface.weixin.model.media.Article Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.ipokerface.weixin.model.media;

import com.alibaba.fastjson.annotation.JSONCreator;
import com.alibaba.fastjson.annotation.JSONField;

import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;

/**
 * Created by       PokerFace
 * Create Date      2019-12-28.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: */ public class Article implements Serializable { private static final long serialVersionUID = -1231352700301456395L; /** * 图文消息标题 */ @XmlElement(name = "Title") private String title; /** * 图文消息描述 */ @JSONField(name = "description") @XmlElement(name = "Description") private String desc; /** * 图片链接,支持JPG、PNG格式,较好的效果为大图360*200,小图200*200 */ @JSONField(name = "picurl") @XmlElement(name = "PicUrl") private String picUrl; /** * 点击图文消息跳转链接 */ @XmlElement(name = "Url") private String url; /** * * @param title * 标题 * @param desc * 描述 * @param picUrl * 图片链接 * @param url * 跳转URL */ @JSONCreator public Article(@JSONField(name = "title") String title, @JSONField(name = "desc") String desc, @JSONField(name = "picUrl") String picUrl, @JSONField(name = "url") String url) { this.title = title; this.desc = desc; this.picUrl = picUrl; this.url = url; } public String getTitle() { return title; } public String getDesc() { return desc; } public String getPicUrl() { return picUrl; } public String getUrl() { return url; } @Override public String toString() { return "Article [title=" + title + ", desc=" + desc + ", picUrl=" + picUrl + ", url=" + url + "]"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy