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