pull/43/head
parent
baf0378bbc
commit
07e9c4b3e6
@ -1,29 +0,0 @@ |
||||
package io.legado.app.ui.book.search |
||||
|
||||
import io.legado.app.utils.splitNotBlank |
||||
|
||||
data class SearchEntity( |
||||
var name: String = "", |
||||
var author: String = "", |
||||
var kind: String? = null, |
||||
var coverUrl: String? = null, |
||||
var intro: String? = null, |
||||
var wordCount: String? = null, |
||||
var latestChapterTitle: String? = null, |
||||
var time: Long = 0L, |
||||
var originCount: Int = 0 |
||||
) { |
||||
|
||||
fun getKindList(): List<String> { |
||||
val kindList = arrayListOf<String>() |
||||
wordCount?.let { |
||||
if (it.isNotBlank()) kindList.add(it) |
||||
} |
||||
kind?.let { |
||||
val kinds = it.splitNotBlank(",", "\n") |
||||
kindList.addAll(kinds) |
||||
} |
||||
return kindList |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue