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

commonMain.LogEntry.kt Maven / Gradle / Ivy

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