All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.slack.api.model.event.MessageDeletedEvent Maven / Gradle / Ivy

package com.slack.api.model.event;

import com.google.gson.annotations.SerializedName;
import com.slack.api.model.Attachment;
import com.slack.api.model.BotProfile;
import com.slack.api.model.File;
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_deleted
 */
@Data
public class MessageDeletedEvent implements Event {

    public static final String TYPE_NAME = "message";
    public static final String SUBTYPE_NAME = "message_deleted";

    private final String type = TYPE_NAME;
    private final String subtype = SUBTYPE_NAME;
    private String channel;

    private boolean hidden;
    private String deletedTs;

    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 blocks;
        private List attachments;

        private List files;
        private Boolean upload;
        private Boolean displayAsBot;
        private List xFiles;

        private String threadTs;
        private String parentUserId;

        private String botId;
        private BotProfile botProfile;

        private Boolean hidden;
        private Boolean isLocked;
        private Boolean subscribed;

        private String ts;
        private String userTeam;
        private String sourceTeam;

        @SerializedName("is_starred")
        private boolean starred;
        private List pinnedTo;
        private List reactions;

        private Integer replyCount;
        private Integer replyUsersCount;
        private String latestReply;
        private List replyUsers;
        private String lastRead;
    }

    @Data
    public static class Edited {
        private String user;
        private String ts;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy