All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.MainData.kt Maven / Gradle / Ivy

There is a newer version: 1.1.0-alpha02
Show newest version
package qbittorrent.models

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class MainData(
    /** Response ID */
    val rid: Long,
    /** Whether the response contains all the data or partial data */
    @SerialName("full_update")
    val fullUpdate: Boolean = false,
    /** Property: torrent hash, value: same as [Torrent] */
    @Serializable(with = KeyMergingTransformer::class)
    val torrents: Map = emptyMap(),
    /** List of hashes of torrents removed since last request */
    @SerialName("torrents_removed")
    val torrentsRemoved: List = emptyList(),
    /** Info for categories added since last request */
    val categories: Map = emptyMap(),
    /** List of categories removed since last request */
    @SerialName("categories_removed")
    val categoriesRemoved: List = emptyList(),
    /** List of tags added since last request */
    val tags: List = emptyList(),
    /** List of tags removed since last request */
    @SerialName("tags_removed")
    val tagsRemoved: List = emptyList(),
    /** Global transfer info */
    @SerialName("server_state")
    val serverState: ServerState,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy