Система событий
This commit is contained in:
18
src/main/java/com/rosetta/im/event/Event.java
Normal file
18
src/main/java/com/rosetta/im/event/Event.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.rosetta.im.event;
|
||||
|
||||
public class Event {
|
||||
|
||||
private String name;
|
||||
|
||||
public Event() {}
|
||||
|
||||
public String getEventName() {
|
||||
if(this.name == null) {
|
||||
this.name = this.getClass().getSimpleName();
|
||||
}
|
||||
return this.name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user