ServerVersion

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.

Constructors

Link copied to clipboard
constructor(major: Int, minor: Int, patch: Int, build: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val build: Int? = null
Link copied to clipboard
val major: Int
Link copied to clipboard
val minor: Int
Link copied to clipboard
val patch: Int

Functions

Link copied to clipboard
open operator override fun compareTo(other: ServerVersion): Int
Link copied to clipboard
open override fun toString(): String

Convert version to string. Format is "major.minor.patch.build". build is omitted if null. Sample output: