mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-25 14:03:28 +00:00
Moved some logic into domain entities, which is possible now that we're embracing DTO's
This commit is contained in:
parent
5c6ec34a9c
commit
ed018a8bea
@@ -17,5 +17,18 @@ namespace MediaBrowser.Model.Users
|
||||
{
|
||||
RecentItemDays = 14;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets user data for an item, if there is any
|
||||
/// </summary>
|
||||
public UserItemData GetItemData(Guid itemId)
|
||||
{
|
||||
if (ItemData.ContainsKey(itemId))
|
||||
{
|
||||
return ItemData[itemId];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user