mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-23 22:09:53 +00:00
Update generated sources
This commit is contained in:
parent
28cedc4ff1
commit
198b12fcc9
@ -163,7 +163,7 @@ public class ArtistsApi(
|
||||
/**
|
||||
* Gets all album artists from a given item, folder, or the entire library.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getAlbumArtists(request: GetAlbumArtistsRequest = GetAlbumArtistsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getAlbumArtists(
|
||||
@ -351,7 +351,7 @@ public class ArtistsApi(
|
||||
/**
|
||||
* Gets all artists from a given item, folder, or the entire library.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getArtists(request: GetArtistsRequest = GetArtistsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getArtists(
|
||||
|
@ -209,7 +209,7 @@ public class AudioApi(
|
||||
/**
|
||||
* Gets an audio stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getAudioStream(request: GetAudioStreamRequest): Response<ByteReadChannel> =
|
||||
getAudioStream(
|
||||
@ -625,7 +625,7 @@ public class AudioApi(
|
||||
/**
|
||||
* Gets an audio stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getAudioStreamByContainer(request: GetAudioStreamByContainerRequest):
|
||||
Response<ByteReadChannel> = getAudioStreamByContainer(
|
||||
|
@ -107,7 +107,7 @@ public class ChannelsApi(
|
||||
/**
|
||||
* Get channel items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getChannelItems(request: GetChannelItemsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getChannelItems(
|
||||
@ -159,7 +159,7 @@ public class ChannelsApi(
|
||||
/**
|
||||
* Gets available channels.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getChannels(request: GetChannelsRequest = GetChannelsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getChannels(
|
||||
@ -208,7 +208,7 @@ public class ChannelsApi(
|
||||
/**
|
||||
* Gets latest channel items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getLatestChannelItems(request: GetLatestChannelItemsRequest =
|
||||
GetLatestChannelItemsRequest()): Response<BaseItemDtoQueryResult> = getLatestChannelItems(
|
||||
|
@ -230,7 +230,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets a video stream using HTTP live streaming.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getHlsAudioSegment(request: GetHlsAudioSegmentRequest):
|
||||
Response<ByteReadChannel> = getHlsAudioSegment(
|
||||
@ -686,7 +686,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets a video stream using HTTP live streaming.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getHlsVideoSegment(request: GetHlsVideoSegmentRequest):
|
||||
Response<ByteReadChannel> = getHlsVideoSegment(
|
||||
@ -1136,7 +1136,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets a hls live stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getLiveHlsStream(request: GetLiveHlsStreamRequest): Response<ByteReadChannel> =
|
||||
getLiveHlsStream(
|
||||
@ -1567,7 +1567,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets an audio hls playlist stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getMasterHlsAudioPlaylist(request: GetMasterHlsAudioPlaylistRequest):
|
||||
Response<ByteReadChannel> = getMasterHlsAudioPlaylist(
|
||||
@ -1993,7 +1993,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets a video hls playlist stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getMasterHlsVideoPlaylist(request: GetMasterHlsVideoPlaylistRequest):
|
||||
Response<ByteReadChannel> = getMasterHlsVideoPlaylist(
|
||||
@ -2416,7 +2416,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets an audio stream using HTTP live streaming.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getVariantHlsAudioPlaylist(request: GetVariantHlsAudioPlaylistRequest):
|
||||
Response<ByteReadChannel> = getVariantHlsAudioPlaylist(
|
||||
@ -2834,7 +2834,7 @@ public class DynamicHlsApi(
|
||||
/**
|
||||
* Gets a video stream using HTTP live streaming.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getVariantHlsVideoPlaylist(request: GetVariantHlsVideoPlaylistRequest):
|
||||
Response<ByteReadChannel> = getVariantHlsVideoPlaylist(
|
||||
|
@ -73,7 +73,7 @@ public class FilterApi(
|
||||
/**
|
||||
* Gets query filters.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getQueryFilters(request: GetQueryFiltersRequest = GetQueryFiltersRequest()):
|
||||
Response<QueryFilters> = getQueryFilters(
|
||||
|
@ -125,7 +125,7 @@ public class GenresApi(
|
||||
/**
|
||||
* Gets all genres from a given item, folder, or the entire library.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getGenres(request: GetGenresRequest = GetGenresRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getGenres(
|
||||
|
@ -245,7 +245,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get artist image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getArtistImage(request: GetArtistImageRequest): Response<ByteReadChannel> =
|
||||
getArtistImage(
|
||||
@ -421,7 +421,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get artist image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getArtistImageDeprecated(request: GetArtistImageDeprecatedRequest):
|
||||
@ -599,7 +599,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getGenreImage(request: GetGenreImageRequest): Response<ByteReadChannel> =
|
||||
getGenreImage(
|
||||
@ -770,7 +770,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getGenreImageByIndex(request: GetGenreImageByIndexRequest):
|
||||
Response<ByteReadChannel> = getGenreImageByIndex(
|
||||
@ -946,7 +946,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getGenreImageByIndexDeprecated(request: GetGenreImageByIndexDeprecatedRequest):
|
||||
@ -1129,7 +1129,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getGenreImageDeprecated(request: GetGenreImageDeprecatedRequest):
|
||||
@ -1307,7 +1307,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Gets the item's image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getItemImage(request: GetItemImageRequest): Response<ByteReadChannel> =
|
||||
getItemImage(
|
||||
@ -1479,7 +1479,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Gets the item's image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getItemImage2(request: GetItemImage2Request): Response<ByteReadChannel> =
|
||||
getItemImage2(
|
||||
@ -1656,7 +1656,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Gets the item's image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getItemImage2Deprecated(request: GetItemImage2DeprecatedRequest):
|
||||
@ -1834,7 +1834,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Gets the item's image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getItemImageByIndex(request: GetItemImageByIndexRequest):
|
||||
Response<ByteReadChannel> = getItemImageByIndex(
|
||||
@ -2010,7 +2010,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Gets the item's image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getItemImageByIndexDeprecated(request: GetItemImageByIndexDeprecatedRequest):
|
||||
@ -2193,7 +2193,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Gets the item's image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getItemImageDeprecated(request: GetItemImageDeprecatedRequest):
|
||||
@ -2387,7 +2387,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get music genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getMusicGenreImage(request: GetMusicGenreImageRequest):
|
||||
Response<ByteReadChannel> = getMusicGenreImage(
|
||||
@ -2558,7 +2558,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get music genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getMusicGenreImageByIndex(request: GetMusicGenreImageByIndexRequest):
|
||||
Response<ByteReadChannel> = getMusicGenreImageByIndex(
|
||||
@ -2734,7 +2734,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get music genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend
|
||||
@ -2918,7 +2918,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get music genre image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getMusicGenreImageDeprecated(request: GetMusicGenreImageDeprecatedRequest):
|
||||
@ -3096,7 +3096,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get person image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getPersonImage(request: GetPersonImageRequest): Response<ByteReadChannel> =
|
||||
getPersonImage(
|
||||
@ -3267,7 +3267,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get person image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getPersonImageByIndex(request: GetPersonImageByIndexRequest):
|
||||
Response<ByteReadChannel> = getPersonImageByIndex(
|
||||
@ -3443,7 +3443,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get person image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend
|
||||
@ -3627,7 +3627,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get person image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getPersonImageDeprecated(request: GetPersonImageDeprecatedRequest):
|
||||
@ -3785,7 +3785,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Generates or gets the splashscreen.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSplashscreen(request: GetSplashscreenRequest = GetSplashscreenRequest()):
|
||||
Response<ByteReadChannel> = getSplashscreen(
|
||||
@ -3930,7 +3930,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get studio image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getStudioImage(request: GetStudioImageRequest): Response<ByteReadChannel> =
|
||||
getStudioImage(
|
||||
@ -4101,7 +4101,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get studio image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getStudioImageByIndex(request: GetStudioImageByIndexRequest):
|
||||
Response<ByteReadChannel> = getStudioImageByIndex(
|
||||
@ -4277,7 +4277,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get studio image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend
|
||||
@ -4461,7 +4461,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get studio image by name.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getStudioImageDeprecated(request: GetStudioImageDeprecatedRequest):
|
||||
@ -4639,7 +4639,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get user profile image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getUserImage(request: GetUserImageRequest): Response<ByteReadChannel> =
|
||||
getUserImage(
|
||||
@ -4810,7 +4810,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get user profile image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getUserImageByIndex(request: GetUserImageByIndexRequest):
|
||||
Response<ByteReadChannel> = getUserImageByIndex(
|
||||
@ -4986,7 +4986,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get user profile image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getUserImageByIndexDeprecated(request: GetUserImageByIndexDeprecatedRequest):
|
||||
@ -5169,7 +5169,7 @@ public class ImageApi(
|
||||
/**
|
||||
* Get user profile image.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getUserImageDeprecated(request: GetUserImageDeprecatedRequest):
|
||||
|
@ -76,7 +76,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given album.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getInstantMixFromAlbum(request: GetInstantMixFromAlbumRequest):
|
||||
Response<BaseItemDtoQueryResult> = getInstantMixFromAlbum(
|
||||
@ -133,7 +133,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given artist.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getInstantMixFromArtists(request: GetInstantMixFromArtistsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getInstantMixFromArtists(
|
||||
@ -190,7 +190,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given artist.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getInstantMixFromArtists2(request: GetInstantMixFromArtists2Request):
|
||||
@ -248,7 +248,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given item.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getInstantMixFromItem(request: GetInstantMixFromItemRequest):
|
||||
Response<BaseItemDtoQueryResult> = getInstantMixFromItem(
|
||||
@ -304,7 +304,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given genre.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend
|
||||
fun getInstantMixFromMusicGenreById(request: GetInstantMixFromMusicGenreByIdRequest):
|
||||
@ -362,7 +362,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given genre.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend
|
||||
fun getInstantMixFromMusicGenreByName(request: GetInstantMixFromMusicGenreByNameRequest):
|
||||
@ -420,7 +420,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given playlist.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getInstantMixFromPlaylist(request: GetInstantMixFromPlaylistRequest):
|
||||
Response<BaseItemDtoQueryResult> = getInstantMixFromPlaylist(
|
||||
@ -477,7 +477,7 @@ public class InstantMixApi(
|
||||
/**
|
||||
* Creates an instant playlist based on a given song.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getInstantMixFromSong(request: GetInstantMixFromSongRequest):
|
||||
Response<BaseItemDtoQueryResult> = getInstantMixFromSong(
|
||||
|
@ -55,7 +55,7 @@ public class ItemRefreshApi(
|
||||
/**
|
||||
* Refreshes metadata for an item.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun refreshItem(request: RefreshItemRequest): Response<Unit> = refreshItem(
|
||||
itemId = request.itemId,
|
||||
|
@ -348,7 +348,7 @@ public class ItemsApi(
|
||||
/**
|
||||
* Gets items based on a query.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getItems(request: GetItemsRequest = GetItemsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getItems(
|
||||
@ -753,7 +753,7 @@ public class ItemsApi(
|
||||
/**
|
||||
* Gets items based on a query.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getItemsByUserId(request: GetItemsByUserIdRequest):
|
||||
Response<BaseItemDtoQueryResult> = getItemsByUserId(
|
||||
@ -914,7 +914,7 @@ public class ItemsApi(
|
||||
/**
|
||||
* Gets items based on a query.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getResumeItems(request: GetResumeItemsRequest): Response<BaseItemDtoQueryResult>
|
||||
= getResumeItems(
|
||||
|
@ -268,7 +268,7 @@ public class LibraryApi(
|
||||
/**
|
||||
* Gets similar items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSimilarAlbums(request: GetSimilarAlbumsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getSimilarAlbums(
|
||||
@ -316,7 +316,7 @@ public class LibraryApi(
|
||||
/**
|
||||
* Gets similar items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSimilarArtists(request: GetSimilarArtistsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getSimilarArtists(
|
||||
@ -364,7 +364,7 @@ public class LibraryApi(
|
||||
/**
|
||||
* Gets similar items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSimilarItems(request: GetSimilarItemsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getSimilarItems(
|
||||
@ -412,7 +412,7 @@ public class LibraryApi(
|
||||
/**
|
||||
* Gets similar items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSimilarMovies(request: GetSimilarMoviesRequest):
|
||||
Response<BaseItemDtoQueryResult> = getSimilarMovies(
|
||||
@ -460,7 +460,7 @@ public class LibraryApi(
|
||||
/**
|
||||
* Gets similar items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSimilarShows(request: GetSimilarShowsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getSimilarShows(
|
||||
@ -508,7 +508,7 @@ public class LibraryApi(
|
||||
/**
|
||||
* Gets similar items.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSimilarTrailers(request: GetSimilarTrailersRequest):
|
||||
Response<BaseItemDtoQueryResult> = getSimilarTrailers(
|
||||
|
@ -476,7 +476,7 @@ public class LiveTvApi(
|
||||
/**
|
||||
* Gets available live tv channels.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getLiveTvChannels(request: GetLiveTvChannelsRequest =
|
||||
GetLiveTvChannelsRequest()): Response<BaseItemDtoQueryResult> = getLiveTvChannels(
|
||||
@ -615,7 +615,7 @@ public class LiveTvApi(
|
||||
/**
|
||||
* Gets available live tv epgs.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getLiveTvPrograms(request: GetLiveTvProgramsRequest =
|
||||
GetLiveTvProgramsRequest()): Response<BaseItemDtoQueryResult> = getLiveTvPrograms(
|
||||
@ -744,7 +744,7 @@ public class LiveTvApi(
|
||||
/**
|
||||
* Gets recommended live tv epgs.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getRecommendedPrograms(request: GetRecommendedProgramsRequest =
|
||||
GetRecommendedProgramsRequest()): Response<BaseItemDtoQueryResult> = getRecommendedPrograms(
|
||||
@ -911,7 +911,7 @@ public class LiveTvApi(
|
||||
/**
|
||||
* Gets live tv recordings.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getRecordings(request: GetRecordingsRequest = GetRecordingsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getRecordings(
|
||||
@ -998,7 +998,7 @@ public class LiveTvApi(
|
||||
/**
|
||||
* Gets live tv recording series.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getRecordingsSeries(request: GetRecordingsSeriesRequest =
|
||||
|
@ -187,7 +187,7 @@ public class MediaInfoApi(
|
||||
* precedence.
|
||||
* Query parameters are obsolete.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getPostedPlaybackInfoDeprecated(request: GetPostedPlaybackInfoDeprecatedRequest,
|
||||
@ -262,7 +262,7 @@ public class MediaInfoApi(
|
||||
/**
|
||||
* Opens a media source.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun openLiveStream(request: OpenLiveStreamRequest = OpenLiveStreamRequest(),
|
||||
`data`: OpenLiveStreamDto? = null): Response<LiveStreamResponse> = openLiveStream(
|
||||
|
@ -58,7 +58,7 @@ public class MoviesApi(
|
||||
/**
|
||||
* Gets movie recommendations.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getMovieRecommendations(request: GetMovieRecommendationsRequest =
|
||||
GetMovieRecommendationsRequest()): Response<List<RecommendationDto>> = getMovieRecommendations(
|
||||
|
@ -128,7 +128,7 @@ public class MusicGenresApi(
|
||||
/**
|
||||
* Gets all music genres from a given item, folder, or the entire library.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getMusicGenres(request: GetMusicGenresRequest = GetMusicGenresRequest()):
|
||||
|
@ -106,7 +106,7 @@ public class PersonsApi(
|
||||
/**
|
||||
* Gets all persons.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getPersons(request: GetPersonsRequest = GetPersonsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getPersons(
|
||||
|
@ -135,7 +135,7 @@ public class PlayStateApi(
|
||||
/**
|
||||
* Reports a user's playback progress.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun onPlaybackProgress(request: OnPlaybackProgressRequest): Response<Unit> =
|
||||
onPlaybackProgress(
|
||||
@ -200,7 +200,7 @@ public class PlayStateApi(
|
||||
/**
|
||||
* Reports that a user has begun playing an item.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun onPlaybackStart(request: OnPlaybackStartRequest): Response<Unit> =
|
||||
onPlaybackStart(
|
||||
@ -256,7 +256,7 @@ public class PlayStateApi(
|
||||
/**
|
||||
* Reports that a user has stopped playing an item.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun onPlaybackStopped(request: OnPlaybackStoppedRequest): Response<Unit> =
|
||||
onPlaybackStopped(
|
||||
|
@ -148,7 +148,7 @@ public class PlaylistsApi(
|
||||
/**
|
||||
* Gets the original items of a playlist.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getPlaylistItems(request: GetPlaylistItemsRequest):
|
||||
Response<BaseItemDtoQueryResult> = getPlaylistItems(
|
||||
|
@ -105,7 +105,7 @@ public class RemoteImageApi(
|
||||
/**
|
||||
* Gets available remote images for an item.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getRemoteImages(request: GetRemoteImagesRequest): Response<RemoteImageResult> =
|
||||
getRemoteImages(
|
||||
|
@ -100,7 +100,7 @@ public class SearchApi(
|
||||
/**
|
||||
* Gets the search hint result.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun `get`(request: GetRequest): Response<SearchHintResult> = `get`(
|
||||
startIndex = request.startIndex,
|
||||
|
@ -176,7 +176,7 @@ public class SessionApi(
|
||||
/**
|
||||
* Instructs a session to play an item.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun play(request: PlayRequest): Response<Unit> = play(
|
||||
sessionId = request.sessionId,
|
||||
@ -225,7 +225,7 @@ public class SessionApi(
|
||||
/**
|
||||
* Updates capabilities for a device.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun postCapabilities(request: PostCapabilitiesRequest = PostCapabilitiesRequest()):
|
||||
Response<Unit> = postCapabilities(
|
||||
|
@ -121,7 +121,7 @@ public class StudiosApi(
|
||||
/**
|
||||
* Gets all studios from a given item, folder, or the entire library.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getStudios(request: GetStudiosRequest = GetStudiosRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getStudios(
|
||||
|
@ -172,7 +172,7 @@ public class SubtitleApi(
|
||||
/**
|
||||
* Gets subtitles in a specified format.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSubtitle(request: GetSubtitleRequest): Response<String> = getSubtitle(
|
||||
routeItemId = request.routeItemId,
|
||||
@ -242,7 +242,7 @@ public class SubtitleApi(
|
||||
/**
|
||||
* Gets subtitles in a specified format.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getSubtitleDeprecated(request: GetSubtitleDeprecatedRequest): Response<String> =
|
||||
@ -362,7 +362,7 @@ public class SubtitleApi(
|
||||
/**
|
||||
* Gets subtitles in a specified format.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSubtitleWithTicks(request: GetSubtitleWithTicksRequest): Response<String> =
|
||||
getSubtitleWithTicks(
|
||||
@ -436,7 +436,7 @@ public class SubtitleApi(
|
||||
/**
|
||||
* Gets subtitles in a specified format.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
@Deprecated("This member is deprecated and may be removed in the future")
|
||||
public suspend fun getSubtitleWithTicksDeprecated(request: GetSubtitleWithTicksDeprecatedRequest):
|
||||
|
@ -61,7 +61,7 @@ public class SuggestionsApi(
|
||||
/**
|
||||
* Gets suggestions.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSuggestions(request: GetSuggestionsRequest): Response<BaseItemDtoQueryResult>
|
||||
= getSuggestions(
|
||||
|
@ -342,7 +342,7 @@ public class TrailersApi(
|
||||
/**
|
||||
* Finds movies and trailers similar to a given trailer.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getTrailers(request: GetTrailersRequest = GetTrailersRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getTrailers(
|
||||
|
@ -99,7 +99,7 @@ public class TvShowsApi(
|
||||
/**
|
||||
* Gets episodes for a tv season.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getEpisodes(request: GetEpisodesRequest): Response<BaseItemDtoQueryResult> =
|
||||
getEpisodes(
|
||||
@ -182,7 +182,7 @@ public class TvShowsApi(
|
||||
/**
|
||||
* Gets a list of next up episodes.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getNextUp(request: GetNextUpRequest = GetNextUpRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getNextUp(
|
||||
@ -254,7 +254,7 @@ public class TvShowsApi(
|
||||
/**
|
||||
* Gets seasons for a tv series.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getSeasons(request: GetSeasonsRequest): Response<BaseItemDtoQueryResult> =
|
||||
getSeasons(
|
||||
@ -317,7 +317,7 @@ public class TvShowsApi(
|
||||
/**
|
||||
* Gets a list of upcoming episodes.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getUpcomingEpisodes(request: GetUpcomingEpisodesRequest =
|
||||
GetUpcomingEpisodesRequest()): Response<BaseItemDtoQueryResult> = getUpcomingEpisodes(
|
||||
|
@ -98,7 +98,7 @@ public class UniversalAudioApi(
|
||||
/**
|
||||
* Gets an audio stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getUniversalAudioStream(request: GetUniversalAudioStreamRequest):
|
||||
Response<ByteReadChannel> = getUniversalAudioStream(
|
||||
|
@ -143,7 +143,7 @@ public class UserLibraryApi(
|
||||
/**
|
||||
* Gets latest media.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getLatestMedia(request: GetLatestMediaRequest): Response<List<BaseItemDto>> =
|
||||
getLatestMedia(
|
||||
|
@ -258,7 +258,7 @@ public class VideosApi(
|
||||
/**
|
||||
* Gets a video stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getVideoStream(request: GetVideoStreamRequest): Response<ByteReadChannel> =
|
||||
getVideoStream(
|
||||
@ -690,7 +690,7 @@ public class VideosApi(
|
||||
/**
|
||||
* Gets a video stream.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getVideoStreamByContainer(request: GetVideoStreamByContainerRequest):
|
||||
Response<ByteReadChannel> = getVideoStreamByContainer(
|
||||
|
@ -113,7 +113,7 @@ public class YearsApi(
|
||||
/**
|
||||
* Get years.
|
||||
*
|
||||
* @param request The request paramaters
|
||||
* @param request The request parameters
|
||||
*/
|
||||
public suspend fun getYears(request: GetYearsRequest = GetYearsRequest()):
|
||||
Response<BaseItemDtoQueryResult> = getYears(
|
||||
|
@ -28,9 +28,15 @@ public enum class Architecture(
|
||||
S39_0X("S390x"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): Architecture? = when (serialName) {
|
||||
"X86" -> X86
|
||||
"X64" -> X64
|
||||
@ -41,6 +47,9 @@ public enum class Architecture(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): Architecture =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -93,9 +93,15 @@ public enum class BaseItemKind(
|
||||
YEAR("Year"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): BaseItemKind? = when (serialName) {
|
||||
"AggregateFolder" -> AGGREGATE_FOLDER
|
||||
"Audio" -> AUDIO
|
||||
@ -137,6 +143,9 @@ public enum class BaseItemKind(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): BaseItemKind =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -30,9 +30,15 @@ public enum class ChannelItemSortField(
|
||||
COMMUNITY_PLAY_COUNT("CommunityPlayCount"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ChannelItemSortField? = when (serialName) {
|
||||
"Name" -> NAME
|
||||
"CommunityRating" -> COMMUNITY_RATING
|
||||
@ -44,6 +50,9 @@ public enum class ChannelItemSortField(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ChannelItemSortField =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -32,9 +32,15 @@ public enum class ChannelMediaContentType(
|
||||
TV_EXTRA("TvExtra"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ChannelMediaContentType? = when (serialName) {
|
||||
"Clip" -> CLIP
|
||||
"Podcast" -> PODCAST
|
||||
@ -47,6 +53,9 @@ public enum class ChannelMediaContentType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ChannelMediaContentType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class ChannelMediaType(
|
||||
PHOTO("Photo"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ChannelMediaType? = when (serialName) {
|
||||
"Audio" -> AUDIO
|
||||
"Video" -> VIDEO
|
||||
@ -32,6 +38,9 @@ public enum class ChannelMediaType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ChannelMediaType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class ChannelType(
|
||||
RADIO("Radio"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ChannelType? = when (serialName) {
|
||||
"TV" -> TV
|
||||
"Radio" -> RADIO
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ChannelType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class CodecType(
|
||||
AUDIO("Audio"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): CodecType? = when (serialName) {
|
||||
"Video" -> VIDEO
|
||||
"VideoAudio" -> VIDEO_AUDIO
|
||||
@ -32,6 +38,9 @@ public enum class CodecType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): CodecType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -32,9 +32,15 @@ public enum class CollectionTypeOptions(
|
||||
MIXED("Mixed"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): CollectionTypeOptions? = when (serialName) {
|
||||
"Movies" -> MOVIES
|
||||
"TvShows" -> TV_SHOWS
|
||||
@ -47,6 +53,9 @@ public enum class CollectionTypeOptions(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): CollectionTypeOptions =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -30,9 +30,15 @@ public enum class DayOfWeek(
|
||||
SATURDAY("Saturday"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): DayOfWeek? = when (serialName) {
|
||||
"Sunday" -> SUNDAY
|
||||
"Monday" -> MONDAY
|
||||
@ -44,6 +50,9 @@ public enum class DayOfWeek(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): DayOfWeek =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class DayPattern(
|
||||
WEEKENDS("Weekends"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): DayPattern? = when (serialName) {
|
||||
"Daily" -> DAILY
|
||||
"Weekdays" -> WEEKDAYS
|
||||
@ -32,6 +38,9 @@ public enum class DayPattern(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): DayPattern =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class DeviceProfileType(
|
||||
USER("User"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): DeviceProfileType? = when (serialName) {
|
||||
"System" -> SYSTEM
|
||||
"User" -> USER
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): DeviceProfileType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -24,9 +24,15 @@ public enum class DlnaProfileType(
|
||||
SUBTITLE("Subtitle"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): DlnaProfileType? = when (serialName) {
|
||||
"Audio" -> AUDIO
|
||||
"Video" -> VIDEO
|
||||
@ -35,6 +41,9 @@ public enum class DlnaProfileType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): DlnaProfileType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -39,9 +39,15 @@ public enum class DynamicDayOfWeek(
|
||||
WEEKEND("Weekend"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): DynamicDayOfWeek? = when (serialName) {
|
||||
"Sunday" -> SUNDAY
|
||||
"Monday" -> MONDAY
|
||||
@ -56,6 +62,9 @@ public enum class DynamicDayOfWeek(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): DynamicDayOfWeek =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class EmbeddedSubtitleOptions(
|
||||
ALLOW_NONE("AllowNone"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): EmbeddedSubtitleOptions? = when (serialName) {
|
||||
"AllowAll" -> ALLOW_ALL
|
||||
"AllowText" -> ALLOW_TEXT
|
||||
@ -38,6 +44,9 @@ public enum class EmbeddedSubtitleOptions(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): EmbeddedSubtitleOptions =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class EncodingContext(
|
||||
STATIC("Static"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): EncodingContext? = when (serialName) {
|
||||
"Streaming" -> STREAMING
|
||||
"Static" -> STATIC
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): EncodingContext =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -43,9 +43,15 @@ public enum class ExternalIdMediaType(
|
||||
TRACK("Track"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ExternalIdMediaType? = when (serialName) {
|
||||
"Album" -> ALBUM
|
||||
"AlbumArtist" -> ALBUM_ARTIST
|
||||
@ -62,6 +68,9 @@ public enum class ExternalIdMediaType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ExternalIdMediaType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class FFmpegLocation(
|
||||
SYSTEM("System"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): FFmpegLocation? = when (serialName) {
|
||||
"NotFound" -> NOT_FOUND
|
||||
"SetByArgument" -> SET_BY_ARGUMENT
|
||||
@ -38,6 +44,9 @@ public enum class FFmpegLocation(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): FFmpegLocation =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class FileSystemEntryType(
|
||||
NETWORK_SHARE("NetworkShare"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): FileSystemEntryType? = when (serialName) {
|
||||
"File" -> FILE
|
||||
"Directory" -> DIRECTORY
|
||||
@ -38,6 +44,9 @@ public enum class FileSystemEntryType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): FileSystemEntryType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class ForgotPasswordAction(
|
||||
IN_NETWORK_REQUIRED("InNetworkRequired"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ForgotPasswordAction? = when (serialName) {
|
||||
"ContactAdmin" -> CONTACT_ADMIN
|
||||
"PinCode" -> PIN_CODE
|
||||
@ -32,6 +38,9 @@ public enum class ForgotPasswordAction(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ForgotPasswordAction =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -103,9 +103,15 @@ public enum class GeneralCommandType(
|
||||
SET_MAX_STREAMING_BITRATE("SetMaxStreamingBitrate"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): GeneralCommandType? = when (serialName) {
|
||||
"MoveUp" -> MOVE_UP
|
||||
"MoveDown" -> MOVE_DOWN
|
||||
@ -152,6 +158,9 @@ public enum class GeneralCommandType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): GeneralCommandType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class GroupQueueMode(
|
||||
QUEUE_NEXT("QueueNext"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): GroupQueueMode? = when (serialName) {
|
||||
"Queue" -> QUEUE
|
||||
"QueueNext" -> QUEUE_NEXT
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): GroupQueueMode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -25,9 +25,15 @@ public enum class GroupRepeatMode(
|
||||
REPEAT_NONE("RepeatNone"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): GroupRepeatMode? = when (serialName) {
|
||||
"RepeatOne" -> REPEAT_ONE
|
||||
"RepeatAll" -> REPEAT_ALL
|
||||
@ -35,6 +41,9 @@ public enum class GroupRepeatMode(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): GroupRepeatMode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class GroupShuffleMode(
|
||||
SHUFFLE("Shuffle"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): GroupShuffleMode? = when (serialName) {
|
||||
"Sorted" -> SORTED
|
||||
"Shuffle" -> SHUFFLE
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): GroupShuffleMode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class GroupStateType(
|
||||
PLAYING("Playing"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): GroupStateType? = when (serialName) {
|
||||
"Idle" -> IDLE
|
||||
"Waiting" -> WAITING
|
||||
@ -38,6 +44,9 @@ public enum class GroupStateType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): GroupStateType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -41,9 +41,15 @@ public enum class GroupUpdateType(
|
||||
LIBRARY_ACCESS_DENIED("LibraryAccessDenied"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): GroupUpdateType? = when (serialName) {
|
||||
"UserJoined" -> USER_JOINED
|
||||
"UserLeft" -> USER_LEFT
|
||||
@ -59,6 +65,9 @@ public enum class GroupUpdateType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): GroupUpdateType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -31,9 +31,15 @@ public enum class HardwareEncodingType(
|
||||
VIDEO_TOOL_BOX("VideoToolBox"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): HardwareEncodingType? = when (serialName) {
|
||||
"AMF" -> AMF
|
||||
"QSV" -> QSV
|
||||
@ -44,6 +50,9 @@ public enum class HardwareEncodingType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): HardwareEncodingType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class HeaderMatchType(
|
||||
SUBSTRING("Substring"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): HeaderMatchType? = when (serialName) {
|
||||
"Equals" -> EQUALS
|
||||
"Regex" -> REGEX
|
||||
@ -32,6 +38,9 @@ public enum class HeaderMatchType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): HeaderMatchType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -29,9 +29,15 @@ public enum class ImageFormat(
|
||||
WEBP("Webp"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ImageFormat? = when (serialName) {
|
||||
"Bmp" -> BMP
|
||||
"Gif" -> GIF
|
||||
@ -41,6 +47,9 @@ public enum class ImageFormat(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ImageFormat =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -32,9 +32,15 @@ public enum class ImageOrientation(
|
||||
LEFT_BOTTOM("LeftBottom"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ImageOrientation? = when (serialName) {
|
||||
"TopLeft" -> TOP_LEFT
|
||||
"TopRight" -> TOP_RIGHT
|
||||
@ -47,6 +53,9 @@ public enum class ImageOrientation(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ImageOrientation =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class ImageSavingConvention(
|
||||
COMPATIBLE("Compatible"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ImageSavingConvention? = when (serialName) {
|
||||
"Legacy" -> LEGACY
|
||||
"Compatible" -> COMPATIBLE
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ImageSavingConvention =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -45,9 +45,15 @@ public enum class ImageType(
|
||||
PROFILE("Profile"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ImageType? = when (serialName) {
|
||||
"Primary" -> PRIMARY
|
||||
"Art" -> ART
|
||||
@ -65,6 +71,9 @@ public enum class ImageType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ImageType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class IsoType(
|
||||
BLU_RAY("BluRay"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): IsoType? = when (serialName) {
|
||||
"Dvd" -> DVD
|
||||
"BluRay" -> BLU_RAY
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): IsoType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -141,9 +141,15 @@ public enum class ItemFields(
|
||||
SPECIAL_FEATURE_COUNT("SpecialFeatureCount"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ItemFields? = when (serialName) {
|
||||
"AirTime" -> AIR_TIME
|
||||
"CanDelete" -> CAN_DELETE
|
||||
@ -209,6 +215,9 @@ public enum class ItemFields(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ItemFields =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -37,9 +37,15 @@ public enum class ItemFilter(
|
||||
IS_FAVORITE_OR_LIKES("IsFavoriteOrLikes"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ItemFilter? = when (serialName) {
|
||||
"IsFolder" -> IS_FOLDER
|
||||
"IsNotFolder" -> IS_NOT_FOLDER
|
||||
@ -53,6 +59,9 @@ public enum class ItemFilter(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ItemFilter =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -24,9 +24,15 @@ public enum class KeepUntil(
|
||||
UNTIL_DATE("UntilDate"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): KeepUntil? = when (serialName) {
|
||||
"UntilDeleted" -> UNTIL_DELETED
|
||||
"UntilSpaceNeeded" -> UNTIL_SPACE_NEEDED
|
||||
@ -35,6 +41,9 @@ public enum class KeepUntil(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): KeepUntil =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class LiveTvServiceStatus(
|
||||
UNAVAILABLE("Unavailable"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): LiveTvServiceStatus? = when (serialName) {
|
||||
"Ok" -> OK
|
||||
"Unavailable" -> UNAVAILABLE
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): LiveTvServiceStatus =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class LocationType(
|
||||
OFFLINE("Offline"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): LocationType? = when (serialName) {
|
||||
"FileSystem" -> FILE_SYSTEM
|
||||
"Remote" -> REMOTE
|
||||
@ -38,6 +44,9 @@ public enum class LocationType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): LocationType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -30,9 +30,15 @@ public enum class LogLevel(
|
||||
NONE("None"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): LogLevel? = when (serialName) {
|
||||
"Trace" -> TRACE
|
||||
"Debug" -> DEBUG
|
||||
@ -44,6 +50,9 @@ public enum class LogLevel(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): LogLevel =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -30,9 +30,15 @@ public enum class MediaProtocol(
|
||||
FTP("Ftp"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): MediaProtocol? = when (serialName) {
|
||||
"File" -> FILE
|
||||
"Http" -> HTTP
|
||||
@ -44,6 +50,9 @@ public enum class MediaProtocol(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): MediaProtocol =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class MediaSourceType(
|
||||
PLACEHOLDER("Placeholder"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): MediaSourceType? = when (serialName) {
|
||||
"Default" -> DEFAULT
|
||||
"Grouping" -> GROUPING
|
||||
@ -32,6 +38,9 @@ public enum class MediaSourceType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): MediaSourceType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -29,9 +29,15 @@ public enum class MediaStreamType(
|
||||
DATA("Data"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): MediaStreamType? = when (serialName) {
|
||||
"Audio" -> AUDIO
|
||||
"Video" -> VIDEO
|
||||
@ -41,6 +47,9 @@ public enum class MediaStreamType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): MediaStreamType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -37,9 +37,15 @@ public enum class MetadataField(
|
||||
OFFICIAL_RATING("OfficialRating"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): MetadataField? = when (serialName) {
|
||||
"Cast" -> CAST
|
||||
"Genres" -> GENRES
|
||||
@ -53,6 +59,9 @@ public enum class MetadataField(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): MetadataField =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -24,9 +24,15 @@ public enum class MetadataRefreshMode(
|
||||
FULL_REFRESH("FullRefresh"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): MetadataRefreshMode? = when (serialName) {
|
||||
"None" -> NONE
|
||||
"ValidationOnly" -> VALIDATION_ONLY
|
||||
@ -35,6 +41,9 @@ public enum class MetadataRefreshMode(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): MetadataRefreshMode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class NotificationLevel(
|
||||
ERROR("Error"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): NotificationLevel? = when (serialName) {
|
||||
"Normal" -> NORMAL
|
||||
"Warning" -> WARNING
|
||||
@ -32,6 +38,9 @@ public enum class NotificationLevel(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): NotificationLevel =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class PlayAccess(
|
||||
NONE("None"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): PlayAccess? = when (serialName) {
|
||||
"Full" -> FULL
|
||||
"None" -> NONE
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): PlayAccess =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -29,9 +29,15 @@ public enum class PlayCommand(
|
||||
PLAY_SHUFFLE("PlayShuffle"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): PlayCommand? = when (serialName) {
|
||||
"PlayNow" -> PLAY_NOW
|
||||
"PlayNext" -> PLAY_NEXT
|
||||
@ -41,6 +47,9 @@ public enum class PlayCommand(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): PlayCommand =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class PlayMethod(
|
||||
DIRECT_PLAY("DirectPlay"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): PlayMethod? = when (serialName) {
|
||||
"Transcode" -> TRANSCODE
|
||||
"DirectStream" -> DIRECT_STREAM
|
||||
@ -32,6 +38,9 @@ public enum class PlayMethod(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): PlayMethod =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class PlaybackErrorCode(
|
||||
RATE_LIMIT_EXCEEDED("RateLimitExceeded"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): PlaybackErrorCode? = when (serialName) {
|
||||
"NotAllowed" -> NOT_ALLOWED
|
||||
"NoCompatibleStream" -> NO_COMPATIBLE_STREAM
|
||||
@ -32,6 +38,9 @@ public enum class PlaybackErrorCode(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): PlaybackErrorCode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -37,9 +37,15 @@ public enum class PlaystateCommand(
|
||||
PLAY_PAUSE("PlayPause"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): PlaystateCommand? = when (serialName) {
|
||||
"Stop" -> STOP
|
||||
"Pause" -> PAUSE
|
||||
@ -53,6 +59,9 @@ public enum class PlaystateCommand(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): PlaystateCommand =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -33,9 +33,15 @@ public enum class PluginStatus(
|
||||
DISABLED("Disabled"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): PluginStatus? = when (serialName) {
|
||||
"Active" -> ACTIVE
|
||||
"Restart" -> RESTART
|
||||
@ -47,6 +53,9 @@ public enum class PluginStatus(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): PluginStatus =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -26,9 +26,15 @@ public enum class ProfileConditionType(
|
||||
EQUALS_ANY("EqualsAny"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ProfileConditionType? = when (serialName) {
|
||||
"Equals" -> EQUALS
|
||||
"NotEquals" -> NOT_EQUALS
|
||||
@ -38,6 +44,9 @@ public enum class ProfileConditionType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ProfileConditionType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -64,9 +64,15 @@ public enum class ProfileConditionValue(
|
||||
VIDEO_RANGE_TYPE("VideoRangeType"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ProfileConditionValue? = when (serialName) {
|
||||
"AudioChannels" -> AUDIO_CHANNELS
|
||||
"AudioBitrate" -> AUDIO_BITRATE
|
||||
@ -95,6 +101,9 @@ public enum class ProfileConditionValue(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ProfileConditionValue =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -28,9 +28,15 @@ public enum class ProgramAudio(
|
||||
ATMOS("Atmos"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ProgramAudio? = when (serialName) {
|
||||
"Mono" -> MONO
|
||||
"Stereo" -> STEREO
|
||||
@ -41,6 +47,9 @@ public enum class ProgramAudio(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ProgramAudio =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class RatingType(
|
||||
LIKES("Likes"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): RatingType? = when (serialName) {
|
||||
"Score" -> SCORE
|
||||
"Likes" -> LIKES
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): RatingType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -28,9 +28,15 @@ public enum class RecommendationType(
|
||||
HAS_LIKED_ACTOR("HasLikedActor"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): RecommendationType? = when (serialName) {
|
||||
"SimilarToRecentlyPlayed" -> SIMILAR_TO_RECENTLY_PLAYED
|
||||
"SimilarToLikedItem" -> SIMILAR_TO_LIKED_ITEM
|
||||
@ -41,6 +47,9 @@ public enum class RecommendationType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): RecommendationType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -30,9 +30,15 @@ public enum class RecordingStatus(
|
||||
ERROR("Error"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): RecordingStatus? = when (serialName) {
|
||||
"New" -> NEW
|
||||
"InProgress" -> IN_PROGRESS
|
||||
@ -44,6 +50,9 @@ public enum class RecordingStatus(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): RecordingStatus =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class RepeatMode(
|
||||
REPEAT_ONE("RepeatOne"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): RepeatMode? = when (serialName) {
|
||||
"RepeatNone" -> REPEAT_NONE
|
||||
"RepeatAll" -> REPEAT_ALL
|
||||
@ -32,6 +38,9 @@ public enum class RepeatMode(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): RepeatMode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class ScrollDirection(
|
||||
VERTICAL("Vertical"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): ScrollDirection? = when (serialName) {
|
||||
"Horizontal" -> HORIZONTAL
|
||||
"Vertical" -> VERTICAL
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): ScrollDirection =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class SendCommandType(
|
||||
SEEK("Seek"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SendCommandType? = when (serialName) {
|
||||
"Unpause" -> UNPAUSE
|
||||
"Pause" -> PAUSE
|
||||
@ -38,6 +44,9 @@ public enum class SendCommandType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SendCommandType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -22,9 +22,15 @@ public enum class SendToUserType(
|
||||
CUSTOM("Custom"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SendToUserType? = when (serialName) {
|
||||
"All" -> ALL
|
||||
"Admins" -> ADMINS
|
||||
@ -32,6 +38,9 @@ public enum class SendToUserType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SendToUserType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class SeriesStatus(
|
||||
ENDED("Ended"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SeriesStatus? = when (serialName) {
|
||||
"Continuing" -> CONTINUING
|
||||
"Ended" -> ENDED
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SeriesStatus =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -87,9 +87,15 @@ public enum class SessionMessageType(
|
||||
KEEP_ALIVE("KeepAlive"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SessionMessageType? = when (serialName) {
|
||||
"ForceKeepAlive" -> FORCE_KEEP_ALIVE
|
||||
"GeneralCommand" -> GENERAL_COMMAND
|
||||
@ -128,6 +134,9 @@ public enum class SessionMessageType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SessionMessageType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -23,15 +23,24 @@ public enum class SortOrder(
|
||||
DESCENDING("Descending"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SortOrder? = when (serialName) {
|
||||
"Ascending" -> ASCENDING
|
||||
"Descending" -> DESCENDING
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SortOrder =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -29,9 +29,15 @@ public enum class SubtitleDeliveryMethod(
|
||||
DROP("Drop"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SubtitleDeliveryMethod? = when (serialName) {
|
||||
"Encode" -> ENCODE
|
||||
"Embed" -> EMBED
|
||||
@ -41,6 +47,9 @@ public enum class SubtitleDeliveryMethod(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SubtitleDeliveryMethod =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -29,9 +29,15 @@ public enum class SubtitlePlaybackMode(
|
||||
SMART("Smart"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SubtitlePlaybackMode? = when (serialName) {
|
||||
"Default" -> DEFAULT
|
||||
"Always" -> ALWAYS
|
||||
@ -41,6 +47,9 @@ public enum class SubtitlePlaybackMode(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SubtitlePlaybackMode =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -25,9 +25,15 @@ public enum class SyncPlayUserAccessType(
|
||||
NONE("None"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): SyncPlayUserAccessType? = when (serialName) {
|
||||
"CreateAndJoinGroups" -> CREATE_AND_JOIN_GROUPS
|
||||
"JoinGroups" -> JOIN_GROUPS
|
||||
@ -35,6 +41,9 @@ public enum class SyncPlayUserAccessType(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): SyncPlayUserAccessType =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -27,9 +27,15 @@ public enum class TaskCompletionStatus(
|
||||
ABORTED("Aborted"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): TaskCompletionStatus? = when (serialName) {
|
||||
"Completed" -> COMPLETED
|
||||
"Failed" -> FAILED
|
||||
@ -38,6 +44,9 @@ public enum class TaskCompletionStatus(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): TaskCompletionStatus =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -25,9 +25,15 @@ public enum class TaskState(
|
||||
RUNNING("Running"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): TaskState? = when (serialName) {
|
||||
"Idle" -> IDLE
|
||||
"Cancelling" -> CANCELLING
|
||||
@ -35,6 +41,9 @@ public enum class TaskState(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): TaskState =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -66,9 +66,15 @@ public enum class TranscodeReason(
|
||||
VIDEO_RANGE_TYPE_NOT_SUPPORTED("VideoRangeTypeNotSupported"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): TranscodeReason? = when (serialName) {
|
||||
"ContainerNotSupported" -> CONTAINER_NOT_SUPPORTED
|
||||
"VideoCodecNotSupported" -> VIDEO_CODEC_NOT_SUPPORTED
|
||||
@ -98,6 +104,9 @@ public enum class TranscodeReason(
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): TranscodeReason =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
@ -20,15 +20,24 @@ public enum class TranscodeSeekInfo(
|
||||
BYTES("Bytes"),
|
||||
;
|
||||
|
||||
/**
|
||||
* Get the serial name of the enum member.
|
||||
*/
|
||||
public override fun toString(): String = serialName
|
||||
|
||||
public companion object {
|
||||
/**
|
||||
* Find the enum member by the serial name or return null.
|
||||
*/
|
||||
public fun fromNameOrNull(serialName: String): TranscodeSeekInfo? = when (serialName) {
|
||||
"Auto" -> AUTO
|
||||
"Bytes" -> BYTES
|
||||
else -> null
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the enum member by the serial name or throw.
|
||||
*/
|
||||
public fun fromName(serialName: String): TranscodeSeekInfo =
|
||||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user