package com.weikou.beibeivideo.entity.recommend;
|
|
import com.weikou.beibeivideo.entity.HomeAd;
|
import com.weikou.beibeivideo.entity.HomeType;
|
import com.weikou.beibeivideo.entity.ad.ExpressAdContainer;
|
|
import java.util.List;
|
|
/**
|
* 推荐内容
|
*/
|
public class RecommendContent {
|
public final static int TYPE_BANNER = 1;
|
public final static int TYPE_AD = 2;
|
public final static int TYPE_HOMETYPE = 3;
|
|
private int type;
|
private List<HomeAd> homeBannerList;
|
private HomeType homeType;
|
private ExpressAdContainer ad;
|
|
public RecommendContent(int type, List<HomeAd> homeBannerList) {
|
this.type = type;
|
this.homeBannerList = homeBannerList;
|
}
|
|
public RecommendContent(int type, HomeType homeType) {
|
this.type = type;
|
this.homeType = homeType;
|
}
|
|
public RecommendContent(int type, ExpressAdContainer ad) {
|
this.type = type;
|
this.ad = ad;
|
}
|
|
public static RecommendContent createBanner(List<HomeAd> homeBannerList) {
|
return new RecommendContent(RecommendContent.TYPE_BANNER, homeBannerList);
|
}
|
|
public static RecommendContent createHomeType( HomeType homeType) {
|
return new RecommendContent(RecommendContent.TYPE_HOMETYPE, homeType);
|
}
|
|
public static RecommendContent createAd( ExpressAdContainer ad) {
|
return new RecommendContent(RecommendContent.TYPE_AD, ad);
|
}
|
|
public int getType() {
|
return type;
|
}
|
|
public void setType(int type) {
|
this.type = type;
|
}
|
|
public List<HomeAd> getHomeBannerList() {
|
return homeBannerList;
|
}
|
|
public void setHomeBannerList(List<HomeAd> homeBannerList) {
|
this.homeBannerList = homeBannerList;
|
}
|
|
public ExpressAdContainer getAd() {
|
return ad;
|
}
|
|
public void setAd(ExpressAdContainer ad) {
|
this.ad = ad;
|
}
|
|
public HomeType getHomeType() {
|
return homeType;
|
}
|
|
public void setHomeType(HomeType homeType) {
|
this.homeType = homeType;
|
}
|
}
|