Package com.slack.api.model.event
Class PinAddedEvent
- java.lang.Object
-
- com.slack.api.model.event.PinAddedEvent
-
- All Implemented Interfaces:
Event,Serializable
public class PinAddedEvent extends Object implements Event
When an item is pinned in a channel, the pin_added event is sent to all members of that channel.https://api.slack.com/events/pin_added
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPinAddedEvent.Itemstatic classPinAddedEvent.Messagestatic classPinAddedEvent.PinnedInfo
-
Constructor Summary
Constructors Constructor Description PinAddedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetChannelId()StringgetEventTs()PinAddedEvent.ItemgetItem()StringgetItemUser()IntegergetPinCount()PinAddedEvent.PinnedInfogetPinnedInfo()StringgetType()StringgetUser()inthashCode()voidsetChannelId(String channelId)voidsetEventTs(String eventTs)voidsetItem(PinAddedEvent.Item item)voidsetItemUser(String itemUser)voidsetPinCount(Integer pinCount)voidsetPinnedInfo(PinAddedEvent.PinnedInfo pinnedInfo)voidsetUser(String user)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.slack.api.model.event.Event
getSubtype
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUser
public String getUser()
-
getChannelId
public String getChannelId()
-
getItem
public PinAddedEvent.Item getItem()
-
getItemUser
public String getItemUser()
-
getPinCount
public Integer getPinCount()
-
getPinnedInfo
public PinAddedEvent.PinnedInfo getPinnedInfo()
-
getEventTs
public String getEventTs()
-
setUser
public void setUser(String user)
-
setChannelId
public void setChannelId(String channelId)
-
setItem
public void setItem(PinAddedEvent.Item item)
-
setItemUser
public void setItemUser(String itemUser)
-
setPinCount
public void setPinCount(Integer pinCount)
-
setPinnedInfo
public void setPinnedInfo(PinAddedEvent.PinnedInfo pinnedInfo)
-
setEventTs
public void setEventTs(String eventTs)
-
canEqual
protected boolean canEqual(Object other)
-
-