Package com.slack.api.model.event
Class FileCreatedEvent
- java.lang.Object
-
- com.slack.api.model.event.FileCreatedEvent
-
- All Implemented Interfaces:
Event,Serializable
public class FileCreatedEvent extends Object implements Event
The file_created event is sent to all connected clients for a user when that user uploads a file to Slack. The file property includes the file ID, as well as a top-level file_id. To obtain additional information about the file, use the files.info API method.When a file is shared with other members of the workspace (which can happen at upload time) a file_shared event will also be sent.
https://api.slack.com/events/file_created
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileCreatedEvent.File
-
Constructor Summary
Constructors Constructor Description FileCreatedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetEventTs()FileCreatedEvent.FilegetFile()StringgetFileId()StringgetType()StringgetUserId()inthashCode()voidsetEventTs(String eventTs)voidsetFile(FileCreatedEvent.File file)voidsetFileId(String fileId)voidsetUserId(String userId)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
-
getFileId
public String getFileId()
-
getFile
public FileCreatedEvent.File getFile()
-
getUserId
public String getUserId()
-
getEventTs
public String getEventTs()
-
setFileId
public void setFileId(String fileId)
-
setFile
public void setFile(FileCreatedEvent.File file)
-
setUserId
public void setUserId(String userId)
-
setEventTs
public void setEventTs(String eventTs)
-
canEqual
protected boolean canEqual(Object other)
-
-