Skip to content

//core/com.petersamokhin.vksdk.core.model.objects/UploadableContent

UploadableContent

[common]\ sealed class UploadableContent

Content to be uploaded to server

Types

Name Summary
Bytes [common]
data class Bytes(fieldName: String, fileName: String, mediaType: String, bytes: ByteArray) : UploadableContent
Simple ByteArray content
File [common]
data class File(fieldName: String, fileName: String, mediaType: String, file: FileOnDisk) : UploadableContent
File on disk content
Url [common]
data class Url(fieldName: String, fileName: String, mediaType: String, url: String) : UploadableContent
URL content

Functions

Name Summary
contentDisposition [common]
fun contentDisposition(): String
Build content disposition of this item

Properties

Name Summary
fieldName [common]
abstract val fieldName: String
Field name; content disposition
fileName [common]
abstract val fileName: String
File name; content disposition
mediaType [common]
abstract val mediaType: String
Content type; content disposition

Inheritors

Name
UploadableContent
UploadableContent
UploadableContent