Modify message observer
This commit is contained in:
@@ -3,7 +3,7 @@ package org.acme;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Objects;
|
||||
|
||||
public class UserDeleted implements CollectEvent {
|
||||
public class UserDeleted implements Suspendable {
|
||||
private long id;
|
||||
private LocalDateTime timestamp;
|
||||
|
||||
@@ -23,11 +23,6 @@ public class UserDeleted implements CollectEvent {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CollectEvent.Type getType() {
|
||||
return Type.DELETE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
||||
Reference in New Issue
Block a user