Skip to content

Commit f613e40

Browse files
committed
can reuse this Block Kit object
1 parent 414e72a commit f613e40

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

slack-api-model/src/main/java/com/slack/api/model/EntityMetadata.java

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import com.google.gson.JsonElement;
44
import com.google.gson.annotations.SerializedName;
5+
import com.slack.api.model.block.composition.PlainTextObject;
6+
import com.slack.api.model.block.composition.TextObject;
7+
58
import lombok.*;
69

710
@Data
@@ -286,8 +289,8 @@ public static class SlackFile {
286289
@AllArgsConstructor
287290
public static class Edit {
288291
private Boolean enabled;
289-
private PlainText placeholder;
290-
private PlainText hint;
292+
private PlainTextObject placeholder;
293+
private PlainTextObject hint;
291294
private Boolean optional;
292295
private Select select;
293296
private Number number;
@@ -300,7 +303,7 @@ public static class Edit {
300303
public static class Select {
301304
private String currentValue;
302305
private String[] currentValues;
303-
private Object[] staticOptions;
306+
private TextObject[] staticOptions;
304307
private Boolean fetchOptionsDynamically;
305308
private Integer minQueryLength;
306309
}
@@ -323,16 +326,6 @@ public static class Text {
323326
private Integer minLength;
324327
private Integer maxLength;
325328
}
326-
327-
@Data
328-
@Builder
329-
@NoArgsConstructor
330-
@AllArgsConstructor
331-
public static class PlainText {
332-
private String type;
333-
private String text;
334-
private Boolean emoji;
335-
}
336329
}
337330

338331
@Data

0 commit comments

Comments
 (0)