com.firefly.wechat.model.message.LinkMessage Maven / Gradle / Ivy
package com.firefly.wechat.model.message;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
/**
* @author Pengtao Qiu
*/
@JacksonXmlRootElement(localName = "xml")
public class LinkMessage extends CommonMessage {
@JacksonXmlCData
@JacksonXmlProperty(localName = "Title")
private String title;
@JacksonXmlCData
@JacksonXmlProperty(localName = "Description")
private String description;
@JacksonXmlCData
@JacksonXmlProperty(localName = "Url")
private String url;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String getUrl() {
return url;
}
@Override
public void setUrl(String url) {
this.url = url;
}
@Override
public String toString() {
return "LinkMessage{" +
"title='" + title + '\'' +
", description='" + description + '\'' +
", url='" + url + '\'' +
", url='" + url + '\'' +
", toUserName='" + toUserName + '\'' +
", fromUserName='" + fromUserName + '\'' +
", createTime=" + createTime +
", msgType='" + msgType + '\'' +
", msgId=" + msgId +
'}';
}
}