using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Entities;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Library
{
///
/// Interface IUserDataManager
///
public interface IUserDataManager
{
///
/// Occurs when [user data saved].
///
event EventHandler UserDataSaved;
///
/// Saves the user data.
///
/// The user id.
/// The item.
/// The user data.
/// The reason.
/// The cancellation token.
/// Task.
Task SaveUserData(Guid userId, IHasUserData item, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken);
///
/// Gets the user data.
///
/// The user id.
/// The key.
/// Task{UserItemData}.
UserItemData GetUserData(Guid userId, string key);
}
}