Skip to content

Commit 24b02fc

Browse files
update models
1 parent c025563 commit 24b02fc

30 files changed

Lines changed: 1278 additions & 5 deletions

src/main/java/com/testingbot/models/TestingBotStorageFile.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ public class TestingBotStorageFile implements Serializable {
99
private int id;
1010
@SerializedName("app_url") private String appUrl;
1111
private String url;
12+
private String filename;
1213
private String type;
14+
private String version;
15+
@SerializedName("min_device_version") private String minDeviceVersion;
16+
private String thumb;
17+
private String state;
18+
@SerializedName("sim_only") private boolean simOnly;
1319
@SerializedName("created_at") private String createdDate;
1420

1521
public int getId() {
@@ -20,6 +26,54 @@ public void setId(int id) {
2026
this.id = id;
2127
}
2228

29+
public String getFilename() {
30+
return filename;
31+
}
32+
33+
public void setFilename(String filename) {
34+
this.filename = filename;
35+
}
36+
37+
public String getVersion() {
38+
return version;
39+
}
40+
41+
public void setVersion(String version) {
42+
this.version = version;
43+
}
44+
45+
public String getMinDeviceVersion() {
46+
return minDeviceVersion;
47+
}
48+
49+
public void setMinDeviceVersion(String minDeviceVersion) {
50+
this.minDeviceVersion = minDeviceVersion;
51+
}
52+
53+
public String getThumb() {
54+
return thumb;
55+
}
56+
57+
public void setThumb(String thumb) {
58+
this.thumb = thumb;
59+
}
60+
61+
public String getState() {
62+
return state;
63+
}
64+
65+
public void setState(String state) {
66+
this.state = state;
67+
}
68+
69+
public boolean isSimOnly() {
70+
return simOnly;
71+
}
72+
73+
public void setSimOnly(boolean simOnly) {
74+
this.simOnly = simOnly;
75+
}
76+
2377
public String getAppUrl() {
2478
return appUrl;
2579
}

src/main/java/com/testingbot/models/TestingBotStorageFileCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class TestingBotStorageFileCollection implements Serializable {
88
private static final long serialVersionUID = 1L;
9-
private ArrayList<TestingBotStorageFile> data = new ArrayList();
9+
private ArrayList<TestingBotStorageFile> data = new ArrayList<>();
1010
private HashMap<String, Integer> meta = new HashMap<String, Integer>();
1111

1212
public ArrayList<TestingBotStorageFile> getData() {

src/main/java/com/testingbot/models/TestingbotBrowser.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
public class TestingbotBrowser implements Serializable {
1515
private static final long serialVersionUID = 1L;
1616
private String name;
17+
@SerializedName("selenium_name") private String seleniumName;
1718
private String platform;
1819
@SerializedName("browser_id") private int id;
1920
@SerializedName("long_version") private String longVersion;
@@ -35,6 +36,20 @@ public void setName(String name) {
3536
this.name = name;
3637
}
3738

39+
/**
40+
* @return the selenium_name (the browserName WebDriver capability value)
41+
*/
42+
public String getSeleniumName() {
43+
return seleniumName;
44+
}
45+
46+
/**
47+
* @param seleniumName the selenium_name to set
48+
*/
49+
public void setSeleniumName(String seleniumName) {
50+
this.seleniumName = seleniumName;
51+
}
52+
3853
/**
3954
* @return the platform
4055
*/

src/main/java/com/testingbot/models/TestingbotBuild.java

Lines changed: 136 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@
77
public class TestingbotBuild implements Serializable {
88
private static final long serialVersionUID = 1L;
99
private int id;
10+
@SerializedName("build_id") private String buildId;
1011
@SerializedName("build_identifier") private String buildIdentifier;
11-
private String createdAtDate;
12+
@SerializedName("created_at") private String createdAtDate;
13+
@SerializedName("completed_at") private String completedAt;
1214
private String updatedAtDate;
15+
private String status;
16+
@SerializedName("session_id") private String sessionId;
17+
private int duration;
18+
private boolean success;
19+
@SerializedName("total_tests") private int totalTests;
20+
@SerializedName("failed_tests") private int failedTests;
21+
@SerializedName("passed_tests") private int passedTests;
1322

1423
/**
1524
* @return the id
@@ -18,6 +27,20 @@ public int getId() {
1827
return id;
1928
}
2029

30+
/**
31+
* @return the build_id (user-supplied build identifier)
32+
*/
33+
public String getBuildId() {
34+
return buildId;
35+
}
36+
37+
/**
38+
* @param buildId the build_id to set
39+
*/
40+
public void setBuildId(String buildId) {
41+
this.buildId = buildId;
42+
}
43+
2144
/**
2245
* @param id the id to set
2346
*/
@@ -66,4 +89,116 @@ public String getUpdatedAtDate() {
6689
public void setUpdatedAtDate(String updatedAtDate) {
6790
this.updatedAtDate = updatedAtDate;
6891
}
92+
93+
/**
94+
* @return the completed_at date
95+
*/
96+
public String getCompletedAt() {
97+
return completedAt;
98+
}
99+
100+
/**
101+
* @param completedAt the completed_at date to set
102+
*/
103+
public void setCompletedAt(String completedAt) {
104+
this.completedAt = completedAt;
105+
}
106+
107+
/**
108+
* @return the aggregate build status
109+
*/
110+
public String getStatus() {
111+
return status;
112+
}
113+
114+
/**
115+
* @param status the build status to set
116+
*/
117+
public void setStatus(String status) {
118+
this.status = status;
119+
}
120+
121+
/**
122+
* @return the session_id of the first test in the build
123+
*/
124+
public String getSessionId() {
125+
return sessionId;
126+
}
127+
128+
/**
129+
* @param sessionId the session_id to set
130+
*/
131+
public void setSessionId(String sessionId) {
132+
this.sessionId = sessionId;
133+
}
134+
135+
/**
136+
* @return the total duration (seconds) of all tests in the build
137+
*/
138+
public int getDuration() {
139+
return duration;
140+
}
141+
142+
/**
143+
* @param duration the duration to set
144+
*/
145+
public void setDuration(int duration) {
146+
this.duration = duration;
147+
}
148+
149+
/**
150+
* @return whether the build succeeded
151+
*/
152+
public boolean isSuccess() {
153+
return success;
154+
}
155+
156+
/**
157+
* @param success the success flag to set
158+
*/
159+
public void setSuccess(boolean success) {
160+
this.success = success;
161+
}
162+
163+
/**
164+
* @return the total number of tests in the build
165+
*/
166+
public int getTotalTests() {
167+
return totalTests;
168+
}
169+
170+
/**
171+
* @param totalTests the total number of tests to set
172+
*/
173+
public void setTotalTests(int totalTests) {
174+
this.totalTests = totalTests;
175+
}
176+
177+
/**
178+
* @return the number of failed tests in the build
179+
*/
180+
public int getFailedTests() {
181+
return failedTests;
182+
}
183+
184+
/**
185+
* @param failedTests the number of failed tests to set
186+
*/
187+
public void setFailedTests(int failedTests) {
188+
this.failedTests = failedTests;
189+
}
190+
191+
/**
192+
* @return the number of passed tests in the build
193+
*/
194+
public int getPassedTests() {
195+
return passedTests;
196+
}
197+
198+
/**
199+
* @param passedTests the number of passed tests to set
200+
*/
201+
public void setPassedTests(int passedTests) {
202+
this.passedTests = passedTests;
203+
}
69204
}

src/main/java/com/testingbot/models/TestingbotBuildCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class TestingbotBuildCollection implements Serializable {
88
private static final long serialVersionUID = 1L;
9-
private ArrayList<TestingbotBuild> data = new ArrayList();
9+
private ArrayList<TestingbotBuild> data = new ArrayList<>();
1010
private HashMap<String, Integer> meta = new HashMap<String, Integer>();
1111

1212
/**

src/main/java/com/testingbot/models/TestingbotDevice.java

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ public class TestingbotDevice implements Serializable {
1111
private String cpu;
1212
@SerializedName("model_number") private String modelNumber;
1313
private String name;
14+
private String model;
15+
private String manufacturer;
1416
@SerializedName("platform_name") private String platformName;
17+
@SerializedName("platform_version") private String platformVersion;
18+
@SerializedName("screen_size") private String screenSize;
19+
@SerializedName("screen_resolution") private String screenResolution;
1520
@SerializedName("free_trial") private boolean freeTrial;
1621
private boolean available;
1722

@@ -85,6 +90,34 @@ public void setName(String name) {
8590
this.name = name;
8691
}
8792

93+
/**
94+
* @return the model identifier
95+
*/
96+
public String getModel() {
97+
return model;
98+
}
99+
100+
/**
101+
* @param model the model identifier to set
102+
*/
103+
public void setModel(String model) {
104+
this.model = model;
105+
}
106+
107+
/**
108+
* @return the manufacturer (e.g. Apple, Samsung)
109+
*/
110+
public String getManufacturer() {
111+
return manufacturer;
112+
}
113+
114+
/**
115+
* @param manufacturer the manufacturer to set
116+
*/
117+
public void setManufacturer(String manufacturer) {
118+
this.manufacturer = manufacturer;
119+
}
120+
88121
/**
89122
* @return the platformName
90123
*/
@@ -99,6 +132,48 @@ public void setPlatformName(String platformName) {
99132
this.platformName = platformName;
100133
}
101134

135+
/**
136+
* @return the platform (OS) version
137+
*/
138+
public String getPlatformVersion() {
139+
return platformVersion;
140+
}
141+
142+
/**
143+
* @param platformVersion the platform version to set
144+
*/
145+
public void setPlatformVersion(String platformVersion) {
146+
this.platformVersion = platformVersion;
147+
}
148+
149+
/**
150+
* @return the screen size (inches)
151+
*/
152+
public String getScreenSize() {
153+
return screenSize;
154+
}
155+
156+
/**
157+
* @param screenSize the screen size to set
158+
*/
159+
public void setScreenSize(String screenSize) {
160+
this.screenSize = screenSize;
161+
}
162+
163+
/**
164+
* @return the screen resolution
165+
*/
166+
public String getScreenResolution() {
167+
return screenResolution;
168+
}
169+
170+
/**
171+
* @param screenResolution the screen resolution to set
172+
*/
173+
public void setScreenResolution(String screenResolution) {
174+
this.screenResolution = screenResolution;
175+
}
176+
102177
/**
103178
* @return the freeTrial
104179
*/

0 commit comments

Comments
 (0)