|
|
|
|
@ -73,6 +73,9 @@ public class Vod implements Parcelable { |
|
|
|
|
@SerializedName("vod_tag") |
|
|
|
|
private String vodTag; |
|
|
|
|
|
|
|
|
|
@SerializedName("action") |
|
|
|
|
private String action; |
|
|
|
|
|
|
|
|
|
@SerializedName("cate") |
|
|
|
|
private Cate cate; |
|
|
|
|
|
|
|
|
|
@ -167,6 +170,10 @@ public class Vod implements Parcelable { |
|
|
|
|
return TextUtils.isEmpty(vodTag) ? "" : vodTag; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getAction() { |
|
|
|
|
return TextUtils.isEmpty(action) ? "" : action; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Cate getCate() { |
|
|
|
|
return cate; |
|
|
|
|
} |
|
|
|
|
@ -231,6 +238,10 @@ public class Vod implements Parcelable { |
|
|
|
|
return "folder".equals(getVodTag()) || getCate() != null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isAction() { |
|
|
|
|
return !getAction().isEmpty(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isManga() { |
|
|
|
|
return "manga".equals(getVodTag()); |
|
|
|
|
} |
|
|
|
|
@ -303,6 +314,7 @@ public class Vod implements Parcelable { |
|
|
|
|
dest.writeString(this.vodPlayFrom); |
|
|
|
|
dest.writeString(this.vodPlayUrl); |
|
|
|
|
dest.writeString(this.vodTag); |
|
|
|
|
dest.writeString(this.action); |
|
|
|
|
dest.writeInt(this.land); |
|
|
|
|
dest.writeInt(this.circle); |
|
|
|
|
dest.writeFloat(this.ratio); |
|
|
|
|
@ -326,6 +338,7 @@ public class Vod implements Parcelable { |
|
|
|
|
this.vodPlayFrom = in.readString(); |
|
|
|
|
this.vodPlayUrl = in.readString(); |
|
|
|
|
this.vodTag = in.readString(); |
|
|
|
|
this.action = in.readString(); |
|
|
|
|
this.land = in.readInt(); |
|
|
|
|
this.circle = in.readInt(); |
|
|
|
|
this.ratio = in.readFloat(); |
|
|
|
|
|