Refactor Display preference manager (#14056)

This commit is contained in:
JPVenson
2025-09-05 22:39:15 +02:00
committed by GitHub
parent 4849486fa0
commit 20f7ddbf8f
4 changed files with 102 additions and 91 deletions

View File

@@ -60,8 +60,15 @@ namespace MediaBrowser.Controller
void SetCustomItemDisplayPreferences(Guid userId, Guid itemId, string client, Dictionary<string, string?> customPreferences);
/// <summary>
/// Saves changes made to the database.
/// Updates or Creates the display preferences.
/// </summary>
void SaveChanges();
/// <param name="displayPreferences">The entity to update or create.</param>
void UpdateDisplayPreferences(DisplayPreferences displayPreferences);
/// <summary>
/// Updates or Creates the display preferences for the given item.
/// </summary>
/// <param name="itemDisplayPreferences">The entity to update or create.</param>
void UpdateItemDisplayPreferences(ItemDisplayPreferences itemDisplayPreferences);
}
}