Class ReactionAddedEvent

java.lang.Object
com.slack.api.model.event.ReactionAddedEvent
All Implemented Interfaces:
Event, java.io.Serializable

public class ReactionAddedEvent
extends java.lang.Object
implements Event
When a reaction is added to an item the reaction_added event is sent to all connected clients for users who can see the content that was reacted to.

The user field indicates the ID of the user who performed this event. The item_user field represents the ID of the user that created the original item that has been reacted to.

Some messages aren't authored by "users," like those created by incoming webhooks. reaction_added events related to these messages will not include an item_user.

The item field is a brief reference to what was reacted to. The above example describes a reaction to a message.

https://api.slack.com/events/reaction_added

See Also:
Serialized Form
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public java.lang.String getType()
      Specified by:
      getType in interface Event
    • getUser

      public java.lang.String getUser()
    • getReaction

      public java.lang.String getReaction()
    • getItemUser

      public java.lang.String getItemUser()
    • getItem

      public ReactionAddedEvent.Item getItem()
    • getEventTs

      public java.lang.String getEventTs()
    • setUser

      public void setUser​(java.lang.String user)
    • setReaction

      public void setReaction​(java.lang.String reaction)
    • setItemUser

      public void setItemUser​(java.lang.String itemUser)
    • setItem

      public void setItem​(ReactionAddedEvent.Item item)
    • setEventTs

      public void setEventTs​(java.lang.String eventTs)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object