using System; using System.Collections.Generic; using Jellyfin.Data.Enums; using Jellyfin.Database.Implementations.Enums; using Microsoft.Extensions.Logging; namespace Jellyfin.Data.Queries; /// /// A class representing a query to the activity logs. /// public class ActivityLogQuery : PaginatedQuery { /// /// Gets or sets a value indicating whether to take entries with a user id. /// public bool? HasUserId { get; set; } /// /// Gets or sets the minimum date to query for. /// public DateTime? MinDate { get; set; } /// /// Gets or sets the name filter. /// public string? Name { get; set; } /// /// Gets or sets the overview filter. /// public string? Overview { get; set; } /// /// Gets or sets the short overview filter. /// public string? ShortOverview { get; set; } /// /// Gets or sets the type filter. /// public string? Type { get; set; } /// /// Gets or sets the item filter. /// public Guid? ItemId { get; set; } /// /// Gets or sets the username filter. /// public string? Username { get; set; } /// /// Gets or sets the log level filter. /// public LogLevel? Severity { get; set; } /// /// Gets or sets the result ordering. /// public IReadOnlyCollection<(ActivityLogSortBy, SortOrder)>? OrderBy { get; set; } }