mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: More domain module Manga prep
This commit is contained in:
parent
f94e69cdf8
commit
de48b52ec3
6 changed files with 39 additions and 7 deletions
|
@ -24,6 +24,11 @@ interface SManga : Serializable {
|
|||
|
||||
var initialized: Boolean
|
||||
|
||||
fun getGenres(): List<String>? {
|
||||
if (genre.isNullOrBlank()) return null
|
||||
return genre?.split(", ")?.map { it.trim() }?.filterNot { it.isBlank() }?.distinct()
|
||||
}
|
||||
|
||||
fun copy() = create().also {
|
||||
it.url = url
|
||||
it.title = title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue