SubscribedItem

data class SubscribedItem(val name: String, val id: Int, val type: MarketplaceItemType)

Constructors

Link copied to clipboard
constructor(name: String, id: Int, type: MarketplaceItemType)
constructor(item: MarketplaceItem)

Properties

Link copied to clipboard
val id: Int
Link copied to clipboard

The revision currently unpacked in itemDir, or null when nothing is installed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun checkUpdate(): Int?
Link copied to clipboard

Get the installation folder of the item.

Link copied to clipboard
suspend fun getNewestRevisionId(): Int?

The revision to install, when it is not the installed one: the newest one, or for an add-on the newest one the marketplace offers for this game. That can be older than the installed one.

Link copied to clipboard
suspend fun install(revisionId: Int, subTask: ResourceTask? = null)