mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-01 07:25:23 +00:00
14 lines
323 B
Kotlin
14 lines
323 B
Kotlin
package dev.inmo.tgbotapi.webapps
|
|
|
|
external interface RequestStatus {
|
|
val status: String
|
|
}
|
|
|
|
inline val RequestStatus.isCancelled: Boolean
|
|
get() = status == "cancelled"
|
|
|
|
inline val RequestStatus.isAllowed: Boolean
|
|
get() = status == "allowed"
|
|
|
|
inline val RequestStatus.isSent: Boolean
|
|
get() = status == "sent" |