io.api.bloxy.model.dto.DangerLevel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bloxy-api Show documentation
Show all versions of bloxy-api Show documentation
Kotlin & Java Library for all available Bloxy API endpoints
package io.api.bloxy.model.dto
/**
* Possible warning level (check model notes/annotation for more info)
*
* @author GoodforGod
* @since 17.11.2018
*/
enum class DangerLevel {
SUCCESS,
WARNING,
DANGER,
UNKNOWN;
companion object {
fun parse(value:String) : DangerLevel {
return when(value) {
"success" -> SUCCESS
"warning" -> WARNING
"danger" -> DANGER
else -> UNKNOWN
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy