Skip to content

Commit eb2bf57

Browse files
Merge pull request #555 from lastverb/master
Version 3.40.0
2 parents a4bcab6 + 1434f87 commit eb2bf57

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.testdroid</groupId>
44
<artifactId>testdroid-api</artifactId>
5-
<version>3.39.0</version>
5+
<version>3.40.0</version>
66
<packaging>jar</packaging>
77
<name>Bitbar API v2</name>
88
<url>https://github.com/bitbar/testdroid-api</url>
@@ -18,11 +18,11 @@
1818
<jacoco-maven-plugin.skip>true</jacoco-maven-plugin.skip>
1919
<!-- disable default deployment -->
2020
<maven.deploy.skip>true</maven.deploy.skip>
21-
<org.springframework.boot.spring-boot-dependencies>3.4.2</org.springframework.boot.spring-boot-dependencies>
21+
<org.springframework.boot.spring-boot-dependencies>3.4.3</org.springframework.boot.spring-boot-dependencies>
2222
<org.apache.commons.collections4.version>4.4</org.apache.commons.collections4.version>
2323
<org.apache.commons.io.version>2.18.0</org.apache.commons.io.version>
2424
<commons-text.version>1.10.0</commons-text.version>
25-
<dependency-check-maven.version>12.0.2</dependency-check-maven.version>
25+
<dependency-check-maven.version>12.1.0</dependency-check-maven.version>
2626
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
2727
<org.reflections.version>0.10.2</org.reflections.version>
2828
<okhttp.version>4.12.0</okhttp.version>

src/main/java/com/testdroid/api/model/APIAdminDevice.java

+11
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public ComplexState compute(SubState subState) {
134134

135135
private boolean forceRestore;
136136

137+
private boolean ownerHasAccountService;
138+
137139
public APIAdminDevice() {
138140
}
139141

@@ -398,6 +400,14 @@ public void setForceRestore(boolean forceRestore) {
398400
this.forceRestore = forceRestore;
399401
}
400402

403+
public boolean isOwnerHasAccountService() {
404+
return ownerHasAccountService;
405+
}
406+
407+
public void setOwnerHasAccountService(boolean ownerHasAccountService) {
408+
this.ownerHasAccountService = ownerHasAccountService;
409+
}
410+
401411
@Override
402412
@JsonIgnore
403413
protected <T extends APIEntity> void clone(T from) {
@@ -429,5 +439,6 @@ protected <T extends APIEntity> void clone(T from) {
429439
this.osType = adminDevice.osType;
430440
this.platform = adminDevice.platform;
431441
this.forceRestore = adminDevice.forceRestore;
442+
this.ownerHasAccountService = adminDevice.ownerHasAccountService;
432443
}
433444
}

src/main/java/com/testdroid/api/model/APIDeviceCleanupConfiguration.java

+20-6
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ public class APIDeviceCleanupConfiguration extends APIEntity {
2222

2323
private Long createdById;
2424

25-
private APIDevice.OsType osType = APIDevice.OsType.ANDROID;
25+
private String description;
2626

27-
private Date lastModificationTime;
27+
private String discriminator;
2828

2929
private Boolean enabled;
3030

3131
private Boolean global;
3232

33-
private String discriminator;
33+
private Date lastModificationTime;
34+
35+
private APIDevice.OsType osType = APIDevice.OsType.ANDROID;
3436

3537
// For cluster use. Not included in hashCode or equals.
3638
@JsonInclude(JsonInclude.Include.NON_NULL)
@@ -42,7 +44,8 @@ public APIDeviceCleanupConfiguration() {
4244
@SuppressWarnings("squid:S107")
4345
public APIDeviceCleanupConfiguration(
4446
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) {
4649
super(id);
4750
this.content = content;
4851
this.enabled = enabled;
@@ -53,6 +56,7 @@ public APIDeviceCleanupConfiguration(
5356
this.lastModificationTime = TimeConverter.toDate(lastModificationTime);
5457
this.global = global;
5558
this.discriminator = discriminator;
59+
this.description = description;
5660
}
5761

5862
public String getContent() {
@@ -135,6 +139,14 @@ public void setForceRestore(Boolean forceRestore) {
135139
this.forceRestore = forceRestore;
136140
}
137141

142+
public String getDescription() {
143+
return description;
144+
}
145+
146+
public void setDescription(String description) {
147+
this.description = description;
148+
}
149+
138150
@Override
139151
@JsonIgnore
140152
public <T extends APIEntity> void clone(T from) {
@@ -150,6 +162,7 @@ public <T extends APIEntity> void clone(T from) {
150162
this.global = deviceCleanupConfiguration.global;
151163
this.discriminator = deviceCleanupConfiguration.discriminator;
152164
this.forceRestore = deviceCleanupConfiguration.forceRestore;
165+
this.description = deviceCleanupConfiguration.description;
153166
}
154167

155168
@Override
@@ -169,13 +182,14 @@ public boolean equals(Object o) {
169182
Objects.equals(lastModificationTime, that.lastModificationTime) &&
170183
Objects.equals(enabled, that.enabled) &&
171184
Objects.equals(global, that.global) &&
172-
Objects.equals(discriminator, that.discriminator);
185+
Objects.equals(discriminator, that.discriminator) &&
186+
Objects.equals(description, that.description);
173187
}
174188

175189
@Override
176190
public int hashCode() {
177191
return Objects
178192
.hash(content, createTime, createdByEmail, createdById, osType, lastModificationTime, enabled,
179-
global, discriminator);
193+
global, discriminator, description);
180194
}
181195
}

0 commit comments

Comments
 (0)