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

com.slack.api.methods.response.stars.StarsListResponse Maven / Gradle / Ivy

There is a newer version: 1.39.0
Show newest version
package com.slack.api.methods.response.stars;

import com.google.gson.annotations.SerializedName;
import com.slack.api.methods.SlackApiTextResponse;
import com.slack.api.model.*;
import com.slack.api.model.block.LayoutBlock;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class StarsListResponse implements SlackApiTextResponse {

    private boolean ok;
    private String warning;
    private String error;
    private String needed;
    private String provided;
    private transient Map> httpResponseHeaders;

    private List items;
    private Paging paging;

    @Data
    public static class Item {
        private String type;
        private String channel;
        private Message message;
        private Integer dateCreate;
        private File file;
        private Comment comment;
    }

    @Data
    public static class Message {

        private String type;
        private String subtype;
        private String text;
        private String ts;
        private String botId;
        private BotProfile botProfile;
        private Boolean displayAsBot;
        private String team;

        private List attachments;
        private List blocks;
        private List files;
        private Boolean upload;

        private String permalink;
        @SerializedName("is_starred")
        private boolean starred;
        @SerializedName("is_locked")
        private boolean locked;
        private String inviter;

        private String clientMsgId;
        private String user;
        private String username;
        private String threadTs;
        private Integer replyCount;
        private Integer replyUsersCount;
        private String latestReply;
        private List replyUsers;

        // https://api.slack.com/messaging/retrieving#threading
        // Parent messages in a thread will no longer explicitly list their replies.
        // Instead of a large replies array containing threaded message replies,
        // we'll provide a lighter-weight list of reply_users,
        // plus a reply_users_count and the latest_reply message.
        // These new fields are already available. We'll remove the replies array on October 18, 2019.
        @Deprecated
        private List replies;
        private boolean subscribed;
        private String lastRead;
        private List reactions;
        private Edited edited;

        /**
         * A reply message information in a MessageRoot.
         */
        @Data
        public static class MessageRootReply {
            private String user;
            private String ts;
        }

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

    @Data
    public static class Comment {
        private String id;
        private Integer created;
        private Integer timestamp;
        private String user;
        @SerializedName("is_intro")
        private boolean intro;
        private String comment;
        private Integer numStars;
        @SerializedName("is_starred")
        private boolean starred;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy