admin
2021-03-30 9acd7120f0943614ceb990af5124e0f907ef8f93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.weikou.beibeivideo.entity.video;
 
import com.weikou.beibeivideo.entity.VideoInfo;
import com.weikou.beibeivideo.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;
    }
}