aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Queries/ActivityLogQuery.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-02-14 12:07:30 +0100
committerGitHub <noreply@github.com>2026-02-14 12:07:30 +0100
commit29582ed461b693368ec56567c2e40cfa20ef4bf5 (patch)
tree04721b833e8e6108c2e13c4f0ea9f4dc7b2ae946 /Jellyfin.Data/Queries/ActivityLogQuery.cs
parentca6d499680f9fbb369844a11eb0e0213b66bb00b (diff)
parent3b6985986709473c69ba785460c702c6bbe3771d (diff)
Merge branch 'master' into issue15137
Diffstat (limited to 'Jellyfin.Data/Queries/ActivityLogQuery.cs')
-rw-r--r--Jellyfin.Data/Queries/ActivityLogQuery.cs74
1 files changed, 61 insertions, 13 deletions
diff --git a/Jellyfin.Data/Queries/ActivityLogQuery.cs b/Jellyfin.Data/Queries/ActivityLogQuery.cs
index f1af099d3..6de6c4c21 100644
--- a/Jellyfin.Data/Queries/ActivityLogQuery.cs
+++ b/Jellyfin.Data/Queries/ActivityLogQuery.cs
@@ -1,20 +1,68 @@
using System;
+using System.Collections.Generic;
+using Jellyfin.Data.Enums;
+using Jellyfin.Database.Implementations.Enums;
+using Microsoft.Extensions.Logging;
-namespace Jellyfin.Data.Queries
+namespace Jellyfin.Data.Queries;
+
+/// <summary>
+/// A class representing a query to the activity logs.
+/// </summary>
+public class ActivityLogQuery : PaginatedQuery
{
/// <summary>
- /// A class representing a query to the activity logs.
+ /// Gets or sets a value indicating whether to take entries with a user id.
+ /// </summary>
+ public bool? HasUserId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the minimum date to query for.
+ /// </summary>
+ public DateTime? MinDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets the maximum date to query for.
+ /// </summary>
+ public DateTime? MaxDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets the name filter.
+ /// </summary>
+ public string? Name { get; set; }
+
+ /// <summary>
+ /// Gets or sets the overview filter.
+ /// </summary>
+ public string? Overview { get; set; }
+
+ /// <summary>
+ /// Gets or sets the short overview filter.
+ /// </summary>
+ public string? ShortOverview { get; set; }
+
+ /// <summary>
+ /// Gets or sets the type filter.
/// </summary>
- public class ActivityLogQuery : PaginatedQuery
- {
- /// <summary>
- /// Gets or sets a value indicating whether to take entries with a user id.
- /// </summary>
- public bool? HasUserId { get; set; }
+ public string? Type { get; set; }
- /// <summary>
- /// Gets or sets the minimum date to query for.
- /// </summary>
- public DateTime? MinDate { get; set; }
- }
+ /// <summary>
+ /// Gets or sets the item filter.
+ /// </summary>
+ public Guid? ItemId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the username filter.
+ /// </summary>
+ public string? Username { get; set; }
+
+ /// <summary>
+ /// Gets or sets the log level filter.
+ /// </summary>
+ public LogLevel? Severity { get; set; }
+
+ /// <summary>
+ /// Gets or sets the result ordering.
+ /// </summary>
+ public IReadOnlyCollection<(ActivityLogSortBy, SortOrder)>? OrderBy { get; set; }
}