Class SlackResponse

java.lang.Object
jenkins.plugins.slack.workflow.SlackResponse
All Implemented Interfaces:
Serializable

public class SlackResponse extends Object implements Serializable
See Also:
  • Constructor Details

    • SlackResponse

      public SlackResponse(SlackService slackService)
    • SlackResponse

      public SlackResponse(org.json.JSONObject slackResponseObject, SlackService slackService)
  • Method Details

    • 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