Added toString method for Message- and UserstatusChangeEvents

This commit is contained in:
delvh 2020-02-02 14:20:11 +01:00
parent cf1f8ce5d3
commit 891423fd6d
2 changed files with 8 additions and 0 deletions

View File

@ -61,4 +61,9 @@ public class MessageStatusChangeEvent implements Event<Message.MessageStatus> {
* @since Envoy Common v0.2-alpha * @since Envoy Common v0.2-alpha
*/ */
public Date getDate() { return date; } public Date getDate() { return date; }
@Override
public String toString() {
return String.format("MessageStatusChangeEvent[message id=%d, to status=%s, at %s]", id, status.toString(), date.toString());
}
} }

View File

@ -51,4 +51,7 @@ public class UserStatusChangeEvent implements Event<UserStatus> {
* @since Envoy Common v0.2-alpha * @since Envoy Common v0.2-alpha
*/ */
public long getId() { return id; } public long getId() { return id; }
@Override
public String toString() { return String.format("UserStatusChangeEvent[user with id=%d, to status=%s]", id, status.toString()); }
} }