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.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Jellyfin.Data.Entities;
|
2020-08-13 17:48:28 -07:00
|
|
|
using Jellyfin.Data.Events;
|
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
|
|
|
void Create(ActivityLog entry);
|
2018-12-27 16:27:57 -07:00
|
|
|
|
2020-05-02 15:32:22 -07:00
|
|
|
Task CreateAsync(ActivityLog entry);
|
2019-01-25 13:33:58 -07:00
|
|
|
|
2020-05-02 15:32:22 -07:00
|
|
|
QueryResult<ActivityLogEntry> GetPagedResult(int? startIndex, int? limit);
|
|
|
|
|
|
|
|
QueryResult<ActivityLogEntry> GetPagedResult(
|
2020-05-14 14:13:45 -07:00
|
|
|
Func<IQueryable<ActivityLog>, IQueryable<ActivityLog>> func,
|
2020-05-02 15:32:22 -07:00
|
|
|
int? startIndex,
|
|
|
|
int? limit);
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
}
|