d4f6508d595482680598838cb94109a80618960a
[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 EventChatMessageReceivedTo extends AbstractMessageTo
12 {
13   private String user;
14   private Long id;
15   private String text;
16
17
18   public EventChatMessageReceivedTo()
19   {
20     super(ToType.EVENT_CHATMESSAGE_RECEIVED);
21   }
22
23
24   public static EventChatMessageReceivedTo of(String user, Long id, String text)
25   {
26     EventChatMessageReceivedTo to = new EventChatMessageReceivedTo();
27     to.user = user;
28     to.id = id;
29     to.text = text;
30     return to;
31   }
32 }