2
0

IActivityManager.cs 841 B

123456789101112131415161718192021222324252627
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.Threading.Tasks;
  4. using Jellyfin.Data.Events;
  5. using Jellyfin.Data.Queries;
  6. using Jellyfin.Database.Implementations.Entities;
  7. using MediaBrowser.Model.Querying;
  8. namespace MediaBrowser.Model.Activity
  9. {
  10. public interface IActivityManager
  11. {
  12. event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
  13. Task CreateAsync(ActivityLog entry);
  14. Task<QueryResult<ActivityLogEntry>> GetPagedResultAsync(ActivityLogQuery query);
  15. /// <summary>
  16. /// Remove all activity logs before the specified date.
  17. /// </summary>
  18. /// <param name="startDate">Activity log start date.</param>
  19. /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
  20. Task CleanAsync(DateTime startDate);
  21. }
  22. }