getLatestMedia

suspend fun getLatestMedia(userId: <Error class: unknown class>? = null, parentId: <Error class: unknown class>? = null, fields: Collection<<Error class: unknown class>>? = emptyList(), includeItemTypes: Collection<<Error class: unknown class>>? = emptyList(), isPlayed: Boolean? = null, enableImages: Boolean? = null, imageTypeLimit: Int? = null, enableImageTypes: Collection<<Error class: unknown class>>? = emptyList(), enableUserData: Boolean? = null, limit: Int? = 20, groupItems: Boolean? = true): Response<List<<Error class: unknown class>>>

Gets latest media.

Parameters

userId

User id.

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.

includeItemTypes

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

isPlayed

Filter by items that are played, or not.

enableImages

Optional. include image information in output.

imageTypeLimit

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

enableImageTypes

Optional. The image types to include in the output.

enableUserData

Optional. include user data.

limit

Return item limit.

groupItems

Whether or not to group items into a parent container.


suspend fun getLatestMedia(request: <Error class: unknown class> = GetLatestMediaRequest()): Response<List<<Error class: unknown class>>>

Gets latest media.

Parameters

request

The request parameters