tock / ai.tock.bot.connector.media / MediaFile

# MediaFile

`data class MediaFile` (source)

An uploaded file.

### Constructors

#### <init> | An uploaded file. `MediaFile(url: String, name: String, type: AttachmentType = UploadedFilesService.attachmentType(url))`

### Properties

#### name | `val name: String`
#### type | `val type: AttachmentType`
#### url | `val url: String`

### Extension Functions

#### toMediaCategory | `fun MediaFile.toMediaCategory(): MediaCategory?`
#### toWebMediaFile | `fun MediaFile.toWebMediaFile(): <ERROR CLASS>`