Class DialogOpenRequest
- java.lang.Object
-
- com.slack.api.methods.request.dialog.DialogOpenRequest
-
- All Implemented Interfaces:
SlackApiRequest
public class DialogOpenRequest extends Object implements SlackApiRequest
https://api.slack.com/methods/dialog.open
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DialogOpenRequest.DialogOpenRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DialogOpenRequest.DialogOpenRequestBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
Dialog
getDialog()
The dialog definition.String
getDialogAsString()
String
getToken()
Authentication token.String
getTriggerId()
Exchange a trigger to post to the user.int
hashCode()
void
setDialog(Dialog dialog)
The dialog definition.void
setDialogAsString(String dialogAsString)
void
setToken(String token)
Authentication token.void
setTriggerId(String triggerId)
Exchange a trigger to post to the user.String
toString()
-
-
-
Method Detail
-
builder
public static DialogOpenRequest.DialogOpenRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `none`- Specified by:
getToken
in interfaceSlackApiRequest
- Returns:
- token string value or null
-
getDialog
public Dialog getDialog()
The dialog definition. This must be a JSON-encoded string.
-
getDialogAsString
public String getDialogAsString()
-
getTriggerId
public String getTriggerId()
Exchange a trigger to post to the user.Apps can invoke dialogs when users interact with slash commands, message buttons, or message menus. Each interaction will include a trigger_id.
As apps can only open a dialog in response to such a user action, the
trigger_id
is a required parameter.- See Also:
- Implementing dialogs
-
setToken
public void setToken(String token)
Authentication token. Requires scope: `none`- Specified by:
setToken
in interfaceSlackApiRequest
-
setDialog
public void setDialog(Dialog dialog)
The dialog definition. This must be a JSON-encoded string.
-
setDialogAsString
public void setDialogAsString(String dialogAsString)
-
setTriggerId
public void setTriggerId(String triggerId)
Exchange a trigger to post to the user.Apps can invoke dialogs when users interact with slash commands, message buttons, or message menus. Each interaction will include a trigger_id.
As apps can only open a dialog in response to such a user action, the
trigger_id
is a required parameter.- See Also:
- Implementing dialogs
-
canEqual
protected boolean canEqual(Object other)
-
-