package cn.miw.android.xsparse;
import java.util.List;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
/**
* 歌曲信息,注解方式
* @author 蜜我
* 网站 http://apk.miw.cn
* 微博 http://www.weibo.com/askmiw
* 下午6:53:39
*/
@XStreamAlias("result")
public class ASong {
private int count;
@XStreamImplicit
private List<UrlA> urls;
// @XStreamImplicit
// private List<P2p> p2ps;
public int getCount() {
return count;
}
public ASong() {
super();
// TODO Auto-generated constructor stub
}
public ASong(int count, List<UrlA> urls) {
super();
this.count = count;
this.urls = urls;
}
public void setCount(int count) {
this.count = count;
}
public List<UrlA> getUrls() {
return urls;
}
public void setUrls(List<UrlA> urls) {
this.urls = urls;
}
@Override
public String toString() {
return "ASong [count=" + count + ", urls=" + urls + "]";
}
@XStreamAlias("durl")
public class UrlB {
private String encode;
private String decode;
private String type;
private String lrcid;
private String flag;
public UrlB() {
super();
// TODO Auto-generated constructor stub
}
public UrlB(String encode, String decode, String type, String lrcid, String flag) {
super();
this.encode = encode;
this.decode = decode;
this.type = type;
this.lrcid = lrcid;
this.flag = flag;
}
public String getEncode() {
return encode;
}
public void setEncode(String encode) {
this.encode = encode;
}
public String getDecode() {
return decode;
}
public void setDecode(String decode) {
this.decode = decode;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getLrcid() {
return lrcid;
}
public void setLrcid(String lrcid) {
this.lrcid = lrcid;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
@Override
public String toString() {
return "UrlB [encode=" + encode + ", decode=" + decode + ", type=" + type + ", lrcid=" + lrcid + ", flag=" + flag + "]";
}
}
@XStreamAlias("p2p")
public class P2p {
private String hash;
private String url;
private String type;
private String size;
private String bitrate;
public P2p() {
super();
// TODO Auto-generated constructor stub
}
public P2p(String hash, String url, String type, String size, String bitrate) {
super();
this.hash = hash;
this.url = url;
this.type = type;
this.size = size;
this.bitrate = bitrate;
}
public String getHash() {
return hash;
}
public void setHash(String hash) {
this.hash = hash;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getSize() {
return size;
}
public void setSize(String size) {
this.size = size;
}
public String getBitrate() {
return bitrate;
}
public void setBitrate(String bitrate) {
this.bitrate = bitrate;
}
@Override
public String toString() {
return "P2p [hash=" + hash + ", url=" + url + ", type=" + type + ", size=" + size + ", bitrate=" + bitrate + "]";
}
}
}
- 1
- 2
- 3
前往页