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