Moved MessageEvent back from envoy-common.
This commit is contained in:
parent
8406f46358
commit
29a7fce343
@ -1,7 +1,6 @@
|
|||||||
package envoy.client.event;
|
package envoy.client.event;
|
||||||
|
|
||||||
import envoy.data.Message;
|
import envoy.data.Message;
|
||||||
import envoy.event.MessageEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project: <strong>envoy-client</strong><br>
|
* Project: <strong>envoy-client</strong><br>
|
||||||
|
31
src/main/java/envoy/client/event/MessageEvent.java
Normal file
31
src/main/java/envoy/client/event/MessageEvent.java
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
package envoy.client.event;
|
||||||
|
|
||||||
|
import envoy.data.Message;
|
||||||
|
import envoy.event.Event;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project: <strong>envoy-client</strong><br>
|
||||||
|
* File: <strong>MessageCreationEvent.java</strong><br>
|
||||||
|
* Created: <strong>4 Dec 2019</strong><br>
|
||||||
|
*
|
||||||
|
* @author Kai S. K. Engelbart
|
||||||
|
*/
|
||||||
|
public class MessageEvent implements Event<Message> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the {@link Message} attached to this {@link MessageEvent}.
|
||||||
|
*/
|
||||||
|
protected final Message message;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a {@link MessageEvent} conveying information about a
|
||||||
|
* {@link Message} object.
|
||||||
|
*
|
||||||
|
* @param message the {@link Message} object to attach to this event
|
||||||
|
* @since Envoy v0.2-alpha
|
||||||
|
*/
|
||||||
|
public MessageEvent(Message message) { this.message = message; }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Message get() { return message; }
|
||||||
|
}
|
@ -1,7 +1,6 @@
|
|||||||
package envoy.client.event;
|
package envoy.client.event;
|
||||||
|
|
||||||
import envoy.data.Message;
|
import envoy.data.Message;
|
||||||
import envoy.event.MessageEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project: <strong>envoy-client</strong><br>
|
* Project: <strong>envoy-client</strong><br>
|
||||||
|
Reference in New Issue
Block a user