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