Package-level declarations

Types

Link copied to clipboard

书本详情接口

Link copied to clipboard

书本相关的Api

Link copied to clipboard
data class BookVolumes(val bookId: String, val volumes: List<Volume>) : CanBeEmpty

书本卷目录

Link copied to clipboard
interface CanBeEmpty

可判断是否为空的对象接口

Link copied to clipboard

章节内容接口

Link copied to clipboard
data class ChapterInformation(val id: String, val title: String) : CanBeEmpty

章节基础信息

Link copied to clipboard
interface Copyable<T>

可复制对象接口

Link copied to clipboard

本地书本数据源接口 提供对本地存储的书本数据的增删改查操作

Link copied to clipboard
class MutableBookInformation(id: String, title: String, subtitle: String, coverUrl: Uri, author: String, description: String, tags: List<String>, publishingHouse: String, wordCount: WordCount, lastUpdated: LocalDateTime, isComplete: Boolean) : BookInformation

可变的书本详情对象 其中每一个成员都是可被UI观测的

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

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

Link copied to clipboard
class MutableUserReadingData(id: String, lastReadTime: LocalDateTime, totalReadTime: Int, readingProgress: Float, lastReadChapterId: String, lastReadChapterTitle: String, currentChapterReadingProgressMap: Map<String, Float>, maxChapterReadingProgressMap: Map<String, Float>) : UserReadingData

可变的用户书本阅读数据对象 其中每一个成员都是可被UI观测的

Link copied to clipboard

用户书本阅读数据接口

Link copied to clipboard
data class Volume(val volumeId: String, val volumeTitle: String, val chapters: List<ChapterInformation>) : CanBeEmpty

书本卷信息

Link copied to clipboard
@Serializable
data class WordCount(val count: Int, val unit: String?, @StringRes val unitResId: Int?)

用于存储书本字数的对象 可以灵活更变其单位 如果unit与unitResId都是null 那么会默认使用 字 作为单位

Functions

Link copied to clipboard

判断可空的CanBeEmpty对象是否为null或空