|
|
|
@ -14,18 +14,18 @@ class ScrobblingBackup(
|
|
|
|
@SerialName("chapter") val chapter: Int,
|
|
|
|
@SerialName("chapter") val chapter: Int,
|
|
|
|
@SerialName("comment") val comment: String?,
|
|
|
|
@SerialName("comment") val comment: String?,
|
|
|
|
@SerialName("rating") val rating: Float,
|
|
|
|
@SerialName("rating") val rating: Float,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
|
|
constructor(entity: ScrobblingEntity) : this(
|
|
|
|
constructor(entity: ScrobblingEntity) : this(
|
|
|
|
scrobbler = entity.scrobbler,
|
|
|
|
scrobbler = entity.scrobbler,
|
|
|
|
id = entity.id,
|
|
|
|
id = entity.id,
|
|
|
|
mangaId = entity.mangaId,
|
|
|
|
mangaId = entity.mangaId,
|
|
|
|
targetId = entity.targetId,
|
|
|
|
targetId = entity.targetId,
|
|
|
|
status = entity.status,
|
|
|
|
status = entity.status,
|
|
|
|
chapter = entity.chapter,
|
|
|
|
chapter = entity.chapter,
|
|
|
|
comment = entity.comment,
|
|
|
|
comment = entity.comment,
|
|
|
|
rating = entity.rating,
|
|
|
|
rating = entity.rating,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
fun toEntity() = ScrobblingEntity(
|
|
|
|
fun toEntity() = ScrobblingEntity(
|
|
|
|
scrobbler = scrobbler,
|
|
|
|
scrobbler = scrobbler,
|
|
|
|
@ -36,5 +36,5 @@ class ScrobblingBackup(
|
|
|
|
chapter = chapter,
|
|
|
|
chapter = chapter,
|
|
|
|
comment = comment,
|
|
|
|
comment = comment,
|
|
|
|
rating = rating,
|
|
|
|
rating = rating,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|