mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-11-19 13:55:57 +00:00
23 lines
651 B
Kotlin
23 lines
651 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"
|
|
|
|
inline val dev.inmo.tgbotapi.webapps.args.ArgStatusObject.isCancelled: Boolean
|
|
get() = status == "cancelled"
|
|
|
|
inline val dev.inmo.tgbotapi.webapps.args.ArgStatusObject.isAllowed: Boolean
|
|
get() = status == "allowed"
|
|
|
|
inline val dev.inmo.tgbotapi.webapps.args.ArgStatusObject.isSent: Boolean
|
|
get() = status == "sent" |