Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
@SerialName(value = "action-group")
data class ActionGroup(val elements: List<CardElement.Button> = emptyList()) : CardModule

交互模块

Link copied to clipboard
@SerialName(value = "container")
data class Container(val elements: List<CardElement.Image>) : CardModule

容器模块

Link copied to clipboard
@SerialName(value = "context")
data class Context(val elements: List<CardElement>) : CardModule

备注模块

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

倒计时模块

Link copied to clipboard

倒计时样式, 按天显示,按小时显示或者按秒显示。

Link copied to clipboard
@SerialName(value = "divider")
data object Divider : CardModule

分割线模块

Link copied to clipboard

文件模块

Link copied to clipboard
@SerialName(value = "header")
data class Header(val text: CardElement.Text) : CardModule

标题模块

Link copied to clipboard
@SerialName(value = "image-group")
data class ImageGroup(val elements: List<CardElement.Image>) : CardModule

图片组模块

Link copied to clipboard
@SerialName(value = "invite")
data class Invite(val code: String) : CardModule

邀请模块

Link copied to clipboard
@SerialName(value = "section")
data class Section @JvmOverloads constructor(val mode: CardModule.SectionMode = SectionMode.LEFT, val text: CardElement, val accessory: CardElement? = null) : CardModule

内容模块

Link copied to clipboard

Section 中的 Section.mode 属性类型,代表 Section.accessory 是放置在左侧还是在右侧。