TicketConfiguration

用于配置 QGBotFileConfiguration.Ticket 信息的配置属性, 提供多种可选的配置方案。

{
"ticket": {
"type": "...",
"prop1": "v1"
}
}

Author

ForteScarlet

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@SerialName(value = "env")
data class Env(val appId: String, val secret: String, val token: String, val plain: Boolean = false) : TicketConfiguration

使用JVM参数或环境变量来读取 QGBotFileConfiguration.Ticket 中对应的配置类型。

Link copied to clipboard
@SerialName(value = "plain")
data class Plain(val appId: String, val secret: String, val token: String) : TicketConfiguration

QGBotFileConfiguration.Ticket 一致的配置类型, 也是 TicketConfiguration 的默认方案。

Functions

Link copied to clipboard