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;
|
}
|
}
|