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.
        /// Task{UserItemData}.
        UserItemData GetUserData(long userId, string key);
        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);
    }
}