mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Add favorites page (#55)
Closes #38 Add a nav drawer link to a new favorites page which shows favorited Movies, TV Shows, and Episodes. Also adds a button to movies & tv shows to set/unset favorite status.
This commit is contained in:
parent
298016b131
commit
b8202c06ff
17 changed files with 437 additions and 80 deletions
|
|
@ -4,6 +4,7 @@ package com.github.damontecres.wholphin.data.model
|
|||
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.UseSerializers
|
||||
import org.jellyfin.sdk.model.api.BaseItemKind
|
||||
import org.jellyfin.sdk.model.api.request.GetItemsRequest
|
||||
import org.jellyfin.sdk.model.serializer.UUIDSerializer
|
||||
import java.util.UUID
|
||||
|
|
@ -17,9 +18,11 @@ data class GetItemsFilter(
|
|||
val played: Boolean? = null,
|
||||
val studios: List<UUID>? = null,
|
||||
val tags: List<String>? = null,
|
||||
val includeItemTypes: List<BaseItemKind>? = null,
|
||||
) {
|
||||
fun applyTo(req: GetItemsRequest) =
|
||||
req.copy(
|
||||
includeItemTypes = includeItemTypes,
|
||||
isFavorite = favorite,
|
||||
genreIds = genres,
|
||||
minCriticRating = minCriticRating,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue