SpigotVersionInfo

@Serializable
data class SpigotVersionInfo(val id: Int? = null, val name: String? = null)

SpigotMCバージョン情報 id/nameが欠落したレスポンスでも全体のデコードが失敗しないよう、 どちらもnull許容+デフォルト値としている(欠落時は呼び出し側で"unknown"にフォールバックする)

Parameters

id

ダウンロードID ex) 55234

name

バージョン名 ex) 1.0.0

Constructors

Link copied to clipboard
constructor(id: Int? = null, name: String? = null)

Properties

Link copied to clipboard
val id: Int?
Link copied to clipboard
val name: String?