17d3a39742c5c498625294bb1bac2a0ceeb52ddc
[demos/kafka/chat] /
1 package de.juplo.kafka.chat.backend.implementation.kafka.messages;
2
3 import lombok.*;
4
5
6 @Getter
7 @Setter
8 @EqualsAndHashCode
9 @ToString
10 public class EventChatMessageReceivedTo extends AbstractMessageTo
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 }