-
Notifications
You must be signed in to change notification settings - Fork 228
Expand file tree
/
Copy pathMessageChangedEvent.java
More file actions
65 lines (48 loc) · 1.54 KB
/
MessageChangedEvent.java
File metadata and controls
65 lines (48 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.slack.api.model.event;
import com.google.gson.annotations.SerializedName;
import com.slack.api.model.Attachment;
import com.slack.api.model.Reaction;
import com.slack.api.model.block.LayoutBlock;
import lombok.Data;
import java.util.List;
/**
* https://api.slack.com/events/message/message_changed
*/
@Data
public class MessageChangedEvent implements Event {
public static final String TYPE_NAME = "message";
public static final String SUBTYPE_NAME = "message_changed";
private final String type = TYPE_NAME;
private final String subtype = SUBTYPE_NAME;
private String channel;
private boolean hidden;
private Message message;
private Message previousMessage;
private String eventTs;
private String ts;
private String channelType; // app_home, channel, group, im, mpim
@Data
public static class Message {
private String clientMsgId;
private final String type = TYPE_NAME;
private String subtype;
private String user;
private String team;
private MessageEvent.Edited edited;
private String text;
private List<LayoutBlock> blocks;
private List<Attachment> attachments;
private String ts;
private String userTeam;
private String sourceTeam;
@SerializedName("is_starred")
private boolean starred;
private List<String> pinnedTo;
private List<Reaction> reactions;
}
@Data
public static class Edited {
private String user;
private String ts;
}
}