diff --git a/jellyfin-model/api/jellyfin-model.api b/jellyfin-model/api/jellyfin-model.api index 0eaf944e5..246e0e7ad 100644 --- a/jellyfin-model/api/jellyfin-model.api +++ b/jellyfin-model/api/jellyfin-model.api @@ -11776,6 +11776,80 @@ public final class org/jellyfin/sdk/model/api/XmlAttribute$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class org/jellyfin/sdk/model/constant/CollectionType { + public static final field Books Ljava/lang/String; + public static final field BoxSets Ljava/lang/String; + public static final field Folders Ljava/lang/String; + public static final field HomeVideos Ljava/lang/String; + public static final field INSTANCE Lorg/jellyfin/sdk/model/constant/CollectionType; + public static final field LiveTv Ljava/lang/String; + public static final field Movies Ljava/lang/String; + public static final field Music Ljava/lang/String; + public static final field MusicVideos Ljava/lang/String; + public static final field Photos Ljava/lang/String; + public static final field Playlists Ljava/lang/String; + public static final field Trailers Ljava/lang/String; + public static final field TvShows Ljava/lang/String; +} + +public final class org/jellyfin/sdk/model/constant/ItemSortBy { + public static final field AirTime Ljava/lang/String; + public static final field AiredEpisodeOrder Ljava/lang/String; + public static final field Album Ljava/lang/String; + public static final field AlbumArtist Ljava/lang/String; + public static final field Artist Ljava/lang/String; + public static final field CommunityRating Ljava/lang/String; + public static final field CriticRating Ljava/lang/String; + public static final field DateCreated Ljava/lang/String; + public static final field DateLastContentAdded Ljava/lang/String; + public static final field DatePlayed Ljava/lang/String; + public static final field INSTANCE Lorg/jellyfin/sdk/model/constant/ItemSortBy; + public static final field IndexNumber Ljava/lang/String; + public static final field IsFavoriteOrLiked Ljava/lang/String; + public static final field IsFolder Ljava/lang/String; + public static final field IsPlayed Ljava/lang/String; + public static final field IsUnplayed Ljava/lang/String; + public static final field Name Ljava/lang/String; + public static final field OfficialRating Ljava/lang/String; + public static final field ParentIndexNumber Ljava/lang/String; + public static final field PlayCount Ljava/lang/String; + public static final field PremiereDate Ljava/lang/String; + public static final field ProductionYear Ljava/lang/String; + public static final field Random Ljava/lang/String; + public static final field Runtime Ljava/lang/String; + public static final field SeriesDatePlayed Ljava/lang/String; + public static final field SeriesSortName Ljava/lang/String; + public static final field SimilarityScore Ljava/lang/String; + public static final field SortName Ljava/lang/String; + public static final field StartDate Ljava/lang/String; + public static final field Studio Ljava/lang/String; + public static final field VideoBitRate Ljava/lang/String; +} + +public final class org/jellyfin/sdk/model/constant/MediaType { + public static final field Audio Ljava/lang/String; + public static final field Book Ljava/lang/String; + public static final field INSTANCE Lorg/jellyfin/sdk/model/constant/MediaType; + public static final field Photo Ljava/lang/String; + public static final field Video Ljava/lang/String; +} + +public final class org/jellyfin/sdk/model/constant/PersonType { + public static final field Actor Ljava/lang/String; + public static final field Arranger Ljava/lang/String; + public static final field Composer Ljava/lang/String; + public static final field Conductor Ljava/lang/String; + public static final field Director Ljava/lang/String; + public static final field Engineer Ljava/lang/String; + public static final field GuestStar Ljava/lang/String; + public static final field INSTANCE Lorg/jellyfin/sdk/model/constant/PersonType; + public static final field Lyricist Ljava/lang/String; + public static final field Mixer Ljava/lang/String; + public static final field Producer Ljava/lang/String; + public static final field Remixer Ljava/lang/String; + public static final field Writer Ljava/lang/String; +} + public final class org/jellyfin/sdk/model/extensions/GeneralCommandMessageExtensionsKt { public static final fun contains (Lorg/jellyfin/sdk/model/socket/GeneralCommandMessage;Ljava/lang/String;)Z public static final fun get (Lorg/jellyfin/sdk/model/socket/GeneralCommandMessage;Ljava/lang/String;)Ljava/lang/String; diff --git a/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/CollectionType.kt b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/CollectionType.kt new file mode 100644 index 000000000..3ec7640df --- /dev/null +++ b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/CollectionType.kt @@ -0,0 +1,17 @@ +package org.jellyfin.sdk.model.constant + +// https://github.com/jellyfin/jellyfin/blob/v10.8.4/MediaBrowser.Model/Entities/CollectionType.cs +public object CollectionType { + public const val Movies: String = "movies" + public const val TvShows: String = "tvshows" + public const val Music: String = "music" + public const val MusicVideos: String = "musicvideos" + public const val Trailers: String = "trailers" + public const val HomeVideos: String = "homevideos" + public const val BoxSets: String = "boxsets" + public const val Books: String = "books" + public const val Photos: String = "photos" + public const val LiveTv: String = "livetv" + public const val Playlists: String = "playlists" + public const val Folders: String = "folders" +} diff --git a/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/ItemSortBy.kt b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/ItemSortBy.kt new file mode 100644 index 000000000..dd18824fa --- /dev/null +++ b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/ItemSortBy.kt @@ -0,0 +1,35 @@ +package org.jellyfin.sdk.model.constant + +// https://github.com/jellyfin/jellyfin/blob/v10.8.4/MediaBrowser.Model/Querying/ItemSortBy.cs +public object ItemSortBy { + public const val AiredEpisodeOrder: String = "AiredEpisodeOrder" + public const val Album: String = "Album" + public const val AlbumArtist: String = "AlbumArtist" + public const val Artist: String = "Artist" + public const val DateCreated: String = "DateCreated" + public const val OfficialRating: String = "OfficialRating" + public const val DatePlayed: String = "DatePlayed" + public const val PremiereDate: String = "PremiereDate" + public const val StartDate: String = "StartDate" + public const val SortName: String = "SortName" + public const val Name: String = "Name" + public const val Random: String = "Random" + public const val Runtime: String = "Runtime" + public const val CommunityRating: String = "CommunityRating" + public const val ProductionYear: String = "ProductionYear" + public const val PlayCount: String = "PlayCount" + public const val CriticRating: String = "CriticRating" + public const val IsFolder: String = "IsFolder" + public const val IsUnplayed: String = "IsUnplayed" + public const val IsPlayed: String = "IsPlayed" + public const val SeriesSortName: String = "SeriesSortName" + public const val VideoBitRate: String = "VideoBitRate" + public const val AirTime: String = "AirTime" + public const val Studio: String = "Studio" + public const val IsFavoriteOrLiked: String = "IsFavoriteOrLiked" + public const val DateLastContentAdded: String = "DateLastContentAdded" + public const val SeriesDatePlayed: String = "SeriesDatePlayed" + public const val ParentIndexNumber: String = "ParentIndexNumber" + public const val IndexNumber: String = "IndexNumber" + public const val SimilarityScore: String = "SimilarityScore" +} diff --git a/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/MediaType.kt b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/MediaType.kt new file mode 100644 index 000000000..12307d6b6 --- /dev/null +++ b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/MediaType.kt @@ -0,0 +1,9 @@ +package org.jellyfin.sdk.model.constant + +// https://github.com/jellyfin/jellyfin/blob/v10.8.4/MediaBrowser.Model/Entities/MediaType.cs +public object MediaType { + public const val Video: String = "Video" + public const val Audio: String = "Audio" + public const val Photo: String = "Photo" + public const val Book: String = "Book" +} diff --git a/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/PersonType.kt b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/PersonType.kt new file mode 100644 index 000000000..45220874b --- /dev/null +++ b/jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/PersonType.kt @@ -0,0 +1,68 @@ +package org.jellyfin.sdk.model.constant + +// https://github.com/jellyfin/jellyfin/blob/v10.8.4/MediaBrowser.Model/Entities/PersonType.cs +public object PersonType { + /** + * A person whose profession is acting on the stage, in films, or on television. + */ + public const val Actor: String = "Actor" + + /** + * A person who supervises the actors and other staff in a film, play, or similar production. + */ + public const val Director: String = "Director" + + /** + * A person who writes music, especially as a professional occupation. + */ + public const val Composer: String = "Composer" + + /** + * A writer of a book, article, or document. Can also be used as a generic term for music writer if there is a lack + * of specificity. + */ + public const val Writer: String = "Writer" + + /** + * A well-known actor or other performer who appears in a work in which they do not have a regular role. + */ + public const val GuestStar: String = "GuestStar" + + /** + * A person responsible for the financial and managerial aspects of the making of a film or broadcast or for staging + * a play, opera, etc. + */ + public const val Producer: String = "Producer" + + /** + * A person who directs the performance of an orchestra or choir. + */ + public const val Conductor: String = "Conductor" + + /** + * A person who writes the words to a song or musical. + */ + public const val Lyricist: String = "Lyricist" + + /** + * A person who adapts a musical composition for performance. + */ + public const val Arranger: String = "Arranger" + + /** + * An audio engineer who performed a general engineering role. + */ + public const val Engineer: String = "Engineer" + + /** + * An engineer responsible for using a mixing console to mix a recorded track into a single piece of music suitable + * for release. + */ + public const val Mixer: String = "Mixer" + + /** + * A person who remixed a recording by taking one or more other tracks, substantially altering them and mixing them + * together with other material. + */ + public const val Remixer: String = "Remixer" +}