BookProgress.kt 522 B

123456789101112131415161718192021
  1. package io.legato.kazusa.data.entities
  2. data class BookProgress(
  3. val name: String,
  4. val author: String,
  5. val durChapterIndex: Int,
  6. val durChapterPos: Int,
  7. val durChapterTime: Long,
  8. val durChapterTitle: String?
  9. ) {
  10. constructor(book: Book) : this(
  11. name = book.name,
  12. author = book.author,
  13. durChapterIndex = book.durChapterIndex,
  14. durChapterPos = book.durChapterPos,
  15. durChapterTime = book.durChapterTime,
  16. durChapterTitle = book.durChapterTitle
  17. )
  18. }