Add toString overrides to blacklist models
This commit is contained in:
parent
879612918f
commit
4daf677595
@ -46,6 +46,16 @@ public class ServerBlacklist extends DatabaseModel { // TODO: Add a reason?
|
||||
"added TEXT)";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Server Blacklist: [id: %s, name: %s, owner_id: %s, added %s]",
|
||||
this.getId(),
|
||||
this.getName(),
|
||||
this.getOwnerId(),
|
||||
this.getAdded()
|
||||
);
|
||||
}
|
||||
|
||||
public static class ServerBlacklistBuilder {
|
||||
private String id;
|
||||
private String name;
|
||||
|
@ -39,6 +39,15 @@ public class UserBlacklist extends DatabaseModel {
|
||||
"added TEXT)";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("User Blacklist: [id: %s, reason: %s, added: %s",
|
||||
this.getId(),
|
||||
this.getReason(),
|
||||
this.getAdded()
|
||||
);
|
||||
}
|
||||
|
||||
public static class UserBlacklistBuilder {
|
||||
private String id;
|
||||
private String reason;
|
||||
|
Loading…
Reference in New Issue
Block a user