package com.ysvideo.zhibo.app.entity.video;
|
|
|
import com.ysvideo.zhibo.app.entity.ad.ExpressAdContainer;
|
|
public class VideoContent {
|
public final static int TYPE_AD = 1;
|
public final static int TYPE_VIDEO = 2;
|
|
private int type;
|
|
private ExpressAdContainer ad;
|
private VideoInfo video;
|
|
|
public static VideoContent createVideoContent(VideoInfo video) {
|
VideoContent vc = new VideoContent();
|
vc.setType(TYPE_VIDEO);
|
vc.setVideo(video);
|
return vc;
|
}
|
|
|
public static VideoContent createAdContent(ExpressAdContainer ad) {
|
VideoContent vc = new VideoContent();
|
vc.setType(TYPE_AD);
|
vc.setAd(ad);
|
return vc;
|
}
|
|
public int getType() {
|
return type;
|
}
|
|
public void setType(int type) {
|
this.type = type;
|
}
|
|
public ExpressAdContainer getAd() {
|
return ad;
|
}
|
|
public void setAd(ExpressAdContainer ad) {
|
this.ad = ad;
|
}
|
|
public VideoInfo getVideo() {
|
return video;
|
}
|
|
public void setVideo(VideoInfo video) {
|
this.video = video;
|
}
|
}
|