aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/service
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main/java/com/juick/service')
-rw-r--r--juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java b/juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java
index b314b89b..b070c8cb 100644
--- a/juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java
+++ b/juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java
@@ -7,21 +7,21 @@ import org.springframework.context.ApplicationEvent;
import java.util.List;
public class MessageReadEvent extends ApplicationEvent {
- private List<User> users;
+ private User user;
private Message message;
/**
* Create a new ApplicationEvent.
*
* @param source the object on which the event initially occurred (never {@code null})
*/
- public MessageReadEvent(Object source, List<User> users, Message message) {
+ public MessageReadEvent(Object source, User user, Message message) {
super(source);
- this.users = users;
+ this.user = user;
this.message = message;
}
- public List<User> getUsers() {
- return users;
+ public User getUser() {
+ return user;
}
public Message getMessage() {