package com.github.seratch.jslack.api.model.view;

import com.github.seratch.jslack.api.model.block.composition.PlainTextObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ViewState {
    // block_id, action_id
    private Map<String, Map<String, Value>> values;

    /**
     * This class may miss some attributes.
     * If you find missing ones, let us know at https://github.com/seratch/jslack/issues
     */
    @Data
    public static class Value {
        private String type;
        private String value;
        private String selectedDate;
        private String selectedConversation;
        private String selectedChannel;
        private String selectedUser;
        private SelectedOption selectedOption;
    }

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

@@ -233,16 +233,39 @@
 uctor;%0A%0A
+import java.util.List;%0A
 import j
@@ -890,24 +890,68 @@
 ctedOption;%0A
+        private List%3CString%3E selectedUsers;%0A
     %7D%0A%0A    @

Fix #230 selectedUsers in ViewState is missing