aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Drawing
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-01-04 08:37:57 -0700
committerCody Robibero <cody@robibe.ro>2022-01-04 08:44:03 -0700
commit360fd70fc74325008b031c9a1155b9b76724866d (patch)
tree88966cefe4f3a9a982cdf7b0bcb2c88edc6e0d64 /MediaBrowser.Controller/Drawing
parent9e0958d8224ef3fa51893fd5a38cc57104f32422 (diff)
Clean up
Diffstat (limited to 'MediaBrowser.Controller/Drawing')
-rw-r--r--MediaBrowser.Controller/Drawing/GeneratedImageType.cs12
-rw-r--r--MediaBrowser.Controller/Drawing/GeneratedImages.cs13
-rw-r--r--MediaBrowser.Controller/Drawing/IImageGenerator.cs32
3 files changed, 29 insertions, 28 deletions
diff --git a/MediaBrowser.Controller/Drawing/GeneratedImageType.cs b/MediaBrowser.Controller/Drawing/GeneratedImageType.cs
new file mode 100644
index 000000000..a8db86d4f
--- /dev/null
+++ b/MediaBrowser.Controller/Drawing/GeneratedImageType.cs
@@ -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
+}
diff --git a/MediaBrowser.Controller/Drawing/GeneratedImages.cs b/MediaBrowser.Controller/Drawing/GeneratedImages.cs
deleted file mode 100644
index 47b60979b..000000000
--- a/MediaBrowser.Controller/Drawing/GeneratedImages.cs
+++ /dev/null
@@ -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
- }
-}
diff --git a/MediaBrowser.Controller/Drawing/IImageGenerator.cs b/MediaBrowser.Controller/Drawing/IImageGenerator.cs
index f7e7f83b2..773db02cb 100644
--- a/MediaBrowser.Controller/Drawing/IImageGenerator.cs
+++ b/MediaBrowser.Controller/Drawing/IImageGenerator.cs
@@ -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);
}