mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 13:37:29 +01:00
Fix cover fetching in compose views (#7315)
Make sure it passed thru the custom fetcher
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package eu.kanade.domain.history.model
|
||||
|
||||
import eu.kanade.domain.manga.model.MangaCover
|
||||
import java.util.Date
|
||||
|
||||
data class HistoryWithRelations(
|
||||
@@ -7,8 +8,8 @@ data class HistoryWithRelations(
|
||||
val chapterId: Long,
|
||||
val mangaId: Long,
|
||||
val title: String,
|
||||
val thumbnailUrl: String,
|
||||
val chapterNumber: Float,
|
||||
val readAt: Date?,
|
||||
val readDuration: Long,
|
||||
val coverData: MangaCover,
|
||||
)
|
||||
|
||||
12
app/src/main/java/eu/kanade/domain/manga/model/MangaCover.kt
Normal file
12
app/src/main/java/eu/kanade/domain/manga/model/MangaCover.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
package eu.kanade.domain.manga.model
|
||||
|
||||
/**
|
||||
* Contains the required data for MangaCoverFetcher
|
||||
*/
|
||||
data class MangaCover(
|
||||
val mangaId: Long,
|
||||
val sourceId: Long,
|
||||
val isMangaFavorite: Boolean,
|
||||
val url: String?,
|
||||
val lastModified: Long,
|
||||
)
|
||||
Reference in New Issue
Block a user