dk.nodes.nstack.kotlin.models.Message.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nstack-kotlin-core Show documentation
Show all versions of nstack-kotlin-core Show documentation
nstack.io library for translations, update management and more.
package dk.nodes.nstack.kotlin.models
import com.google.gson.annotations.SerializedName
data class Message(
val id: Int,
val showSetting: ShowSetting,
val message: String,
val url: String?,
val localization: Localization
) {
data class Localization(
val okBtn: String?,
val urlBtn: String?
)
enum class ShowSetting {
@SerializedName("show_once")
ONCE,
@SerializedName("show_always")
ALWAYS
}
}