2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:02:23 +00:00
|
|
|
using System;
|
2020-05-02 22:32:22 +00:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Jellyfin.Data.Entities;
|
2020-08-14 00:48:28 +00:00
|
|
|
using Jellyfin.Data.Events;
|
2020-10-04 01:14:25 +00:00
|
|
|
using Jellyfin.Data.Queries;
|
2019-01-25 20:33:58 +00:00
|
|
|
using MediaBrowser.Model.Querying;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Activity
|
|
|
|
{
|
|
|
|
public interface IActivityManager
|
|
|
|
{
|
|
|
|
event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
|
|
|
|
|
2020-05-02 22:32:22 +00:00
|
|
|
Task CreateAsync(ActivityLog entry);
|
2019-01-25 20:33:58 +00:00
|
|
|
|
2020-10-04 01:14:25 +00:00
|
|
|
Task<QueryResult<ActivityLogEntry>> GetPagedResultAsync(ActivityLogQuery query);
|
2020-10-14 17:44:11 +00: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-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|