Implemented GroupMessageStatusChangeEvent
This commit is contained in:
parent
373faae63b
commit
45e75dba41
@ -4,15 +4,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<wb-module deploy-name="envoy-common">
|
<wb-module deploy-name="envoy-common">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||||
|
|
||||||
|
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
|
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
|
||||||
|
<wb-resource deploy-path="/" source-path="/src/test/java"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -24,4 +29,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</project-modules>
|
</project-modules>
|
||||||
|
44
src/main/java/envoy/event/GroupMessageStatusChangeEvent.java
Normal file
44
src/main/java/envoy/event/GroupMessageStatusChangeEvent.java
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
package envoy.event;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import envoy.data.GroupMessage;
|
||||||
|
import envoy.data.Message.MessageStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project: <strong>envoy-common</strong><br>
|
||||||
|
* File: <strong>GroupMessageStatusChangeEvent.java</strong><br>
|
||||||
|
* Created: <strong>18.04.2020</strong><br>
|
||||||
|
*
|
||||||
|
* @author Maximilian Käfer
|
||||||
|
* @since Envoy Common v0.1-beta
|
||||||
|
*/
|
||||||
|
public class GroupMessageStatusChangeEvent extends MessageStatusChangeEvent {
|
||||||
|
|
||||||
|
private final long memberID;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a {@link GroupMessageStatusChangeEvent}.
|
||||||
|
*
|
||||||
|
* @param id the ID of the {@link GroupMessage} this event is related to
|
||||||
|
* @param status the status of this specific members {@link GroupMessage}.
|
||||||
|
* @param date the date at which the MessageStatus change occurred for this
|
||||||
|
* specific member
|
||||||
|
* @since Envoy Common v0.1-beta
|
||||||
|
*/
|
||||||
|
public GroupMessageStatusChangeEvent(long id, MessageStatus status, Date date, long memberID) {
|
||||||
|
super(id, status, date);
|
||||||
|
this.memberID = memberID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the memberID which the user who sends this event has
|
||||||
|
* @since Envoy Common v0.1-beta
|
||||||
|
*/
|
||||||
|
public long getMemberID() { return memberID; }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() { return String.format("GroupMessageStatusChangeEvent[meta=%s, memberID=%d]", super.toString(), memberID); }
|
||||||
|
}
|
Reference in New Issue
Block a user