@@ -22,15 +22,17 @@ public class APIDeviceCleanupConfiguration extends APIEntity {
22
22
23
23
private Long createdById ;
24
24
25
- private APIDevice . OsType osType = APIDevice . OsType . ANDROID ;
25
+ private String description ;
26
26
27
- private Date lastModificationTime ;
27
+ private String discriminator ;
28
28
29
29
private Boolean enabled ;
30
30
31
31
private Boolean global ;
32
32
33
- private String discriminator ;
33
+ private Date lastModificationTime ;
34
+
35
+ private APIDevice .OsType osType = APIDevice .OsType .ANDROID ;
34
36
35
37
// For cluster use. Not included in hashCode or equals.
36
38
@ JsonInclude (JsonInclude .Include .NON_NULL )
@@ -42,7 +44,8 @@ public APIDeviceCleanupConfiguration() {
42
44
@ SuppressWarnings ("squid:S107" )
43
45
public APIDeviceCleanupConfiguration (
44
46
Long id , String content , Boolean enabled , LocalDateTime createTime , String createdByEmail , Long createdById ,
45
- APIDevice .OsType osType , LocalDateTime lastModificationTime , String discriminator , Boolean global ) {
47
+ APIDevice .OsType osType , LocalDateTime lastModificationTime , String discriminator , Boolean global ,
48
+ String description ) {
46
49
super (id );
47
50
this .content = content ;
48
51
this .enabled = enabled ;
@@ -53,6 +56,7 @@ public APIDeviceCleanupConfiguration(
53
56
this .lastModificationTime = TimeConverter .toDate (lastModificationTime );
54
57
this .global = global ;
55
58
this .discriminator = discriminator ;
59
+ this .description = description ;
56
60
}
57
61
58
62
public String getContent () {
@@ -135,6 +139,14 @@ public void setForceRestore(Boolean forceRestore) {
135
139
this .forceRestore = forceRestore ;
136
140
}
137
141
142
+ public String getDescription () {
143
+ return description ;
144
+ }
145
+
146
+ public void setDescription (String description ) {
147
+ this .description = description ;
148
+ }
149
+
138
150
@ Override
139
151
@ JsonIgnore
140
152
public <T extends APIEntity > void clone (T from ) {
@@ -150,6 +162,7 @@ public <T extends APIEntity> void clone(T from) {
150
162
this .global = deviceCleanupConfiguration .global ;
151
163
this .discriminator = deviceCleanupConfiguration .discriminator ;
152
164
this .forceRestore = deviceCleanupConfiguration .forceRestore ;
165
+ this .description = deviceCleanupConfiguration .description ;
153
166
}
154
167
155
168
@ Override
@@ -169,13 +182,14 @@ public boolean equals(Object o) {
169
182
Objects .equals (lastModificationTime , that .lastModificationTime ) &&
170
183
Objects .equals (enabled , that .enabled ) &&
171
184
Objects .equals (global , that .global ) &&
172
- Objects .equals (discriminator , that .discriminator );
185
+ Objects .equals (discriminator , that .discriminator ) &&
186
+ Objects .equals (description , that .description );
173
187
}
174
188
175
189
@ Override
176
190
public int hashCode () {
177
191
return Objects
178
192
.hash (content , createTime , createdByEmail , createdById , osType , lastModificationTime , enabled ,
179
- global , discriminator );
193
+ global , discriminator , description );
180
194
}
181
195
}
0 commit comments