mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-31 10:37:22 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MediaBrowser.Model.FileOrganization;
 | |
| using MediaBrowser.Model.Querying;
 | |
| using System.Threading;
 | |
| using System.Threading.Tasks;
 | |
| 
 | |
| namespace MediaBrowser.Controller.Persistence
 | |
| {
 | |
|     public interface IFileOrganizationRepository
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// Saves the result.
 | |
|         /// </summary>
 | |
|         /// <param name="result">The result.</param>
 | |
|         /// <param name="cancellationToken">The cancellation token.</param>
 | |
|         /// <returns>Task.</returns>
 | |
|         Task SaveResult(FileOrganizationResult result, CancellationToken cancellationToken);
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Deletes the specified identifier.
 | |
|         /// </summary>
 | |
|         /// <param name="id">The identifier.</param>
 | |
|         /// <returns>Task.</returns>
 | |
|         Task Delete(string id);
 | |
|         
 | |
|         /// <summary>
 | |
|         /// Gets the result.
 | |
|         /// </summary>
 | |
|         /// <param name="id">The identifier.</param>
 | |
|         /// <returns>FileOrganizationResult.</returns>
 | |
|         FileOrganizationResult GetResult(string id);
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets the results.
 | |
|         /// </summary>
 | |
|         /// <param name="query">The query.</param>
 | |
|         /// <returns>IEnumerable{FileOrganizationResult}.</returns>
 | |
|         QueryResult<FileOrganizationResult> GetResults(FileOrganizationResultQuery query);
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Deletes all.
 | |
|         /// </summary>
 | |
|         /// <returns>Task.</returns>
 | |
|         Task DeleteAll();
 | |
|     }
 | |
| }
 |