From 0d276cd3cd7bbca991c9220b432d97b2c758832d Mon Sep 17 00:00:00 2001 From: delvh Date: Tue, 4 Feb 2020 21:27:20 +0100 Subject: [PATCH] Updated toString methods according to @CyB3RC0nN0R s request --- src/main/java/envoy/event/MessageStatusChangeEvent.java | 4 +--- src/main/java/envoy/event/UserStatusChangeEvent.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/envoy/event/MessageStatusChangeEvent.java b/src/main/java/envoy/event/MessageStatusChangeEvent.java index 7f36b9c..a696c36 100644 --- a/src/main/java/envoy/event/MessageStatusChangeEvent.java +++ b/src/main/java/envoy/event/MessageStatusChangeEvent.java @@ -63,7 +63,5 @@ public class MessageStatusChangeEvent implements Event { 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()); - } + public String toString() { return String.format("MessageStatusChangeEvent[id=%d,status=%s,date=%s]", id, status, date); } } diff --git a/src/main/java/envoy/event/UserStatusChangeEvent.java b/src/main/java/envoy/event/UserStatusChangeEvent.java index 4a856c4..1e47952 100644 --- a/src/main/java/envoy/event/UserStatusChangeEvent.java +++ b/src/main/java/envoy/event/UserStatusChangeEvent.java @@ -53,5 +53,5 @@ public class UserStatusChangeEvent implements Event { public long getId() { return id; } @Override - public String toString() { return String.format("UserStatusChangeEvent[user with id=%d, to status=%s]", id, status.toString()); } + public String toString() { return String.format("UserStatusChangeEvent[id=%d,status=%s]", id, status); } }