diff options
author | 2018-09-25 11:53:37 +0300 | |
---|---|---|
committer | 2018-09-25 11:53:37 +0300 | |
commit | ae76024011a8442ae7eab953e0b97e9fe2c7c201 (patch) | |
tree | 9ec4bc077ad2db21dcfce0eefa126a484b1d0fc7 /juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java | |
parent | 85abc3e201539f81500754a7fb0e4f3a9d148fc4 (diff) |
reorganize layout
Diffstat (limited to 'juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java')
-rw-r--r-- | juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java | 28 |
1 files changed, 28 insertions, 0 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 new file mode 100644 index 00000000..82cfadd5 --- /dev/null +++ b/juick-common/src/main/java/com/juick/service/component/MessageReadEvent.java @@ -0,0 +1,28 @@ +package com.juick.service.component; + +import com.juick.Message; +import com.juick.User; +import org.springframework.context.ApplicationEvent; + +public class MessageReadEvent extends ApplicationEvent { + 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, User user, Message message) { + super(source); + this.user = user; + this.message = message; + } + + public User getUser() { + return user; + } + + public Message getMessage() { + return message; + } +} |