@@ -22,6 +22,8 @@ public class APIAdminDeviceModel extends APIEntity {
22
22
23
23
private Boolean enabled ;
24
24
25
+ private Integer creditsPrice ;
26
+
25
27
private APIDevice .OsType osType ;
26
28
27
29
private APIDevice .Platform platform ;
@@ -33,14 +35,13 @@ public class APIAdminDeviceModel extends APIEntity {
33
35
private String releaseVersion ;
34
36
35
37
public APIAdminDeviceModel () {
36
-
37
38
}
38
39
39
40
@ SuppressWarnings ("squid:S107" )
40
41
public APIAdminDeviceModel (
41
42
Long id , String name , APIDevice .OsType osType , APIDevice .Platform platform , String location ,
42
- Boolean dedicated , String releaseVersion , Boolean enabled , Integer online , Integer total , Long running ,
43
- Long queueSize , Double avgWaitingTime ) {
43
+ Boolean dedicated , String releaseVersion , Boolean enabled , Integer creditsPrice , Integer online ,
44
+ Integer total , Long running , Long queueSize , Double avgWaitingTime ) {
44
45
super (id );
45
46
this .name = name ;
46
47
this .osType = osType ;
@@ -49,32 +50,14 @@ public APIAdminDeviceModel(
49
50
this .dedicated = dedicated ;
50
51
this .releaseVersion = releaseVersion ;
51
52
this .enabled = enabled ;
53
+ this .creditsPrice = creditsPrice ;
52
54
this .online = online ;
53
55
this .total = total ;
54
56
this .running = running ;
55
57
this .queueSize = queueSize ;
56
58
this .avgWaitingTime = avgWaitingTime != null ? avgWaitingTime .longValue () : 0 ;
57
59
}
58
60
59
- @ Override
60
- @ JsonIgnore
61
- protected <T extends APIEntity > void clone (T from ) {
62
- APIAdminDeviceModel model = (APIAdminDeviceModel ) from ;
63
- cloneBase (from );
64
- this .name = model .name ;
65
- this .osType = model .osType ;
66
- this .platform = model .platform ;
67
- this .location = model .location ;
68
- this .dedicated = model .dedicated ;
69
- this .releaseVersion = model .releaseVersion ;
70
- this .enabled = model .enabled ;
71
- this .online = model .online ;
72
- this .total = model .total ;
73
- this .running = model .running ;
74
- this .queueSize = model .queueSize ;
75
- this .avgWaitingTime = model .avgWaitingTime ;
76
- }
77
-
78
61
public String getName () {
79
62
return name ;
80
63
}
@@ -170,4 +153,32 @@ public String getReleaseVersion() {
170
153
public void setReleaseVersion (String releaseVersion ) {
171
154
this .releaseVersion = releaseVersion ;
172
155
}
156
+
157
+ public Integer getCreditsPrice () {
158
+ return creditsPrice ;
159
+ }
160
+
161
+ public void setCreditsPrice (Integer creditsPrice ) {
162
+ this .creditsPrice = creditsPrice ;
163
+ }
164
+
165
+ @ Override
166
+ @ JsonIgnore
167
+ protected <T extends APIEntity > void clone (T from ) {
168
+ APIAdminDeviceModel model = (APIAdminDeviceModel ) from ;
169
+ cloneBase (from );
170
+ this .name = model .name ;
171
+ this .osType = model .osType ;
172
+ this .platform = model .platform ;
173
+ this .location = model .location ;
174
+ this .dedicated = model .dedicated ;
175
+ this .releaseVersion = model .releaseVersion ;
176
+ this .enabled = model .enabled ;
177
+ this .creditsPrice = model .creditsPrice ;
178
+ this .online = model .online ;
179
+ this .total = model .total ;
180
+ this .running = model .running ;
181
+ this .queueSize = model .queueSize ;
182
+ this .avgWaitingTime = model .avgWaitingTime ;
183
+ }
173
184
}
0 commit comments