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

commonMain.cache.data.ClientStatusData.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.core.cache.data

import dev.kord.common.entity.DiscordClientStatus
import dev.kord.common.entity.PresenceStatus
import dev.kord.common.entity.optional.Optional
import kotlinx.serialization.Serializable

@Serializable
public data class ClientStatusData(
    val desktop: Optional = Optional.Missing(),
    val mobile: Optional = Optional.Missing(),
    val web: Optional = Optional.Missing()
) {
    public companion object {
        public fun from(entity: DiscordClientStatus): ClientStatusData = with(entity) {
            ClientStatusData(desktop, mobile, web)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy