package com.gustz.dove.cli.api.message.rsp;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gustz.dove.cli.api.service.util.CDataJaxbAdapter;
import com.gustz.dove.cli.api.service.dict.MsgTypeDict;
/**
*
* TODO: 音乐响应报文
*
* @author ZHENFENG ZHANG
* @since [ Aug 3, 2015 ]
*/
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class MusicMsgRsp extends MsgBaseRsp<MusicMsgRsp> {
private static final long serialVersionUID = 1L;
/**
* 音乐名称
*/
@XmlJavaTypeAdapter(CDataJaxbAdapter.class)
@XmlElement(name = "Title")
@JsonProperty("Title")
private String title;
/**
* 音乐描述
*/
@XmlJavaTypeAdapter(CDataJaxbAdapter.class)
@XmlElement(name = "Description")
@JsonProperty("Description")
private String desc;
/**
* 音乐链接
*/
@XmlJavaTypeAdapter(CDataJaxbAdapter.class)
@XmlElement(name = "MusicUrl")
@JsonProperty("MusicUrl")
private String musicUrl;
/**
* 高质量音乐链接,WIFI环境优先使用该链接播放音乐。
*/
@XmlJavaTypeAdapter(CDataJaxbAdapter.class)
@XmlElement(name = "HQMusicUrl")
@JsonProperty("HQMusicUrl")
private String hQMusicUrl;
/**
* 缩略图的媒体id,通过上传多媒体文件。
*/
@XmlJavaTypeAdapter(CDataJaxbAdapter.class)
@XmlElement(name = "ThumbMediaId")
@JsonProperty("ThumbMediaId")
private String thumbMediaId;
public MusicMsgRsp() {
super();
super.setMsgType(MsgTypeDict.MUSIC);
}
public MusicMsgRsp(String title, String desc, String musicUrl, String hQMusicUrl, String thumbMediaId) {
super();
this.title = title;
this.desc = desc;
this.musicUrl = musicUrl;
this.hQMusicUrl = hQMusicUrl;
this.thumbMediaId = thumbMediaId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getMusicUrl() {
return musicUrl;
}
public void setMusicUrl(String musicUrl) {
this.musicUrl = musicUrl;
}
public String gethQMusicUrl() {
return hQMusicUrl;
}
public void sethQMusicUrl(String hQMusicUrl) {
this.hQMusicUrl = hQMusicUrl;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public String getThumbMediaId() {
return thumbMediaId;
}
public void setThumbMediaId(String thumbMediaId) {
this.thumbMediaId = thumbMediaId;
}
}