using MediaBrowser.Controller.Entities;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Persistence
{
///
/// Provides an interface to implement a UserData repository
///
public interface IUserDataRepository : IRepository
{
///
/// Saves the user data.
///
/// The user id.
/// The user data id.
/// The user data.
/// The cancellation token.
/// Task.
Task SaveUserData(Guid userId, Guid userDataId, UserItemData userData,
CancellationToken cancellationToken);
///
/// Gets the user data.
///
/// The user id.
/// The user data id.
/// Task{UserItemData}.
Task GetUserData(Guid userId, Guid userDataId);
}
}