AppPatch.java
4.54 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
package com.diligrp.mobsite.man.domain;
import com.diligrp.website.util.domain.BaseDomain;
/**
*
* @ClassName: AppPatch
* @Description:
* @author zhangshirui
* @date 2014年8月8日 上午11:34:55
*/
@SuppressWarnings("serial")
public class AppPatch extends BaseDomain{
/**
* 是否强制升级
* 1 - 可升级,2 - 强制升级
*/
public static final Integer FORCE_NO = 2;
/**
* 2 - 强制升级
*/
public static final Integer FORCE_YES = 1;
/**
* 设备类型
* 1 - 所有设备,2 - ANDROID,3 - IOS
*/
public static final Integer DEVICE_ALL = 1;
/**
* 2 - ANDROID
*/
public static final Integer DEVICE_ANDROID= 2;
/**
* 3 - IOS
*/
public static final Integer DEVICE_IOS = 3;
/**
* 起始版本安装包地址
*/
private String sourceUrl;
/**
* 目标版本安装包地址
*/
private String desUrl;
/**
* 补丁版本安装包地址
*/
private String patchUrl;
/**
* 目标版本id
*/
private Long versionDesId;
/**
* 目标版本号
*/
private String versionDesNo;
/**
* 起始版本id
*/
private Long versionSourceId;
/**
* 起始版本号
*/
private String versionSourceNo;
/**
* 强制升级标志
* 是:1,否:2
*/
private Integer forceFlag;
/**
* 设备类型
*
*/
private Integer deviceType;
/**
* 系统类型
*/
private String systemType;
/**
* 增量更新描述
*/
private String description;
/**
* md5值
*/
private String md5;
/**
* 创建者
*/
private Long creatorId;
public String getSourceUrl() {
return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
public String getDesUrl() {
return desUrl;
}
public void setDesUrl(String desUrl) {
this.desUrl = desUrl;
}
public String getPatchUrl() {
return patchUrl;
}
public void setPatchUrl(String patchUrl) {
this.patchUrl = patchUrl;
}
public Long getVersionDesId() {
return versionDesId;
}
public void setVersionDesId(Long versionDesId) {
this.versionDesId = versionDesId;
}
public String getVersionDesNo() {
return versionDesNo;
}
public void setVersionDesNo(String versionDesNo) {
this.versionDesNo = versionDesNo;
}
public Long getVersionSourceId() {
return versionSourceId;
}
public void setVersionSourceId(Long versionSourceId) {
this.versionSourceId = versionSourceId;
}
public String getVersionSourceNo() {
return versionSourceNo;
}
public void setVersionSourceNo(String versionSourceNo) {
this.versionSourceNo = versionSourceNo;
}
public Integer getForceFlag() {
return forceFlag;
}
public void setForceFlag(Integer forceFlag) {
this.forceFlag = forceFlag;
}
public Integer getDeviceType() {
return deviceType;
}
public void setDeviceType(Integer deviceType) {
this.deviceType = deviceType;
}
public String getSystemType() {
return systemType;
}
public void setSystemType(String systemType) {
this.systemType = systemType;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Long getCreatorId() {
return creatorId;
}
public void setCreatorId(Long creatorId) {
this.creatorId = creatorId;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("AppVersion [sourceUrl=");
builder.append(sourceUrl);
builder.append(", desUrl=");
builder.append(desUrl);
builder.append(", patchUrl=");
builder.append(patchUrl);
builder.append(", versionDesId=");
builder.append(versionDesId);
builder.append(", versionDesNo=");
builder.append(versionDesNo);
builder.append(", versionSourceId=");
builder.append(versionSourceId);
builder.append(", versionSourceNo=");
builder.append(versionSourceNo);
builder.append(", forceFlag=");
builder.append(forceFlag);
builder.append(", deviceType=");
builder.append(deviceType);
builder.append(", systemType=");
builder.append(systemType);
builder.append(", description=");
builder.append(description);
builder.append(", creatorId=");
builder.append(creatorId);
builder.append(", id=");
builder.append(id);
builder.append(", created=");
builder.append(created);
builder.append(", modified=");
builder.append(modified);
builder.append(", yn=");
builder.append(yn);
builder.append("]");
return builder.toString();
}
public String getMd5() {
return md5;
}
public void setMd5(String md5) {
this.md5 = md5;
}
}