diff options
author | Vitaly Takmazov | 2018-10-09 14:29:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-09 14:29:47 +0300 |
commit | 3bbaae4589de56da9ab09360aa28a3cd12198471 (patch) | |
tree | 436fd6436e582d0de7cbb0b3373e3d2d9fcc97ee /juick-common/src/main | |
parent | 9eb0139ed6a0e823a0863c8734278e620587627f (diff) |
MessageReadEvent refactoring
Diffstat (limited to 'juick-common/src/main')
-rw-r--r-- | juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java | 10 |
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() { |