MainData

@Serializable
class MainData(val rid: Long, val fullUpdate: Boolean = false, val torrents: Map<String, Torrent> = emptyMap(), val torrentsRemoved: List<String> = emptyList(), val categories: Map<String, Category> = emptyMap(), val categoriesRemoved: List<String> = emptyList(), val tags: List<String> = emptyList(), val tagsRemoved: List<String> = emptyList(), val serverState: ServerState)

Constructors

Link copied to clipboard
constructor(rid: Long, fullUpdate: Boolean = false, torrents: Map<String, Torrent> = emptyMap(), torrentsRemoved: List<String> = emptyList(), categories: Map<String, Category> = emptyMap(), categoriesRemoved: List<String> = emptyList(), tags: List<String> = emptyList(), tagsRemoved: List<String> = emptyList(), serverState: ServerState)

Properties

Link copied to clipboard

Info for categories added since last request

Link copied to clipboard
@SerialName(value = "categories_removed")
val categoriesRemoved: List<String>

List of categories removed since last request

Link copied to clipboard
@SerialName(value = "full_update")
val fullUpdate: Boolean = false

Whether the response contains all the data or partial data

Link copied to clipboard
val rid: Long

Response ID

Link copied to clipboard
@SerialName(value = "server_state")
val serverState: ServerState

Global transfer info

Link copied to clipboard

List of tags added since last request

Link copied to clipboard
@SerialName(value = "tags_removed")
val tagsRemoved: List<String>

List of tags removed since last request

Link copied to clipboard

Property: torrent hash, value: same as Torrent

Link copied to clipboard
@SerialName(value = "torrents_removed")
val torrentsRemoved: List<String>

List of hashes of torrents removed since last request