From 3bbaae4589de56da9ab09360aa28a3cd12198471 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 9 Oct 2018 14:29:47 +0300 Subject: MessageReadEvent refactoring --- .../java/com/juick/service/component/MessageReadEvent.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'juick-common/src/main/java') 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 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 users, Message message) { + public MessageReadEvent(Object source, User user, Message message) { super(source); - this.users = users; + this.user = user; this.message = message; } - public List getUsers() { - return users; + public User getUser() { + return user; } public Message getMessage() { -- cgit v1.2.3