Fix (MangasPage): crash when extensions trying to destructuring MangasPage
This commit is contained in:
parent
eb1df3ddd5
commit
126aa174ac
1 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,12 @@ open /* SY <-- */ class MangasPage(open val mangas: List<SManga>, open val hasNe
|
|||
override fun toString(): String {
|
||||
return "MangasPage(mangas=$mangas, hasNextPage=$hasNextPage)"
|
||||
}
|
||||
|
||||
// KMK -->
|
||||
// Additional methods to mimic data class behavior
|
||||
operator fun component1() = mangas
|
||||
operator fun component2() = hasNextPage
|
||||
// KMK <--
|
||||
}
|
||||
|
||||
// SY -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue