Media

data class Media(val json: JsonObject, val client: ApiClient) : PenicillinModel

Constructors

Link copied to clipboard
fun Media(json: JsonObject, client: ApiClient)

Types

Link copied to clipboard
data class Image(val json: JsonObject, val client: ApiClient) : PenicillinModel
Link copied to clipboard
data class ProcessingInfo(val json: JsonObject, val client: ApiClient) : PenicillinModel
Link copied to clipboard
data class Video(val json: JsonObject, val client: ApiClient) : PenicillinModel

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other model is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the model.

Properties

Link copied to clipboard
open override val client: ApiClient

The ApiClient instance.

Link copied to clipboard
val expiresAfterSecs: Int?
Link copied to clipboard
val image: Media.Image?
Link copied to clipboard
open override val json: JsonObject

The underlying JsonObject.

Link copied to clipboard
open val keyCase: JsonKeyCase
Link copied to clipboard
open val keyConverter: JsonKeyConverter
Link copied to clipboard
val mediaId: Long
Link copied to clipboard
val mediaIdString: String
Link copied to clipboard
val mediaKey: String?
Link copied to clipboard
val processingInfo: Media.ProcessingInfo?
Link copied to clipboard
val size: Int?
Link copied to clipboard
val video: Media.Video?

Extensions

Link copied to clipboard
suspend fun Media.awaitProcessing(timeout: Duration? = null): Media

Awaits until media processing is done, and returns Media response. This operation is suspendable.