admin
2022-08-09 399ac289f80b7a40aa4210341db6b447cacdcf14
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
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;
    }
 
}