Package com.slack.api.model.event
Class ImCreatedEvent
- java.lang.Object
-
- com.slack.api.model.event.ImCreatedEvent
-
- All Implemented Interfaces:
Event
,Serializable
public class ImCreatedEvent extends Object implements Event
The im_created event is sent to all connections for a user when a new direct message channel is created that they are a member of.This message lets the client know that a channel has been created, but the client should show no changes based on this, just update its internal list of IM channels. Usually this event is followed by an im_open event.
https://api.slack.com/events/im_created
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImCreatedEvent.Channel
-
Constructor Summary
Constructors Constructor Description ImCreatedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
ImCreatedEvent.Channel
getChannel()
String
getType()
String
getUser()
int
hashCode()
void
setChannel(ImCreatedEvent.Channel channel)
void
setUser(String user)
String
toString()
-
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()
-
getChannel
public ImCreatedEvent.Channel getChannel()
-
setUser
public void setUser(String user)
-
setChannel
public void setChannel(ImCreatedEvent.Channel channel)
-
canEqual
protected boolean canEqual(Object other)
-
-