commonMain.MainData.kt Maven / Gradle / Ivy
package qbittorrent.models
import dev.drewhamilton.poko.Poko
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import qbittorrent.models.serialization.KeyMergingTransformer
@Poko
@Serializable
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 - 2024 Weber Informatics LLC | Privacy Policy