MrVersionModel

data class MrVersionModel(val name: String, val versionNumber: String, val changelog: String? = null, val dependencies: List<MrVersionModel.VersionDependency> = listOf(), val gameVersions: List<String> = listOf(), val versionType: String, val loaders: List<String> = listOf(), val featured: Boolean, val status: String, val requestedStatus: String? = null, val id: String, val projectId: String, val authorId: String, val datePublished: String, val downloads: Int, val files: List<MrVersionModel.VersionFile> = listOf())

Constructors

Link copied to clipboard
constructor(name: String, versionNumber: String, changelog: String? = null, dependencies: List<MrVersionModel.VersionDependency> = listOf(), gameVersions: List<String> = listOf(), versionType: String, loaders: List<String> = listOf(), featured: Boolean, status: String, requestedStatus: String? = null, id: String, projectId: String, authorId: String, datePublished: String, downloads: Int, files: List<MrVersionModel.VersionFile> = listOf())

Types

Link copied to clipboard
data class VersionDependency(val versionId: String? = null, val projectId: String? = null, val fileName: String? = null, val dependencyType: String)
Link copied to clipboard
data class VersionFile(val hashes: MrVersionModel.VersionFile.VersionFileHashes, val url: String, val filename: String, val primary: Boolean, val size: Int, val fileType: String? = null)

Properties

Link copied to clipboard

The ID of the author who published this version

Link copied to clipboard
val changelog: String? = null

The changelog for this version (nullable)

Link copied to clipboard

The date and time this version was published (string )

Link copied to clipboard

List of specific versions of projects that this version depends on (Array of VersionDependency objects)

Link copied to clipboard

The number of times this version has been downloaded

Link copied to clipboard

Whether the version is featured or not

Link copied to clipboard

List of files available for download for this version (Array of VersionFile objects)

Link copied to clipboard

List of versions of Minecraft that this version supports

Link copied to clipboard
val id: String

The ID of the version, encoded as a base62 string

Link copied to clipboard

List of mod loaders that this version supports

Link copied to clipboard

The name of this version

Link copied to clipboard

The ID of the project this version is for

Link copied to clipboard
val requestedStatus: String? = null

Enum representing the requested status for this version: "listed", "archived", "draft", "unlisted" (nullable)

Link copied to clipboard

Enum representing the status of this version: "listed", "archived", "draft", "unlisted", "scheduled", "unknown"

Link copied to clipboard

The version number, ideally following semantic versioning

Link copied to clipboard

Enum representing the release channel for this version: "release", "beta", "alpha"