parent
eb4dba455d
commit
d8a2144468
@ -0,0 +1,109 @@ |
||||
package com.github.catvod.bean.bili; |
||||
|
||||
import android.text.TextUtils; |
||||
|
||||
import com.google.gson.JsonElement; |
||||
import com.google.gson.annotations.SerializedName; |
||||
|
||||
import java.util.Collections; |
||||
import java.util.List; |
||||
|
||||
public class Data { |
||||
|
||||
@SerializedName("result") |
||||
private JsonElement result; |
||||
@SerializedName("isLogin") |
||||
private Boolean isLogin; |
||||
@SerializedName("vipType") |
||||
private Integer vipType; |
||||
@SerializedName("qrcode_key") |
||||
private String qrcodeKey; |
||||
@SerializedName("url") |
||||
private String url; |
||||
@SerializedName("aid") |
||||
private String aid; |
||||
@SerializedName("cid") |
||||
private String cid; |
||||
@SerializedName("title") |
||||
private String title; |
||||
@SerializedName("tname") |
||||
private String tname; |
||||
@SerializedName("pic") |
||||
private String pic; |
||||
@SerializedName("duration") |
||||
private Long duration; |
||||
@SerializedName("desc") |
||||
private String desc; |
||||
@SerializedName("accept_description") |
||||
private List<String> acceptDescription; |
||||
@SerializedName("accept_quality") |
||||
private List<Integer> acceptQuality; |
||||
@SerializedName("pages") |
||||
private List<Page> pages; |
||||
@SerializedName("dash") |
||||
private Dash dash; |
||||
|
||||
public JsonElement getResult() { |
||||
return result; |
||||
} |
||||
|
||||
public boolean isLogin() { |
||||
return isLogin != null && isLogin; |
||||
} |
||||
|
||||
public int getVipType() { |
||||
return vipType == null ? 0 : vipType; |
||||
} |
||||
|
||||
public String getQrcodeKey() { |
||||
return TextUtils.isEmpty(qrcodeKey) ? "" : qrcodeKey; |
||||
} |
||||
|
||||
public String getUrl() { |
||||
return TextUtils.isEmpty(url) ? "" : url; |
||||
} |
||||
|
||||
public String getAid() { |
||||
return TextUtils.isEmpty(aid) ? "" : aid; |
||||
} |
||||
|
||||
public String getCid() { |
||||
return TextUtils.isEmpty(cid) ? "" : cid; |
||||
} |
||||
|
||||
public String getTitle() { |
||||
return TextUtils.isEmpty(title) ? "" : title; |
||||
} |
||||
|
||||
public String getType() { |
||||
return TextUtils.isEmpty(tname) ? "" : tname; |
||||
} |
||||
|
||||
public String getPic() { |
||||
return TextUtils.isEmpty(pic) ? "" : pic; |
||||
} |
||||
|
||||
public Long getDuration() { |
||||
return duration == null ? 0 : duration; |
||||
} |
||||
|
||||
public String getDesc() { |
||||
return TextUtils.isEmpty(desc) ? "" : desc; |
||||
} |
||||
|
||||
public List<String> getAcceptDescription() { |
||||
return acceptDescription == null ? Collections.emptyList() : acceptDescription; |
||||
} |
||||
|
||||
public List<Integer> getAcceptQuality() { |
||||
return acceptQuality == null ? Collections.emptyList() : acceptQuality; |
||||
} |
||||
|
||||
public List<Page> getPages() { |
||||
return pages == null ? Collections.emptyList() : pages; |
||||
} |
||||
|
||||
public Dash getDash() { |
||||
return dash == null ? new Dash() : dash; |
||||
} |
||||
} |
||||
@ -0,0 +1,79 @@ |
||||
package com.github.catvod.bean.bili; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
||||
public class Media { |
||||
|
||||
@SerializedName("id") |
||||
private String id; |
||||
@SerializedName("baseUrl") |
||||
private String baseUrl; |
||||
@SerializedName("bandwidth") |
||||
private String bandwidth; |
||||
@SerializedName("mimeType") |
||||
private String mimeType; |
||||
@SerializedName("codecs") |
||||
private String codecs; |
||||
@SerializedName("width") |
||||
private String width; |
||||
@SerializedName("height") |
||||
private String height; |
||||
@SerializedName("frameRate") |
||||
private String frameRate; |
||||
@SerializedName("sar") |
||||
private String sar; |
||||
@SerializedName("startWithSap") |
||||
private String startWithSap; |
||||
@SerializedName("SegmentBase") |
||||
private Segment segmentBase; |
||||
@SerializedName("codecid") |
||||
private String codecid; |
||||
|
||||
public String getId() { |
||||
return id; |
||||
} |
||||
|
||||
public String getBaseUrl() { |
||||
return baseUrl; |
||||
} |
||||
|
||||
public String getBandWidth() { |
||||
return bandwidth; |
||||
} |
||||
|
||||
public String getMimeType() { |
||||
return mimeType; |
||||
} |
||||
|
||||
public String getCodecs() { |
||||
return codecs; |
||||
} |
||||
|
||||
public String getWidth() { |
||||
return width; |
||||
} |
||||
|
||||
public String getHeight() { |
||||
return height; |
||||
} |
||||
|
||||
public String getFrameRate() { |
||||
return frameRate; |
||||
} |
||||
|
||||
public String getSar() { |
||||
return sar; |
||||
} |
||||
|
||||
public String getStartWithSap() { |
||||
return startWithSap; |
||||
} |
||||
|
||||
public Segment getSegmentBase() { |
||||
return segmentBase; |
||||
} |
||||
|
||||
public String getCodecId() { |
||||
return codecid; |
||||
} |
||||
} |
||||
@ -0,0 +1,21 @@ |
||||
package com.github.catvod.bean.bili; |
||||
|
||||
import android.text.TextUtils; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
||||
public class Page { |
||||
|
||||
@SerializedName("cid") |
||||
private String cid; |
||||
@SerializedName("part") |
||||
private String part; |
||||
|
||||
public String getCid() { |
||||
return TextUtils.isEmpty(cid) ? "" : cid; |
||||
} |
||||
|
||||
public String getPart() { |
||||
return TextUtils.isEmpty(part) ? "" : part; |
||||
} |
||||
} |
||||
@ -0,0 +1,19 @@ |
||||
package com.github.catvod.bean.bili; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
||||
public class Segment { |
||||
|
||||
@SerializedName("Initialization") |
||||
private String initialization; |
||||
@SerializedName("indexRange") |
||||
private String indexRange; |
||||
|
||||
public String getInitialization() { |
||||
return initialization; |
||||
} |
||||
|
||||
public String getIndexRange() { |
||||
return indexRange; |
||||
} |
||||
} |
||||
Binary file not shown.
@ -1 +1 @@ |
||||
3cc1dc85dad21ad4f41ad8f5139a205e |
||||
1a95a254c163853dc114032bdc5423a2 |
||||
|
||||
Loading…
Reference in new issue