Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com> Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> (cherry picked from commit 49b2b346b65c2631a8369c8f6643e945720770de)
37 lines
896 B
Kotlin
37 lines
896 B
Kotlin
package tachiyomi.data.track
|
|
|
|
import tachiyomi.domain.track.model.Track
|
|
|
|
object TrackMapper {
|
|
fun mapTrack(
|
|
id: Long,
|
|
mangaId: Long,
|
|
syncId: Long,
|
|
remoteId: Long,
|
|
libraryId: Long?,
|
|
title: String,
|
|
lastChapterRead: Double,
|
|
totalChapters: Long,
|
|
status: Long,
|
|
score: Double,
|
|
remoteUrl: String,
|
|
startDate: Long,
|
|
finishDate: Long,
|
|
private: Boolean,
|
|
): Track = Track(
|
|
id = id,
|
|
mangaId = mangaId,
|
|
trackerId = syncId,
|
|
remoteId = remoteId,
|
|
libraryId = libraryId,
|
|
title = title,
|
|
lastChapterRead = lastChapterRead,
|
|
totalChapters = totalChapters,
|
|
status = status,
|
|
score = score,
|
|
remoteUrl = remoteUrl,
|
|
startDate = startDate,
|
|
finishDate = finishDate,
|
|
private = private,
|
|
)
|
|
}
|