Data

@Serializable
@SerialName(value = "data")
data class Data(val base64: String, val mediaType: String) : Attachment

The file itself.

Constructors

Link copied to clipboard
constructor(base64: String, mediaType: String)

Properties

Link copied to clipboard

the bytes of the file in Base64. Attachment.of creates one from the bytes.

Link copied to clipboard
open override val mediaType: String

the media type of the file, such as image/png or application/pdf.

Functions

Link copied to clipboard

Returns the bytes of the file.

Link copied to clipboard
open override fun toString(): String