package com.tejia.lijin.app.entity.trends;
|
|
import com.tejia.lijin.app.entity.HomeBanner;
|
import com.tejia.lijin.app.entity.SpecialOffer2;
|
|
import java.util.List;
|
|
public class CollegeContent {
|
public final static int TYPE_BANNER = 1;
|
public final static int TYPE_SEARCH = 2;
|
public final static int TYPE_SPECIAL = 3;
|
public final static int TYPE_ARTICLE = 4;
|
private int type;
|
private CollegeArticle collegeArticle;
|
private List<HomeBanner> bannerList;
|
private List<SpecialOffer2> specialList;
|
|
public int getType() {
|
return type;
|
}
|
|
public void setType(int type) {
|
this.type = type;
|
}
|
|
public CollegeArticle getCollegeArticle() {
|
return collegeArticle;
|
}
|
|
public void setCollegeArticle(CollegeArticle collegeArticle) {
|
this.collegeArticle = collegeArticle;
|
}
|
|
public List<HomeBanner> getBannerList() {
|
return bannerList;
|
}
|
|
public void setBannerList(List<HomeBanner> bannerList) {
|
this.bannerList = bannerList;
|
}
|
|
public List<SpecialOffer2> getSpecialList() {
|
return specialList;
|
}
|
|
public void setSpecialList(List<SpecialOffer2> specialList) {
|
this.specialList = specialList;
|
}
|
|
public static CollegeContent createBannerList(List<HomeBanner> bannerList) {
|
CollegeContent content = new CollegeContent();
|
content.setBannerList(bannerList);
|
content.setType(TYPE_BANNER);
|
return content;
|
}
|
|
public static CollegeContent createSpecialList(List<SpecialOffer2> specialList) {
|
CollegeContent content = new CollegeContent();
|
content.setSpecialList(specialList);
|
content.setType(TYPE_SPECIAL);
|
return content;
|
}
|
|
public static CollegeContent createArticle(CollegeArticle article) {
|
CollegeContent content = new CollegeContent();
|
content.setCollegeArticle(article);
|
content.setType(TYPE_ARTICLE);
|
return content;
|
}
|
|
public static CollegeContent createSearch() {
|
CollegeContent content = new CollegeContent();
|
content.setType(TYPE_SEARCH);
|
return content;
|
}
|
|
}
|