This commit is contained in:
parent
39c1884fdb
commit
a35fe74a64
@ -19,7 +19,7 @@ public class ChatStoryLineHandler implements EventHandler<ChatMail> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getEventType() {
|
public String getEventType() {
|
||||||
return ChatMail.class.getName();
|
return ChatMail.class.getSimpleName();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ public class PersonStoryLineHandler implements EventHandler<Mail> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getEventType() {
|
public String getEventType() {
|
||||||
return Mail.class.getName();
|
return Mail.class.getSimpleName();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.struchkov.godfather.main.domain.content;
|
package dev.struchkov.godfather.main.domain.content;
|
||||||
|
|
||||||
import dev.struchkov.godfather.main.domain.event.Event;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
@ -10,7 +9,7 @@ import java.util.List;
|
|||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public class ChatMail extends Message implements Event {
|
public class ChatMail extends Message {
|
||||||
|
|
||||||
public static final String TYPE = "CHAT_MAIL";
|
public static final String TYPE = "CHAT_MAIL";
|
||||||
|
|
||||||
@ -44,9 +43,4 @@ public class ChatMail extends Message implements Event {
|
|||||||
this.attachments.addAll(attachments);
|
this.attachments.addAll(attachments);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getEventType() {
|
|
||||||
return TYPE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.struchkov.godfather.main.domain.content;
|
package dev.struchkov.godfather.main.domain.content;
|
||||||
|
|
||||||
import dev.struchkov.godfather.main.domain.event.Event;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
@ -16,7 +15,7 @@ import java.util.List;
|
|||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public class Mail extends Message implements Event {
|
public class Mail extends Message {
|
||||||
|
|
||||||
public static final String TYPE = "MAIL";
|
public static final String TYPE = "MAIL";
|
||||||
|
|
||||||
@ -80,9 +79,4 @@ public class Mail extends Message implements Event {
|
|||||||
this.forwardMail = forwardMail;
|
this.forwardMail = forwardMail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getEventType() {
|
|
||||||
return TYPE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
package dev.struchkov.godfather.main.domain.event;
|
|
||||||
|
|
||||||
public interface Event {
|
|
||||||
|
|
||||||
String getEventType();
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user