admin
2021-04-20 e08fb55566539c5b0c489ab6f4b565454e2ae375
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package com.weikou.beibeivideo.entity.ad;
 
import com.weikou.beibeivideo.util.BeibeiConstant;
import com.weikou.beibeivideo.util.ad.AdUtil;
import com.weikou.beibeivideo.util.ad.GDTConstant;
 
import java.io.Serializable;
 
//视频前贴广告的配置信息
public class PlayVideoPreADSetting implements Serializable {
    private AdUtil.AD_TYPE adType;//csj或者gdt
    private String gdtAppId;//广点通的APPId
    private String gdtPid;//广点通的PID
    private String csjPid;//穿山甲的pid
 
    //是否需要显示激励视频提示
    private String otherAction;
 
 
    public PlayVideoPreADSetting(AdUtil.AD_TYPE adType, String gdtAppId, String gdtPid, String csjPid) {
        this.adType = adType;
        this.gdtAppId = gdtAppId;
        this.gdtPid = gdtPid;
        this.csjPid = csjPid;
    }
 
    public AdUtil.AD_TYPE getAdType() {
        return adType;
    }
 
    public void setAdType(AdUtil.AD_TYPE adType) {
        this.adType = adType;
    }
 
    public String getGdtAppId() {
        return gdtAppId;
    }
 
    public void setGdtAppId(String gdtAppId) {
        this.gdtAppId = gdtAppId;
    }
 
    public String getGdtPid() {
        return gdtPid;
    }
 
    public void setGdtPid(String gdtPid) {
        this.gdtPid = gdtPid;
    }
 
    public String getCsjPid() {
        return csjPid;
    }
 
    public void setCsjPid(String csjPid) {
        this.csjPid = csjPid;
    }
 
    public static class PlayVideoPreADSettingFactory {
        //默认广点通
        public static PlayVideoPreADSetting createDefault() {
            return new PlayVideoPreADSetting(AdUtil.AD_TYPE.gdt, BeibeiConstant.GDT_ID, GDTConstant.PID_VIDEO_DETAIL_PLAYER, null);
        }
 
        public static PlayVideoPreADSetting createGDT(String appId, String pid) {
            return new PlayVideoPreADSetting(AdUtil.AD_TYPE.gdt, appId, pid, null);
        }
 
    }
 
    public String getOtherAction() {
        return otherAction;
    }
 
    public void setOtherAction(String otherAction) {
        this.otherAction = otherAction;
    }
}