All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy