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