commonMain.org.jellyfin.sdk.api.operations.ActivityLogApi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jellyfin-api-jvm Show documentation
Show all versions of jellyfin-api-jvm Show documentation
Official Kotlin/Java SDK for Jellyfin. org.jellyfin.sdk:jellyfin-api-jvm
// !! WARNING
// !! DO NOT EDIT THIS FILE
//
// This file is generated by the openapi-generator module and is not meant for manual changes.
// Please read the README.md file in the openapi-generator module for additional information.
package org.jellyfin.sdk.api.operations
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.collections.buildMap
import kotlin.collections.emptyMap
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.Response
import org.jellyfin.sdk.api.client.extensions.`get`
import org.jellyfin.sdk.model.DateTime
import org.jellyfin.sdk.model.api.ActivityLogEntryQueryResult
public class ActivityLogApi(
private val api: ApiClient,
) : Api {
/**
* Gets activity log entries.
*
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param minDate Optional. The minimum date. Format = ISO.
* @param hasUserId Optional. Filter log entries if it has user id, or not.
*/
public suspend fun getLogEntries(
startIndex: Int? = null,
limit: Int? = null,
minDate: DateTime? = null,
hasUserId: Boolean? = null,
): Response {
val pathParameters = emptyMap()
val queryParameters = buildMap(4) {
put("startIndex", startIndex)
put("limit", limit)
put("minDate", minDate)
put("hasUserId", hasUserId)
}
val data = null
val response = api.`get`("/System/ActivityLog/Entries",
pathParameters, queryParameters, data)
return response
}
}