Class FileCreatedEvent

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

public class FileCreatedEvent
extends java.lang.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
  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public java.lang.String getFileId()
    • getFile

      public FileCreatedEvent.File getFile()
    • getUserId

      public java.lang.String getUserId()
    • getEventTs

      public java.lang.String getEventTs()
    • setFileId

      public void setFileId​(java.lang.String fileId)
    • setFile

      public void setFile​(FileCreatedEvent.File file)
    • setUserId

      public void setUserId​(java.lang.String userId)
    • 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