Interface IUserDataManager
Interface IUserDataManager
Assembly: MediaBrowser.Controller.dll
public interface IUserDataManager
Methods
Declaration
void ClearTrackSelections(long userId, MediaStreamType trackType)
Parameters
Get all user data for the given user
Declaration
List<UserItemData> GetAllUserData(long userId)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
Returns
Type |
Description |
System.Collections.Generic.List<UserItemData> |
|
Declaration
UserItemData GetUserData(User user, BaseItem item)
Parameters
Returns
Declaration
UserItemData GetUserData(User user, long itemId)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Int64 |
itemId |
|
Returns
Declaration
UserItemData GetUserData(long userId, BaseItem item)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
BaseItem |
item |
|
Returns
Declaration
UserItemData GetUserData(long userId, long itemId, UserDataFields[] fields)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
System.Int64 |
itemId |
|
UserDataFields[] |
fields |
|
Returns
Declaration
UserItemData GetUserData(ReadOnlySpan<char> userId, BaseItem item)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
userId |
|
BaseItem |
item |
|
Returns
Declaration
UserItemData GetUserData(string userId, BaseItem item)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
BaseItem |
item |
|
Returns
Declaration
UserItemDataDto GetUserDataDto(BaseItem item, User user)
Parameters
Returns
Declaration
UserItemDataDto GetUserDataDto(BaseItem item, User user, DtoOptions options, LibraryOptions libraryOptions)
Parameters
Returns
Save the all provided user data for the given user
Declaration
void SaveAllUserData(long userId, UserItemData[] userData, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
UserItemData[] |
userData |
|
System.Threading.CancellationToken |
cancellationToken |
|
Declaration
void SaveUserData(User user, BaseItem item, BaseItem[] collectionFolders, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken)
Parameters
Declaration
void SaveUserData(User user, BaseItem item, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken)
Parameters
Declaration
void SaveUserData(long userId, BaseItem item, BaseItem[] collectionFolders, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken)
Parameters
Declaration
void SaveUserData(long userId, BaseItem item, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken)
Parameters
Declaration
void UnhideSeriesFromResume(long userId, string seriesPresentationUniqueKey)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
System.String |
seriesPresentationUniqueKey |
|
Declaration
bool UpdatePlayState(BaseItem item, UserItemData data, long? positionTicks)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Updates playstate for an item and returns true or false indicating if it was played to completion
Declaration
bool UpdatePlayState(BaseItem item, LibraryOptions libraryOptions, UserItemData data, long? positionTicks)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Events
Occurs when [user data saved].
Declaration
event EventHandler<UserDataSaveEventArgs> UserDataSaved
Event Type
Extension Methods