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>
|
/// <summary>
|
||||||
/// Interface for an image generator.
|
/// Gets the supported generated images of the image generator.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IImageGenerator
|
/// <returns>The supported generated image types.</returns>
|
||||||
{
|
IReadOnlyList<GeneratedImageType> GetSupportedImages();
|
||||||
/// <summary>
|
|
||||||
/// Gets the supported generated images of the image generator.
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>The supported images.</returns>
|
|
||||||
GeneratedImages[] GetSupportedImages();
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generates a splashscreen.
|
/// Generates a splashscreen.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="outputPath">The path where the splashscreen should be saved.</param>
|
/// <param name="imageTypeType">The image to generate.</param>
|
||||||
void GenerateSplashscreen(string outputPath);
|
/// <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.Text.Json.Serialization;
|
||||||
using System.Xml.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>
|
/// </summary>
|
||||||
/// Gets or sets the login disclaimer.
|
/// <value>The login disclaimer.</value>
|
||||||
/// </summary>
|
public string? LoginDisclaimer { get; set; }
|
||||||
/// <value>The login disclaimer.</value>
|
|
||||||
public string? LoginDisclaimer { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the custom CSS.
|
/// Gets or sets the custom CSS.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The custom CSS.</value>
|
/// <value>The custom CSS.</value>
|
||||||
public string? CustomCss { get; set; }
|
public string? CustomCss { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the splashscreen location on disk.
|
/// Gets or sets the splashscreen location on disk.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Not served via the API.
|
/// Not served via the API.
|
||||||
/// Only used to save the custom uploaded user splashscreen in the configuration file.
|
/// Only used to save the custom uploaded user splashscreen in the configuration file.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string? SplashscreenLocation { get; set; }
|
public string? SplashscreenLocation { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the splashscreen url.
|
/// Gets the splashscreen url.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[XmlIgnore]
|
[XmlIgnore]
|
||||||
public string? SplashscreenUrl => "/Branding/Splashscreen";
|
public string SplashscreenUrl => "/Branding/Splashscreen";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue