From: Kai Moritz Date: Mon, 11 Sep 2023 17:06:58 +0000 (+0200) Subject: WIP:MOVE X-Git-Tag: rebase--2023-09-14--22-59~16 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=cf2129fc7e918142cacee0188cefb265c5bd78ef;p=demos%2Fkafka%2Fchat WIP:MOVE --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/AbstractMessageTo.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/AbstractMessageTo.java new file mode 100644 index 00000000..c96f43bb --- /dev/null +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/AbstractMessageTo.java @@ -0,0 +1,18 @@ +package de.juplo.kafka.chat.backend.implementation.kafka.messages.data; + + +import lombok.Getter; +import lombok.RequiredArgsConstructor; + + +@RequiredArgsConstructor +public class AbstractDataMessageTo +{ + public enum ToType { + COMMAND_CREATE_CHATROOM, + EVENT_CHATMESSAGE_RECEIVED, + } + + @Getter + private final ToType type; +} diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/AbstractDataMessageTo.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/AbstractDataMessageTo.java deleted file mode 100644 index c96f43bb..00000000 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/AbstractDataMessageTo.java +++ /dev/null @@ -1,18 +0,0 @@ -package de.juplo.kafka.chat.backend.implementation.kafka.messages.data; - - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - - -@RequiredArgsConstructor -public class AbstractDataMessageTo -{ - public enum ToType { - COMMAND_CREATE_CHATROOM, - EVENT_CHATMESSAGE_RECEIVED, - } - - @Getter - private final ToType type; -} diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/info/AbstractInfoMessageTo.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/info/AbstractInfoMessageTo.java deleted file mode 100644 index d4fd3c6e..00000000 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/info/AbstractInfoMessageTo.java +++ /dev/null @@ -1,17 +0,0 @@ -package de.juplo.kafka.chat.backend.implementation.kafka.messages.info; - - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - - -@RequiredArgsConstructor -public class AbstractInfoMessageTo -{ - public enum ToType { - EVENT_CHATROOM_CREATED, - } - - @Getter - private final ToType type; -}