diff options
Diffstat (limited to 'MediaBrowser.Controller/Themes')
| -rw-r--r-- | MediaBrowser.Controller/Themes/IAppThemeManager.cs | 38 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Themes/InternalThemeImage.cs | 31 |
2 files changed, 69 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Themes/IAppThemeManager.cs b/MediaBrowser.Controller/Themes/IAppThemeManager.cs new file mode 100644 index 000000000..1a7c2aaab --- /dev/null +++ b/MediaBrowser.Controller/Themes/IAppThemeManager.cs @@ -0,0 +1,38 @@ +using MediaBrowser.Model.Themes; +using System.Collections.Generic; + +namespace MediaBrowser.Controller.Themes +{ + public interface IAppThemeManager + { + /// <summary> + /// Gets the themes. + /// </summary> + /// <param name="applicationName">Name of the application.</param> + /// <returns>IEnumerable{AppThemeInfo}.</returns> + IEnumerable<AppThemeInfo> GetThemes(string applicationName); + + /// <summary> + /// Gets the theme. + /// </summary> + /// <param name="applicationName">Name of the application.</param> + /// <param name="name">The name.</param> + /// <returns>AppTheme.</returns> + AppTheme GetTheme(string applicationName, string name); + + /// <summary> + /// Saves the theme. + /// </summary> + /// <param name="theme">The theme.</param> + void SaveTheme(AppTheme theme); + + /// <summary> + /// Gets the image image information. + /// </summary> + /// <param name="applicationName">Name of the application.</param> + /// <param name="themeName">Name of the theme.</param> + /// <param name="imageName">Name of the image.</param> + /// <returns>InternalThemeImage.</returns> + InternalThemeImage GetImageImageInfo(string applicationName, string themeName, string imageName); + } +} diff --git a/MediaBrowser.Controller/Themes/InternalThemeImage.cs b/MediaBrowser.Controller/Themes/InternalThemeImage.cs new file mode 100644 index 000000000..2b676c25b --- /dev/null +++ b/MediaBrowser.Controller/Themes/InternalThemeImage.cs @@ -0,0 +1,31 @@ +using System; + +namespace MediaBrowser.Controller.Themes +{ + public class InternalThemeImage + { + /// <summary> + /// Gets or sets the name. + /// </summary> + /// <value>The name.</value> + public string Name { get; set; } + + /// <summary> + /// Gets or sets the cache tag. + /// </summary> + /// <value>The cache tag.</value> + public string CacheTag { get; set; } + + /// <summary> + /// Gets or sets the path. + /// </summary> + /// <value>The path.</value> + public string Path { get; set; } + + /// <summary> + /// Gets or sets the date modified. + /// </summary> + /// <value>The date modified.</value> + public DateTime DateModified { get; set; } + } +} |
