Package jenkins.plugins.slack.workflow
Class SlackResponse
- java.lang.Object
-
- jenkins.plugins.slack.workflow.SlackResponse
-
- All Implemented Interfaces:
Serializable
public class SlackResponse extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlackResponse(SlackService slackService)
SlackResponse(org.json.JSONObject slackResponseObject, SlackService slackService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addReaction(String emojiName)
Add an emoji reaction to the message that this `SlackResponse` points to.String
getChannelId()
String
getThreadId()
String
getTs()
boolean
removeReaction(String emojiName)
Remove an emoji reaction to the message that this `SlackResponse` points to.
-
-
-
Constructor Detail
-
SlackResponse
public SlackResponse(SlackService slackService)
-
SlackResponse
public SlackResponse(org.json.JSONObject slackResponseObject, SlackService slackService)
-
-
Method Detail
-
getChannelId
public String getChannelId()
-
getTs
public String getTs()
-
getThreadId
public String getThreadId()
-
addReaction
public boolean addReaction(String emojiName)
Add an emoji reaction to the message that this `SlackResponse` points to.- Parameters:
emojiName
- - name of the emoji (no colons), e.g. `thumbsup`- Returns:
- boolean indicating whether the API request succeeded
-
removeReaction
public boolean removeReaction(String emojiName)
Remove an emoji reaction to the message that this `SlackResponse` points to.- Parameters:
emojiName
- - name of the emoji (no colons), e.g. `thumbsup`- Returns:
- boolean indicating whether the API request succeeded
-
-