using System.Collections.Generic;
using System.Threading;
using MediaBrowser.Controller.Entities;
namespace MediaBrowser.Controller.Persistence
{
///
/// Provides an interface to implement a UserData repository.
///
public interface IUserDataRepository : IRepository
{
///
/// Saves the user data.
///
/// The user id.
/// The key.
/// The user data.
/// The cancellation token.
/// Task.
void SaveUserData(long userId, string key, UserItemData userData, CancellationToken cancellationToken);
///
/// Gets the user data.
///
/// The user id.
/// The key.
/// The user data.
UserItemData GetUserData(long userId, string key);
///
/// Gets the user data.
///
/// The user id.
/// The keys.
/// The user data.
UserItemData GetUserData(long userId, List keys);
///
/// Return all user data associated with the given user.
///
///
///
List GetAllUserData(long userId);
///
/// Save all user data associated with the given user.
///
///
///
///
///
void SaveAllUserData(long userId, UserItemData[] userData, CancellationToken cancellationToken);
}
}