MrProjectModel

data class MrProjectModel(val slug: String, val title: String, val description: String, val categories: List<String> = listOf(), val clientSide: String, val serverSide: String, val body: String, val status: String, val requestedStatus: String? = null, val additionalCategories: List<String> = listOf(), val issuesUrl: String? = null, val sourceUrl: String? = null, val wikiUrl: String? = null, val discordUrl: String? = null, val donationUrls: List<MrProjectModel.DonationUrl> = listOf(), val projectType: String, val downloads: Int, val iconUrl: String? = null, val color: Int? = null, val threadId: String, val monetizationStatus: String, val id: String, val team: String, val published: String, val updated: String, val approved: String? = null, val queued: String? = null, val followers: Int, val license: MrProjectModel.License, val versions: List<String> = listOf(), val gameVersions: List<String> = listOf(), val loaders: List<String> = listOf(), val gallery: List<MrProjectModel.GalleryImage>? = null)

Constructors

Link copied to clipboard
constructor(slug: String, title: String, description: String, categories: List<String> = listOf(), clientSide: String, serverSide: String, body: String, status: String, requestedStatus: String? = null, additionalCategories: List<String> = listOf(), issuesUrl: String? = null, sourceUrl: String? = null, wikiUrl: String? = null, discordUrl: String? = null, donationUrls: List<MrProjectModel.DonationUrl> = listOf(), projectType: String, downloads: Int, iconUrl: String? = null, color: Int? = null, threadId: String, monetizationStatus: String, id: String, team: String, published: String, updated: String, approved: String? = null, queued: String? = null, followers: Int, license: MrProjectModel.License, versions: List<String> = listOf(), gameVersions: List<String> = listOf(), loaders: List<String> = listOf(), gallery: List<MrProjectModel.GalleryImage>? = null)

Types

Link copied to clipboard
data class DonationUrl(val id: String, val platform: String, val url: String)
Link copied to clipboard
data class GalleryImage(val url: String, val featured: Boolean, val title: String? = null, val description: String? = null, val created: String, val ordering: Int)
Link copied to clipboard
data class License(val id: String, val name: String, val url: String? = null)

Properties

Link copied to clipboard

Array of strings representing additional categories which are searchable but non-primary

Link copied to clipboard
val approved: String? = null

The date the project's status was set to an approved status (string or null )

Link copied to clipboard

A long form description of the project

Link copied to clipboard

Array of strings representing a list of categories that the project belongs to

Link copied to clipboard

Enum representing client side support of the project: "required", "optional", "unsupported"

Link copied to clipboard
val color: Int? = null

The RGB color of the project, automatically generated from the project icon

Link copied to clipboard

A short description of the project

Link copied to clipboard
val discordUrl: String? = null

An optional invite link to the project's discord

Link copied to clipboard

List of donation links for the project (Array of ProjectDonationURL objects)

Link copied to clipboard

The total number of downloads of the project

Link copied to clipboard

The total number of users following the project

Link copied to clipboard

Array of objects or null representing images uploaded to the project's gallery (Array of GalleryImage objects)

Link copied to clipboard

Array of strings representing all game versions supported by the project

Link copied to clipboard
val iconUrl: String? = null

The URL of the project's icon

Link copied to clipboard
val id: String

The ID of the project, encoded as a base62 string

Link copied to clipboard
val issuesUrl: String? = null

An optional link to where to submit bugs or issues with the project

Link copied to clipboard

The license of the project (object ProjectLicense)

Link copied to clipboard

Array of strings representing all loaders supported by the project

Link copied to clipboard

Enum representing the monetization status: "monetized", "demonetized", "force-demonetized"

Link copied to clipboard

Enum representing the project type: "mod", "modpack", "resourcepack", "shader"

Link copied to clipboard

The date the project was published (string )

Link copied to clipboard
val queued: String? = null

The date the project's status was submitted to moderators for review (string or null )

Link copied to clipboard
val requestedStatus: String? = null

Enum representing the requested status when submitting for review or scheduling the project for release: "approved", "archived", "unlisted", "private", "draft"

Link copied to clipboard

Enum representing server side support of the project: "required", "optional", "unsupported"

Link copied to clipboard

The slug of the project, used for vanity URLs. Regex: ^[\w!@$().+,"\-']{3,64}$`

Link copied to clipboard
val sourceUrl: String? = null

An optional link to the source code of the project

Link copied to clipboard

Enum representing the status of the project: "approved", "archived", "rejected", "draft", "unlisted", "processing", "withheld", "scheduled", "private", "unknown"

Link copied to clipboard

The ID of the team that has ownership of this project

Link copied to clipboard

The ID of the moderation thread associated with this project

Link copied to clipboard

The title or name of the project

Link copied to clipboard

The date the project was last updated (string )

Link copied to clipboard

Array of strings representing version IDs of the project (will never be empty unless draft status)

Link copied to clipboard
val wikiUrl: String? = null

An optional link to the project's wiki page or other relevant information