mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-15 06:15:27 +00:00
22 lines
519 B
Kotlin
22 lines
519 B
Kotlin
|
package dev.inmo.tgbotapi.webapps.biometric
|
||
|
|
||
|
import kotlinx.serialization.Serializable
|
||
|
|
||
|
@Serializable
|
||
|
value class BiometricType(
|
||
|
val title: String
|
||
|
) {
|
||
|
val isFinger: Boolean
|
||
|
get() = title == FingerTypeTitle
|
||
|
val isFace: Boolean
|
||
|
get() = title == FaceTypeTitle
|
||
|
val isUnknown: Boolean
|
||
|
get() = title == UnknownTypeTitle
|
||
|
|
||
|
companion object {
|
||
|
const val FingerTypeTitle = "finger"
|
||
|
const val FaceTypeTitle = "face"
|
||
|
const val UnknownTypeTitle = "unknown"
|
||
|
}
|
||
|
}
|