Countdown

@SerialName(value = "countdown")
data class Countdown(val mode: CardModule.CountdownMode, val startTime: Long? = null, val endTime: Long) : CardModule(source)

倒计时模块

作用说明: 展示倒计时。

规则:

e.g.

{
"type": "countdown",
"endTime" : 1608819168000, //到期的毫秒时间戳
"startTime" : 1608819168000, //起始的毫秒时间戳,仅当mode为second才有这个字段
"mode" : "day,hour,second", //倒计时样式, 按天显示,按小时显示或者按秒显示
}

Constructors

Link copied to clipboard
constructor(mode: CardModule.CountdownMode, startTime: Long? = null, endTime: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val startTime: Long? = null