MessageFileHandler

Handler used to interact with a MessageFile objects.

Inheritors

Functions

Link copied to clipboard
@Contract(pure = true)
open fun list(): ListMessageFilesResponse

Lists the 20 most recent files in the message.

@Contract(pure = true)
abstract fun list(request: ListMessageFilesRequest? = null): ListMessageFilesResponse

Lists the files in the message.

Link copied to clipboard
@Contract(pure = true)
open fun retrieve(file: MessageFile): MessageFile

Retrieves the file.

@Contract(pure = true)
abstract fun retrieve(fileId: String): MessageFile

Retrieves the file with the given id.

Properties

Link copied to clipboard
abstract val messageId: String

The id of the ThreadMessage that this handler is for.

Link copied to clipboard
abstract val threadId: String

The id of the Thread that this handler is for.