mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
added app theme classes and service
This commit is contained in:
@@ -256,6 +256,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
if (series != null)
|
||||
{
|
||||
id.SeriesProviderIds = series.ProviderIds;
|
||||
id.AnimeSeriesIndex = series.AnimeSeriesIndex;
|
||||
}
|
||||
|
||||
id.IndexNumberEnd = IndexNumberEnd;
|
||||
|
||||
@@ -257,6 +257,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
if (series != null)
|
||||
{
|
||||
id.SeriesProviderIds = series.ProviderIds;
|
||||
id.AnimeSeriesIndex = series.AnimeSeriesIndex;
|
||||
}
|
||||
|
||||
return id;
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
|
||||
public int SeasonCount { get; set; }
|
||||
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preferred metadata country code.
|
||||
/// </summary>
|
||||
@@ -224,7 +226,11 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
|
||||
public SeriesInfo GetLookupInfo()
|
||||
{
|
||||
return GetItemLookupInfo<SeriesInfo>();
|
||||
var info = GetItemLookupInfo<SeriesInfo>();
|
||||
|
||||
info.AnimeSeriesIndex = AnimeSeriesIndex;
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
public override bool BeforeMetadataRefresh()
|
||||
|
||||
@@ -239,6 +239,8 @@
|
||||
<Compile Include="Sorting\IUserBaseItemComparer.cs" />
|
||||
<Compile Include="Providers\BaseItemXmlParser.cs" />
|
||||
<Compile Include="Sorting\SortExtensions.cs" />
|
||||
<Compile Include="Themes\IAppThemeManager.cs" />
|
||||
<Compile Include="Themes\InternalThemeImage.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">
|
||||
|
||||
@@ -101,6 +101,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
public Dictionary<string, string> SeriesProviderIds { get; set; }
|
||||
|
||||
public int? IndexNumberEnd { get; set; }
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
public EpisodeInfo()
|
||||
{
|
||||
@@ -117,7 +118,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
public class SeriesInfo : ItemLookupInfo
|
||||
{
|
||||
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
}
|
||||
|
||||
public class PersonLookupInfo : ItemLookupInfo
|
||||
@@ -153,6 +154,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
public class SeasonInfo : ItemLookupInfo
|
||||
{
|
||||
public Dictionary<string, string> SeriesProviderIds { get; set; }
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
public SeasonInfo()
|
||||
{
|
||||
|
||||
38
MediaBrowser.Controller/Themes/IAppThemeManager.cs
Normal file
38
MediaBrowser.Controller/Themes/IAppThemeManager.cs
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
31
MediaBrowser.Controller/Themes/InternalThemeImage.cs
Normal file
31
MediaBrowser.Controller/Themes/InternalThemeImage.cs
Normal file
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user