commonMain.qbittorrent.models.TorrentSerialNameMap.kt Maven / Gradle / Ivy
package qbittorrent.models
import kotlin.String
internal object TorrentSerialNameMap {
public fun map(fieldName: String): String = when (fieldName) {
"addedOn" -> "added_on"
"amountLeft" -> "amount_left"
"autoTmm" -> "auto_tmm"
"completedOn" -> "completion_on"
"contentPath" -> "content_path"
"dlLimit" -> "dl_limit"
"downloadedSession" -> "downloaded_session"
"firstLastPiecePriority" -> "f_l_piece_prio"
"forceStart" -> "force_start"
"lastActivity" -> "last_activity"
"magnetUri" -> "magnet_uri"
"maxRatio" -> "max_ratio"
"maxSeedingTime" -> "max_seeding_time"
"seedsInSwarm" -> "num_complete"
"leechersInSwarm" -> "num_incomplete"
"connectedLeechers" -> "num_leechs"
"connectedSeeds" -> "num_seeds"
"ratioLimit" -> "ratio_limit"
"savePath" -> "save_path"
"seedingTimeLimit" -> "seeding_time_limit"
"seenCompleted" -> "seen_complete"
"sequentialDownload" -> "seq_dl"
"superSeeding" -> "super_seeding"
"timeActive" -> "time_active"
"seedingTime" -> "seeding_time"
"totalSize" -> "total_size"
"uploadLimit" -> "up_limit"
"uploadedSession" -> "uploaded_session"
"uploadSpeed" -> "upspeed"
else -> fieldName
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy