All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jellyfin.sdk.api.operations.ActivityLogApi.kt Maven / Gradle / Ivy

There is a newer version: 1.5.5
Show newest version
// !!        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
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy