Skip to content

Commit bb38eb5

Browse files
Add toString overrides
1 parent d4bce1a commit bb38eb5

File tree

1 file changed

+14
-0
lines changed
  • noteblock-api/src/main/java/gg/makera/noteblock/api/response

1 file changed

+14
-0
lines changed

noteblock-api/src/main/java/gg/makera/noteblock/api/response/Server.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ public int getWeeklyVotes() {
257257
public int getMonthlyVotes() {
258258
return monthly;
259259
}
260+
261+
@Override
262+
public String toString() {
263+
return "VoteStatistics{" +
264+
"daily=" + daily +
265+
", weekly=" + weekly +
266+
", monthly=" + monthly +
267+
'}';
268+
}
260269
}
261270

262271
public static class Version {
@@ -285,5 +294,10 @@ public int getProtocol() {
285294
public String getName() {
286295
return name;
287296
}
297+
298+
@Override
299+
public String toString() {
300+
return name + "(" + protocol + ")";
301+
}
288302
}
289303
}

0 commit comments

Comments
 (0)