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

com.slack.api.model.view.ViewState Maven / Gradle / Ivy

There is a newer version: 1.44.1
Show newest version
package com.slack.api.model.view;

import com.slack.api.model.block.composition.PlainTextObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

// For historical reasons, this class is under view package but it can be used for payloads
// representing block_actions events in messages too.
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ViewState {
    // block_id, action_id
    private Map> values;

    @Data
    public static class Value {
        private String type;
        private String value;
        private String selectedDate;
        private String selectedTime;
        private String selectedConversation;
        private String selectedChannel;
        private String selectedUser;
        private SelectedOption selectedOption;
        private List selectedConversations;
        private List selectedChannels;
        private List selectedUsers;
        private List selectedOptions;
    }

    @Data
    public static class SelectedOption {
        private PlainTextObject text;
        private String value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy