@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Message message1 = (Message) o;

        if (date != null ? !date.equals(message1.date) : message1.date != null) return false;
        if (message != null ? !message.equals(message1.message) : message1.message != null) return false;
        if (receiver != null ? !receiver.equals(message1.receiver) : message1.receiver != null) return false;

        return true;
    }