com.firefly.wechat.model.message.VoiceMessage 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 VoiceMessage extends CommonMessage {
@JacksonXmlCData
@JacksonXmlProperty(localName = "MediaId")
private String mediaId;
public String getMediaId() {
return mediaId;
}
public void setMediaId(String mediaId) {
this.mediaId = mediaId;
}
@Override
public String toString() {
return "VoiceMessage{" +
"mediaId='" + mediaId + '\'' +
", url='" + url + '\'' +
", toUserName='" + toUserName + '\'' +
", fromUserName='" + fromUserName + '\'' +
", createTime=" + createTime +
", msgType='" + msgType + '\'' +
", msgId=" + msgId +
'}';
}
}