aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs')
-rw-r--r--Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs b/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs
new file mode 100644
index 000000000..d8b2856dc
--- /dev/null
+++ b/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs
@@ -0,0 +1,18 @@
+namespace Jellyfin.Api.Attributes
+{
+ /// <summary>
+ /// Produces file attribute of "video/*".
+ /// </summary>
+ public class ProducesVideoFileAttribute : ProducesFileAttribute
+ {
+ private const string ContentType = "video/*";
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ProducesVideoFileAttribute"/> class.
+ /// </summary>
+ public ProducesVideoFileAttribute()
+ : base(ContentType)
+ {
+ }
+ }
+}