From 5468a0dcbb90d3ce0866b417230e4a76b3a4e644 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 6 Sep 2024 14:10:41 +0900 Subject: [PATCH] Add interactivity_pointer to views.open/push API params --- .../src/main/java/com/slack/api/methods/RequestFormBuilder.java | 2 ++ .../com/slack/api/methods/request/views/ViewsOpenRequest.java | 1 + .../com/slack/api/methods/request/views/ViewsPushRequest.java | 1 + 3 files changed, 4 insertions(+) diff --git a/slack-api-client/src/main/java/com/slack/api/methods/RequestFormBuilder.java b/slack-api-client/src/main/java/com/slack/api/methods/RequestFormBuilder.java index f4f700edb..b91bf0dec 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/RequestFormBuilder.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/RequestFormBuilder.java @@ -2841,6 +2841,7 @@ public static FormBody.Builder toForm(UsersProfileSetRequest req) { public static FormBody.Builder toForm(ViewsOpenRequest req) { FormBody.Builder form = new FormBody.Builder(); setIfNotNull("trigger_id", req.getTriggerId(), form); + setIfNotNull("interactivity_pointer", req.getInteractivityPointer(), form); if (req.getViewAsString() != null) { setIfNotNull("view", req.getViewAsString(), form); } else { @@ -2852,6 +2853,7 @@ public static FormBody.Builder toForm(ViewsOpenRequest req) { public static FormBody.Builder toForm(ViewsPushRequest req) { FormBody.Builder form = new FormBody.Builder(); setIfNotNull("trigger_id", req.getTriggerId(), form); + setIfNotNull("interactivity_pointer", req.getInteractivityPointer(), form); if (req.getViewAsString() != null) { setIfNotNull("view", req.getViewAsString(), form); } else { diff --git a/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsOpenRequest.java b/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsOpenRequest.java index 7379954f9..78e37fd8e 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsOpenRequest.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsOpenRequest.java @@ -13,6 +13,7 @@ public class ViewsOpenRequest implements SlackApiRequest { private String token; private String triggerId; + private String interactivityPointer; private View view; private String viewAsString; } diff --git a/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsPushRequest.java b/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsPushRequest.java index 75dcf1948..56b869a50 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsPushRequest.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/request/views/ViewsPushRequest.java @@ -14,6 +14,7 @@ public class ViewsPushRequest implements SlackApiRequest { private String token; private String triggerId; + private String interactivityPointer; private View view; private String viewAsString; }