fixed SimklApi subscription

This commit is contained in:
LagradOst 2023-08-12 23:41:53 +02:00
parent d2d2e41fb3
commit 3ab9e11350

View file

@ -316,9 +316,12 @@ class SimklApi(index: Int) : AccountManager(index), SyncAPI {
/** https://simkl.docs.apiary.io/#reference/sync/get-all-items/get-all-items-in-the-user's-watchlist */ /** https://simkl.docs.apiary.io/#reference/sync/get-all-items/get-all-items-in-the-user's-watchlist */
data class AllItemsResponse( data class AllItemsResponse(
val shows: List<ShowMetadata>, @JsonProperty("shows")
val anime: List<ShowMetadata>, val shows: List<ShowMetadata> = emptyList(),
val movies: List<MovieMetadata>, @JsonProperty("anime")
val anime: List<ShowMetadata> = emptyList(),
@JsonProperty("movies")
val movies: List<MovieMetadata> = emptyList(),
) { ) {
companion object { companion object {
fun merge(first: AllItemsResponse?, second: AllItemsResponse?): AllItemsResponse { fun merge(first: AllItemsResponse?, second: AllItemsResponse?): AllItemsResponse {