Skip to content

Commit 04de9fb

Browse files
author
Marcus Linke
committed
Make ProgressDetails attributes public
1 parent fabfb01 commit 04de9fb

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

src/main/java/com/github/dockerjava/api/model/ResponseItem.java

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,25 @@ public static class ProgressDetail implements Serializable {
100100
private static final long serialVersionUID = -1954994695645715264L;
101101

102102
@JsonProperty("current")
103-
long current;
103+
public long current;
104104

105105
@JsonProperty("total")
106-
long total;
106+
public long total;
107107

108108
@JsonProperty("start")
109-
long start;
109+
public long start;
110+
111+
public long getCurrent() {
112+
return current;
113+
}
114+
115+
public long getTotal() {
116+
return total;
117+
}
118+
119+
public long getStart() {
120+
return start;
121+
}
110122

111123
@Override
112124
public String toString() {
@@ -124,6 +136,14 @@ public static class ErrorDetail implements Serializable {
124136
@JsonProperty("message")
125137
String message;
126138

139+
public int getCode() {
140+
return code;
141+
}
142+
143+
public String getMessage() {
144+
return message;
145+
}
146+
127147
@Override
128148
public String toString() {
129149
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).toString();

0 commit comments

Comments
 (0)