mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-31 10:37:22 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			841 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			841 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| #pragma warning disable CS1591
 | |
| 
 | |
| using System;
 | |
| using System.Threading.Tasks;
 | |
| using Jellyfin.Data.Events;
 | |
| using Jellyfin.Data.Queries;
 | |
| using Jellyfin.Database.Implementations.Entities;
 | |
| using MediaBrowser.Model.Querying;
 | |
| 
 | |
| namespace MediaBrowser.Model.Activity
 | |
| {
 | |
|     public interface IActivityManager
 | |
|     {
 | |
|         event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
 | |
| 
 | |
|         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);
 | |
|     }
 | |
| }
 |