refactor(manga): Slowly using flow

This commit is contained in:
Ahmad Ansori Palembani 2024-12-16 20:43:37 +07:00
parent 50cad86c0c
commit 2ef1195a90
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 145 additions and 134 deletions

View file

@ -35,6 +35,29 @@ interface Manga : SManga {
var cover_last_modified: Long
override fun copy(): Manga {
return (super.copy() as Manga).also {
it.id = this.id
it.source = this.source
it.favorite = this.favorite
it.last_update = this.last_update
it.date_added = this.date_added
it.viewer_flags = this.viewer_flags
it.chapter_flags = this.chapter_flags
it.hide_title = this.hide_title
it.filtered_scanlators = this.filtered_scanlators
it.ogTitle = this.ogTitle
it.ogAuthor = this.ogAuthor
it.ogArtist = this.ogArtist
it.ogDesc = this.ogDesc
it.ogGenre = this.ogGenre
it.ogStatus = this.ogStatus
it.cover_last_modified = this.cover_last_modified
}
}
@Deprecated("Use ogTitle directly instead", ReplaceWith("ogTitle"))
val originalTitle: String
get() = ogTitle