00c8b94a05601ee3a1eebb065412fd89cecc57c0
[demos/kafka/chat] /
1 package de.juplo.kafka.chat.backend.implementation.kafka.messages.data;
2
3 import lombok.*;
4
5
6 @Getter
7 @Setter
8 @EqualsAndHashCode
9 @ToString
10 public class CommandCreateChatRoomTo extends AbstractDataMessageTo
11 {
12   private String name;
13
14
15   public CommandCreateChatRoomTo()
16   {
17     super(ToType.COMMAND_CREATE_CHATROOM);
18   }
19
20
21   public static CommandCreateChatRoomTo of(String name)
22   {
23     CommandCreateChatRoomTo to = new CommandCreateChatRoomTo();
24     to.name = name;
25     return to;
26   }
27 }