lmw
2023-06-06 7a563b559c48b9b339784c25fc5f0adc2ab5154e
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.sinata.download.entity;
 
 
/**
 * author:Created by ZHT on 2017/12/26 16:25
 * email:526309416@qq.com
 * desc:版本
 */
public class Version {
 
    private long versionId;
 
    private int type;//平台类型
 
    private String releaseCode;//最新版本
 
    private boolean mandatory;//是否强制升级
 
    private int isNew;//是否是最新版本(1是;2否)
 
    private String url;//下载地址
 
    private String tipsTime;
 
    private String tipsData;
 
    public long getVersionId() {
        return versionId;
    }
 
    public int getType() {
        return type;
    }
 
    public String getReleaseCode() {
        return releaseCode;
    }
 
    public boolean isMandatory() {
        return mandatory;
    }
 
    public int getIsNew() {
        return isNew;
    }
 
    public String getUrl() {
        return url;
    }
 
    public String getTipsTime() {
        return tipsTime;
    }
 
    public String getTipsData() {
        return tipsData;
    }
 
    public static class Builder {
 
        private final Version version;
 
        public Builder() {
            version = new Version();
        }
 
        public Builder setVersionId(long versionId) {
            version.versionId = versionId;
            return this;
        }
 
        public Builder setType(int type) {
            version.type = type;
            return this;
        }
 
        public Builder setReleaseCode(String releaseCode) {
            version.releaseCode = releaseCode;
            return this;
        }
 
        public Builder setMandatory(boolean mandatory) {
            version.mandatory = mandatory;
            return this;
        }
 
        public Builder setIsNew(int isNew) {
            version.isNew = isNew;
            return this;
        }
 
        public Builder setUrl(String url) {
            version.url = url;
            return this;
        }
 
        public Builder setTipsTime(String tipsTime) {
            version.tipsTime = tipsTime;
            return this;
        }
 
        public Builder setTipsData(String tipsData) {
            version.tipsData = tipsData;
            return this;
        }
 
        public Version build() {
            return version;
        }
    }
}