|
|
|
|
@ -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 Style getStyle(Style style) { |
|
|
|
|
return getStyle() != null ? getStyle() : style != null ? style : Style.rect(); |
|
|
|
|
} |
|
|
|
|
@ -299,6 +310,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); |
|
|
|
|
@ -322,6 +334,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(); |
|
|
|
|
|