mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 08:45:23 +03:00
Add GPL modules
This commit is contained in:
29
MediaBrowser.Controller/Persistence/IUserRepository.cs
Normal file
29
MediaBrowser.Controller/Persistence/IUserRepository.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
|
||||
namespace MediaBrowser.Controller.Persistence
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides an interface to implement a User repository
|
||||
/// </summary>
|
||||
public interface IUserRepository : IRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// Deletes the user.
|
||||
/// </summary>
|
||||
/// <param name="user">The user.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
void DeleteUser(User user);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves all users.
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{User}.</returns>
|
||||
List<User> RetrieveAllUsers();
|
||||
|
||||
void CreateUser(User user);
|
||||
void UpdateUser(User user);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user