pull/32/head
parent
88c66a83b7
commit
22b1238bd2
@ -1,3 +1,15 @@ |
||||
package io.legado.app.ui.widget.page |
||||
|
||||
data class TextChapter(val position: Int, val title: String, val pages: List<TextPage>) |
||||
data class TextChapter( |
||||
val position: Int, |
||||
val title: String, |
||||
val pages: List<TextPage> |
||||
) { |
||||
fun getPage(index: Int): TextPage? { |
||||
if (index >= 0 && index < pages.size) { |
||||
return pages[index] |
||||
} |
||||
return null |
||||
} |
||||
} |
||||
|
||||
|
Loading…
Reference in new issue