Mr Version Model
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 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
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
Enum representing the requested status for this version: "listed", "archived", "draft", "unlisted" (nullable)
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"