tock / ai.tock.bot.admin.story.dump / MediaFileDescriptorDump

MediaFileDescriptorDump

class MediaFileDescriptorDump (source)

A file descriptor.

Constructors

<init>

MediaFileDescriptorDump(file: MediaFileDescriptor)

A file descriptor.

MediaFileDescriptorDump(suffix: String, name: String, data: ByteArray?, id: String = Dice.newId(), type: AttachmentType = UploadedFilesService.attachmentType(suffix), externalUrl: String? = null)

Properties

data

val data: ByteArray?

externalUrl

val externalUrl: String?

id

val id: String

name

val name: String

suffix

val suffix: String

type

val type: AttachmentType

Functions

toFile

fun toFile(controller: StoryDefinitionConfigurationDumpController): MediaFileDescriptor?