2020-02-04 01:49:27 +01:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 21:02:23 +01:00
|
|
|
using System;
|
2020-05-03 00:32:22 +02:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Jellyfin.Data.Entities;
|
2020-08-14 02:48:28 +02:00
|
|
|
using Jellyfin.Data.Events;
|
2020-10-04 03:14:25 +02:00
|
|
|
using Jellyfin.Data.Queries;
|
2019-01-25 21:33:58 +01:00
|
|
|
using MediaBrowser.Model.Querying;
|
2018-12-28 00:27:57 +01:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Activity
|
|
|
|
{
|
|
|
|
public interface IActivityManager
|
|
|
|
{
|
|
|
|
event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
|
|
|
|
|
2020-05-03 00:32:22 +02:00
|
|
|
Task CreateAsync(ActivityLog entry);
|
2019-01-25 21:33:58 +01:00
|
|
|
|
2020-10-04 03:14:25 +02:00
|
|
|
Task<QueryResult<ActivityLogEntry>> GetPagedResultAsync(ActivityLogQuery query);
|
2020-10-14 19:44:11 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Remove all activity logs before the specified date.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="startDate">Activity log start date.</param>
|
|
|
|
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
|
|
|
|
Task CleanAsync(DateTime startDate);
|
2018-12-28 00:27:57 +01:00
|
|
|
}
|
|
|
|
}
|