jellyfin/MediaBrowser.Model/Activity/IActivityManager.cs

28 lines
821 B
C#
Raw Normal View History

2020-02-03 17:49:27 -07:00
#pragma warning disable CS1591
using System;
2020-05-02 15:32:22 -07:00
using System.Threading.Tasks;
using Jellyfin.Data.Entities;
using Jellyfin.Data.Events;
using Jellyfin.Data.Queries;
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);
Task<QueryResult<ActivityLogEntry>> GetPagedResultAsync(ActivityLogQuery query);
/// <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
}
}