mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using MediaBrowser.Controller.Entities;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Threading;
 | 
						|
using System.Threading.Tasks;
 | 
						|
 | 
						|
namespace MediaBrowser.Controller.Persistence
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// Provides an interface to implement a User repository
 | 
						|
    /// </summary>
 | 
						|
    public interface IUserRepository : IRepository
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// Opens the connection to the repository
 | 
						|
        /// </summary>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        Task Initialize();
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Deletes the user.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="user">The user.</param>
 | 
						|
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        Task DeleteUser(User user, CancellationToken cancellationToken);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Saves the user.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="user">The user.</param>
 | 
						|
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        Task SaveUser(User user, CancellationToken cancellationToken);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Retrieves all users.
 | 
						|
        /// </summary>
 | 
						|
        /// <returns>IEnumerable{User}.</returns>
 | 
						|
        IEnumerable<User> RetrieveAllUsers();
 | 
						|
    }
 | 
						|
}
 |