Удалил Event
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-03-18 11:07:15 +03:00
parent 39c1884fdb
commit a35fe74a64
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
5 changed files with 4 additions and 23 deletions

View File

@ -19,7 +19,7 @@ public class ChatStoryLineHandler implements EventHandler<ChatMail> {
@Override
public String getEventType() {
return ChatMail.class.getName();
return ChatMail.class.getSimpleName();
}
}

View File

@ -19,7 +19,7 @@ public class PersonStoryLineHandler implements EventHandler<Mail> {
@Override
public String getEventType() {
return Mail.class.getName();
return Mail.class.getSimpleName();
}
}

View File

@ -1,6 +1,5 @@
package dev.struchkov.godfather.main.domain.content;
import dev.struchkov.godfather.main.domain.event.Event;
import lombok.Getter;
import lombok.Setter;
@ -10,7 +9,7 @@ import java.util.List;
@Getter
@Setter
public class ChatMail extends Message implements Event {
public class ChatMail extends Message {
public static final String TYPE = "CHAT_MAIL";
@ -44,9 +43,4 @@ public class ChatMail extends Message implements Event {
this.attachments.addAll(attachments);
}
@Override
public String getEventType() {
return TYPE;
}
}

View File

@ -1,6 +1,5 @@
package dev.struchkov.godfather.main.domain.content;
import dev.struchkov.godfather.main.domain.event.Event;
import lombok.Getter;
import lombok.Setter;
@ -16,7 +15,7 @@ import java.util.List;
@Getter
@Setter
public class Mail extends Message implements Event {
public class Mail extends Message {
public static final String TYPE = "MAIL";
@ -80,9 +79,4 @@ public class Mail extends Message implements Event {
this.forwardMail = forwardMail;
}
@Override
public String getEventType() {
return TYPE;
}
}

View File

@ -1,7 +0,0 @@
package dev.struchkov.godfather.main.domain.event;
public interface Event {
String getEventType();
}