X Tutup
Skip to content

Commit b88f8aa

Browse files
committed
Merge pull request #387 from docker-java/issue-373
Make ProgressDetails attributes public
2 parents c03f0c5 + 51e3983 commit b88f8aa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ public static class ProgressDetail implements Serializable {
108108
@JsonProperty("start")
109109
long start;
110110

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+
}
122+
111123
@Override
112124
public String toString() {
113125
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).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)
X Tutup