MutableChapterContent

class MutableChapterContent(id: String, title: String, content: JsonObject, lastChapter: String = "", nextChapter: String = "") : ChapterContent

可变的章节内容对象 其中每一个成员都是可被UI观测的

Since

Api 2

Parameters

id

章节id

title

章节标题

content

章节内容的JSON对象

lastChapter

上一章的章节id,默认为空字符串

nextChapter

下一章的章节id,默认为空字符串

Constructors

Link copied to clipboard
constructor(id: String, title: String, content: JsonObject, lastChapter: String = "", nextChapter: String = "")

返回可变章节内容对象

Types

Link copied to clipboard
object Companion

可变章节内容工厂方法集合

Properties

Link copied to clipboard
open override var content: JsonObject

章节内容的JSON对象,内含组件列表

Link copied to clipboard
open override var id: String

章节id

Link copied to clipboard
open override var lastChapter: String

上一章的章节id,默认为空字符串

Link copied to clipboard
open override var nextChapter: String

下一章的章节id,默认为空字符串

Link copied to clipboard
open override var title: String

章节标题

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

判断两个MutableChapterContent是否相等

Link copied to clipboard
open override fun hashCode(): Int

基于id、title、content、lastChapter、nextChapter计算哈希値

Link copied to clipboard
fun update(chapterContent: ChapterContent)

用另一个章节内容对象的数据更新自身