xyz.cssxsh.bilibili.data.dynamic.RichText.kt Maven / Gradle / Ivy
The newest version!
package xyz.cssxsh.bilibili.data.dynamic
import kotlinx.serialization.*
@Serializable
data class RichText(
@SerialName("rich_text_nodes")
val nodes: List,
@SerialName("text")
val text: String
) {
companion object {
fun simple(text: String): RichText = RichText(text = text, nodes = emptyList())
}
}