29 lines
1,008 B
Kotlin
29 lines
1,008 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,
|
||
|
|
// SY -->
|
||
|
|
ogMangaTitle = mangaTitle,
|
||
|
|
// SY <--
|
||
|
|
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,
|
||
|
|
),
|
||
|
|
)
|
||
|
|
}
|