WIP:MOVE
authorKai Moritz <kai@juplo.de>
Mon, 11 Sep 2023 17:00:31 +0000 (19:00 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 12 Sep 2023 21:35:20 +0000 (23:35 +0200)
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/CommandCreateChatRoomTo.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/CommandCreateChatRoomToData.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/EventChatDataMessageReceivedTo.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/EventChatMessageReceivedTo.java [new file with mode: 0644]

diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/CommandCreateChatRoomTo.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/CommandCreateChatRoomTo.java
new file mode 100644 (file)
index 0000000..ee5fe0f
--- /dev/null
@@ -0,0 +1,27 @@
+package de.juplo.kafka.chat.backend.implementation.kafka.messages.data;
+
+import lombok.*;
+
+
+@Getter
+@Setter
+@EqualsAndHashCode
+@ToString
+public class CommandCreateChatRoomToData extends AbstractDataMessageTo
+{
+  private String name;
+
+
+  public CommandCreateChatRoomToData()
+  {
+    super(ToType.COMMAND_CREATE_CHATROOM);
+  }
+
+
+  public static CommandCreateChatRoomToData of(String name)
+  {
+    CommandCreateChatRoomToData to = new CommandCreateChatRoomToData();
+    to.name = name;
+    return to;
+  }
+}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/CommandCreateChatRoomToData.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/CommandCreateChatRoomToData.java
deleted file mode 100644 (file)
index ee5fe0f..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package de.juplo.kafka.chat.backend.implementation.kafka.messages.data;
-
-import lombok.*;
-
-
-@Getter
-@Setter
-@EqualsAndHashCode
-@ToString
-public class CommandCreateChatRoomToData extends AbstractDataMessageTo
-{
-  private String name;
-
-
-  public CommandCreateChatRoomToData()
-  {
-    super(ToType.COMMAND_CREATE_CHATROOM);
-  }
-
-
-  public static CommandCreateChatRoomToData of(String name)
-  {
-    CommandCreateChatRoomToData to = new CommandCreateChatRoomToData();
-    to.name = name;
-    return to;
-  }
-}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/EventChatDataMessageReceivedTo.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/EventChatDataMessageReceivedTo.java
deleted file mode 100644 (file)
index 20a0f5c..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-package de.juplo.kafka.chat.backend.implementation.kafka.messages.data;
-
-import lombok.*;
-
-
-@Getter
-@Setter
-@EqualsAndHashCode
-@ToString
-public class EventChatDataMessageReceivedTo extends AbstractDataMessageTo
-{
-  private String user;
-  private Long id;
-  private String text;
-
-
-  public EventChatDataMessageReceivedTo()
-  {
-    super(ToType.EVENT_CHATMESSAGE_RECEIVED);
-  }
-
-
-  public static EventChatDataMessageReceivedTo of(String user, Long id, String text)
-  {
-    EventChatDataMessageReceivedTo to = new EventChatDataMessageReceivedTo();
-    to.user = user;
-    to.id = id;
-    to.text = text;
-    return to;
-  }
-}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/EventChatMessageReceivedTo.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/messages/data/EventChatMessageReceivedTo.java
new file mode 100644 (file)
index 0000000..20a0f5c
--- /dev/null
@@ -0,0 +1,31 @@
+package de.juplo.kafka.chat.backend.implementation.kafka.messages.data;
+
+import lombok.*;
+
+
+@Getter
+@Setter
+@EqualsAndHashCode
+@ToString
+public class EventChatDataMessageReceivedTo extends AbstractDataMessageTo
+{
+  private String user;
+  private Long id;
+  private String text;
+
+
+  public EventChatDataMessageReceivedTo()
+  {
+    super(ToType.EVENT_CHATMESSAGE_RECEIVED);
+  }
+
+
+  public static EventChatDataMessageReceivedTo of(String user, Long id, String text)
+  {
+    EventChatDataMessageReceivedTo to = new EventChatDataMessageReceivedTo();
+    to.user = user;
+    to.id = id;
+    to.text = text;
+    return to;
+  }
+}