MessageFileHandlerImpl

class MessageFileHandlerImpl(requestHelper: RequestHelper, endpoint: String, val threadId: String, val messageId: String) : MessageFileHandler

Constructors

Link copied to clipboard
constructor(requestHelper: RequestHelper, endpoint: String, threadId: String, messageId: String)

Functions

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

Lists the 20 most recent files in the message.

Lists the files in the message.

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

Retrieves the file.

open override fun retrieve(fileId: String): MessageFile

Retrieves the file with the given id.

Properties

Link copied to clipboard
open override val messageId: String

The id of the ThreadMessage that this handler is for.

Link copied to clipboard
open override val threadId: String

The id of the Thread that this handler is for.