commonMain.LogEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbittorrent-models Show documentation
Show all versions of qbittorrent-models Show documentation
Kotlin wrapper for the qBittorrent Web API using Ktor.
The newest version!
package qbittorrent.models
import dev.drewhamilton.poko.Poko
import kotlinx.serialization.Serializable
@Poko
@Serializable
class LogEntry(
/** ID of the message */
val id: Int,
/** Text of the message */
val message: String,
/** Milliseconds since epoch */
val timestamp: Long,
/**
* Type of the message
*
* @see TYPE_NORMAL
* @see TYPE_INFO
* @see TYPE_WARNING
* @see TYPE_CRITICAL
*/
val type: Int
) {
companion object {
const val TYPE_NORMAL = 1
const val TYPE_INFO = 2
const val TYPE_WARNING = 4
const val TYPE_CRITICAL = 8
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy