getYears

suspend fun getYears(startIndex: Int? = null, limit: Int? = null, sortOrder: Collection<<Error class: unknown class>>? = emptyList(), parentId: <Error class: unknown class>? = null, fields: Collection<<Error class: unknown class>>? = emptyList(), excludeItemTypes: Collection<<Error class: unknown class>>? = emptyList(), includeItemTypes: Collection<<Error class: unknown class>>? = emptyList(), mediaTypes: Collection<<Error class: unknown class>>? = emptyList(), sortBy: Collection<<Error class: unknown class>>? = emptyList(), enableUserData: Boolean? = null, imageTypeLimit: Int? = null, enableImageTypes: Collection<<Error class: unknown class>>? = emptyList(), userId: <Error class: unknown class>? = null, recursive: Boolean? = true, enableImages: Boolean? = true): Response<<Error class: unknown class>>

Get years.

Parameters

startIndex

Skips over a given number of items within the results. Use for paging.

limit

Optional. The maximum number of records to return.

sortOrder

Sort Order - Ascending,Descending.

parentId

Specify this to localize the search to a specific item or folder. Omit to use the root.

fields

Optional. Specify additional fields of information to return in the output.

excludeItemTypes

Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited.

includeItemTypes

Optional. If specified, results will be included based on item type. This allows multiple, comma delimited.

mediaTypes

Optional. Filter by MediaType. Allows multiple, comma delimited.

sortBy

Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.

enableUserData

Optional. Include user data.

imageTypeLimit

Optional. The max number of images to return, per image type.

enableImageTypes

Optional. The image types to include in the output.

userId

User Id.

recursive

Search recursively.

enableImages

Optional. Include image information in output.


suspend fun getYears(request: <Error class: unknown class> = GetYearsRequest()): Response<<Error class: unknown class>>

Get years.

Parameters

request

The request parameters