Package-level declarations

Types

Link copied to clipboard
data class ClientInfo(val name: String, val version: String)

The client information is used to identify the client.

Link copied to clipboard
expect class DateTime
actual typealias DateTime = LocalDateTime
Link copied to clipboard
data class DeviceInfo(val id: String, val name: String)

The device information is used to identify the device the client application is running on.

Link copied to clipboard
class FileInfo(val content: ByteArray, val mediaType: String = "application/octet-stream")

Information about a file used to for uploading.

Link copied to clipboard
data class ServerVersion(val major: Int, val minor: Int, val patch: Int, val build: Int? = null) : Comparable<ServerVersion>

Model to help with Jellyfin server versions. Use fromString to parse strings. The format is similar to SemVer.

Link copied to clipboard
expect class UUID
actual typealias UUID = java.util.UUID

Functions

Link copied to clipboard
fun ByteArray.toFileInfo(mediaType: String = "application/octet-stream"): FileInfo

Create a FileInfo from this byte array.