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