mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using MediaBrowser.Model.Devices;
 | 
						|
using MediaBrowser.Model.Querying;
 | 
						|
using System.Threading;
 | 
						|
 | 
						|
namespace MediaBrowser.Controller.Security
 | 
						|
{
 | 
						|
    public interface IAuthenticationRepository
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// Creates the specified information.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="info">The information.</param>
 | 
						|
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        void Create(AuthenticationInfo info);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Updates the specified information.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="info">The information.</param>
 | 
						|
        /// <param name="cancellationToken">The cancellation token.</param>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        void Update(AuthenticationInfo info);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Gets the specified query.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="query">The query.</param>
 | 
						|
        /// <returns>QueryResult{AuthenticationInfo}.</returns>
 | 
						|
        QueryResult<AuthenticationInfo> Get(AuthenticationInfoQuery query);
 | 
						|
 | 
						|
        void Delete(AuthenticationInfo info);
 | 
						|
 | 
						|
        DeviceOptions GetDeviceOptions(string deviceId);
 | 
						|
        void UpdateDeviceOptions(string deviceId, DeviceOptions options);
 | 
						|
    }
 | 
						|
}
 |