mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-06-21 07:38:45 +02:00
27 lines
970 B
Kotlin
27 lines
970 B
Kotlin
![]() |
package eu.kanade.data.updates
|
||
|
|
||
|
import eu.kanade.domain.manga.model.MangaCover
|
||
|
import eu.kanade.domain.updates.model.UpdatesWithRelations
|
||
|
|
||
|
val updateWithRelationMapper: (Long, String, Long, String, String?, Boolean, Boolean, Long, Boolean, String?, Long, Long, Long) -> UpdatesWithRelations = {
|
||
|
mangaId, mangaTitle, chapterId, chapterName, scanlator, read, bookmark, sourceId, favorite, thumbnailUrl, coverLastModified, _, dateFetch ->
|
||
|
UpdatesWithRelations(
|
||
|
mangaId = mangaId,
|
||
|
mangaTitle = mangaTitle,
|
||
|
chapterId = chapterId,
|
||
|
chapterName = chapterName,
|
||
|
scanlator = scanlator,
|
||
|
read = read,
|
||
|
bookmark = bookmark,
|
||
|
sourceId = sourceId,
|
||
|
dateFetch = dateFetch,
|
||
|
coverData = MangaCover(
|
||
|
mangaId = mangaId,
|
||
|
sourceId = sourceId,
|
||
|
isMangaFavorite = favorite,
|
||
|
url = thumbnailUrl,
|
||
|
lastModified = coverLastModified,
|
||
|
),
|
||
|
)
|
||
|
}
|