com.github.seratch.jslack.api.model.event.PinRemovedEvent Maven / Gradle / Ivy
package com.github.seratch.jslack.api.model.event;
import com.github.seratch.jslack.api.model.Attachment;
import com.github.seratch.jslack.api.model.File;
import com.github.seratch.jslack.api.model.FileComment;
import com.github.seratch.jslack.api.model.block.LayoutBlock;
import lombok.Data;
import java.util.List;
/**
* When an item is un-pinned from a channel, the pin_removed event is sent to all members of that channel.
*
* The has_pins property indicates that there are other pinned items in that channel.
*
* https://api.slack.com/events/pin_removed
*/
@Data
public class PinRemovedEvent implements Event {
public static final String TYPE_NAME = "pin_removed";
private final String type = TYPE_NAME;
private String user;
private String channelId;
private Item item;
private boolean hasPins;
private String eventTs;
@Data
public static class Item {
private String type;
private String channel;
private String createdBy; // user id
private Integer created;
private Message message;
private File file; // TODO: correct definition
private FileComment comment; // TODO: correct definition
}
@Data
public static class Message {
private String clientMsgId;
private String type;
private String user;
private String text;
private List blocks;
private List attachments;
private String ts;
private List pinnedTo;
private String permalink;
}
}