mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
29 lines
959 B
C#
29 lines
959 B
C#
|
using MediaBrowser.Controller.Entities;
|
|||
|
using System;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MediaBrowser.Controller.Library
|
|||
|
{
|
|||
|
public interface IUserDataManager
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Saves the user data.
|
|||
|
/// </summary>
|
|||
|
/// <param name="userId">The user id.</param>
|
|||
|
/// <param name="key">The key.</param>
|
|||
|
/// <param name="userData">The user data.</param>
|
|||
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|||
|
/// <returns>Task.</returns>
|
|||
|
Task SaveUserData(Guid userId, string key, UserItemData userData, CancellationToken cancellationToken);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Gets the user data.
|
|||
|
/// </summary>
|
|||
|
/// <param name="userId">The user id.</param>
|
|||
|
/// <param name="key">The key.</param>
|
|||
|
/// <returns>Task{UserItemData}.</returns>
|
|||
|
UserItemData GetUserData(Guid userId, string key);
|
|||
|
}
|
|||
|
}
|