-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add model constants CollectionType, ItemSortBy, MediaType and PersonType
- Loading branch information
1 parent
0c3ace6
commit 3a42563
Showing
5 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/CollectionType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
35 changes: 35 additions & 0 deletions
35
jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/ItemSortBy.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
9 changes: 9 additions & 0 deletions
9
jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/MediaType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
68 changes: 68 additions & 0 deletions
68
jellyfin-model/src/commonMain/kotlin/org/jellyfin/sdk/model/constant/PersonType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |