commonMain.MainData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbittorrent-models-jvm Show documentation
Show all versions of qbittorrent-models-jvm Show documentation
Kotlin wrapper for the qBittorrent Web API using Ktor.
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