2013-02-21 02:33:05 +01:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2013-04-02 21:25:16 +02:00
|
|
|
|
using System;
|
2013-02-21 02:33:05 +01:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Persistence
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides an interface to implement a UserData repository
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IUserDataRepository : IRepository
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2013-04-02 21:25:16 +02:00
|
|
|
|
/// Saves the user data.
|
2013-02-21 02:33:05 +01:00
|
|
|
|
/// </summary>
|
2013-04-02 21:25:16 +02:00
|
|
|
|
/// <param name="userId">The user id.</param>
|
|
|
|
|
/// <param name="userDataId">The user data id.</param>
|
|
|
|
|
/// <param name="userData">The user data.</param>
|
2013-02-21 02:33:05 +01:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-04-02 21:25:16 +02:00
|
|
|
|
Task SaveUserData(Guid userId, Guid userDataId, UserItemData userData,
|
|
|
|
|
CancellationToken cancellationToken);
|
2013-02-21 02:33:05 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-04-02 21:25:16 +02:00
|
|
|
|
/// Gets the user data.
|
2013-02-21 02:33:05 +01:00
|
|
|
|
/// </summary>
|
2013-04-02 21:25:16 +02:00
|
|
|
|
/// <param name="userId">The user id.</param>
|
|
|
|
|
/// <param name="userDataId">The user data id.</param>
|
|
|
|
|
/// <returns>Task{UserItemData}.</returns>
|
|
|
|
|
Task<UserItemData> GetUserData(Guid userId, Guid userDataId);
|
2013-02-21 02:33:05 +01:00
|
|
|
|
}
|
|
|
|
|
}
|