parent
9e0958d822
commit
360fd70fc7
@ -0,0 +1,12 @@
|
||||
namespace MediaBrowser.Controller.Drawing;
|
||||
|
||||
/// <summary>
|
||||
/// Which generated image type the <see cref="IImageGenerator"/> supports.
|
||||
/// </summary>
|
||||
public enum GeneratedImageType
|
||||
{
|
||||
/// <summary>
|
||||
/// The splashscreen.
|
||||
/// </summary>
|
||||
Splashscreen = 0
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
namespace MediaBrowser.Controller.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Which generated images an <see cref="IImageGenerator"/> supports.
|
||||
/// </summary>
|
||||
public enum GeneratedImages
|
||||
{
|
||||
/// <summary>
|
||||
/// The splashscreen.
|
||||
/// </summary>
|
||||
Splashscreen
|
||||
}
|
||||
}
|
@ -1,20 +1,22 @@
|
||||
namespace MediaBrowser.Controller.Drawing
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Drawing;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for an image generator.
|
||||
/// </summary>
|
||||
public interface IImageGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for an image generator.
|
||||
/// Gets the supported generated images of the image generator.
|
||||
/// </summary>
|
||||
public interface IImageGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the supported generated images of the image generator.
|
||||
/// </summary>
|
||||
/// <returns>The supported images.</returns>
|
||||
GeneratedImages[] GetSupportedImages();
|
||||
/// <returns>The supported generated image types.</returns>
|
||||
IReadOnlyList<GeneratedImageType> GetSupportedImages();
|
||||
|
||||
/// <summary>
|
||||
/// Generates a splashscreen.
|
||||
/// </summary>
|
||||
/// <param name="outputPath">The path where the splashscreen should be saved.</param>
|
||||
void GenerateSplashscreen(string outputPath);
|
||||
}
|
||||
/// <summary>
|
||||
/// Generates a splashscreen.
|
||||
/// </summary>
|
||||
/// <param name="imageTypeType">The image to generate.</param>
|
||||
/// <param name="outputPath">The path where the splashscreen should be saved.</param>
|
||||
void Generate(GeneratedImageType imageTypeType, string outputPath);
|
||||
}
|
||||
|
@ -1,38 +1,38 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
#pragma warning disable CS1591
|
||||
namespace MediaBrowser.Model.Branding;
|
||||
|
||||
namespace MediaBrowser.Model.Branding
|
||||
/// <summary>
|
||||
/// The branding options.
|
||||
/// </summary>
|
||||
public class BrandingOptions
|
||||
{
|
||||
public class BrandingOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the login disclaimer.
|
||||
/// </summary>
|
||||
/// <value>The login disclaimer.</value>
|
||||
public string? LoginDisclaimer { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the login disclaimer.
|
||||
/// </summary>
|
||||
/// <value>The login disclaimer.</value>
|
||||
public string? LoginDisclaimer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the custom CSS.
|
||||
/// </summary>
|
||||
/// <value>The custom CSS.</value>
|
||||
public string? CustomCss { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the custom CSS.
|
||||
/// </summary>
|
||||
/// <value>The custom CSS.</value>
|
||||
public string? CustomCss { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the splashscreen location on disk.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Not served via the API.
|
||||
/// Only used to save the custom uploaded user splashscreen in the configuration file.
|
||||
/// </remarks>
|
||||
[JsonIgnore]
|
||||
public string? SplashscreenLocation { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the splashscreen location on disk.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Not served via the API.
|
||||
/// Only used to save the custom uploaded user splashscreen in the configuration file.
|
||||
/// </remarks>
|
||||
[JsonIgnore]
|
||||
public string? SplashscreenLocation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the splashscreen url.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public string? SplashscreenUrl => "/Branding/Splashscreen";
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the splashscreen url.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public string SplashscreenUrl => "/Branding/Splashscreen";
|
||||
}
|
||||
|
Loading…
Reference in new issue