Fix (MangasPage): crash when extensions trying to destructuring MangasPage
This commit is contained in:
parent
8f7bbadb52
commit
de9473b239
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 {
|
override fun toString(): String {
|
||||||
return "MangasPage(mangas=$mangas, hasNextPage=$hasNextPage)"
|
return "MangasPage(mangas=$mangas, hasNextPage=$hasNextPage)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// KMK -->
|
||||||
|
// Additional methods to mimic data class behavior
|
||||||
|
operator fun component1() = mangas
|
||||||
|
operator fun component2() = hasNextPage
|
||||||
|
// KMK <--
|
||||||
}
|
}
|
||||||
|
|
||||||
// SY -->
|
// SY -->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue