Skip to content

Commit

Permalink
Add interactivity_pointer to views.open/push API params (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Sep 8, 2024
1 parent f3e1d45 commit 3be5c7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
public class ViewsOpenRequest implements SlackApiRequest {
private String token;
private String triggerId;
private String interactivityPointer;
private View view;
private String viewAsString;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class ViewsPushRequest implements SlackApiRequest {

private String token;
private String triggerId;
private String interactivityPointer;
private View view;
private String viewAsString;
}

0 comments on commit 3be5c7f

Please sign in to comment.