aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-03-05 16:56:21 +0100
committerGitHub <noreply@github.com>2021-03-05 16:56:21 +0100
commitd0a2d00b29d87e7f71e85efd38d2b6c8beafe4ea (patch)
tree212362836149ca6cf6a44b8812bbdc67e0075be1 /Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs
parenta0f6bc14a2c9817b3199a81872eb7d84489cde0d (diff)
Fix UpdateMediaPath model binding (#5378)
Diffstat (limited to 'Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs')
-rw-r--r--Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs b/Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs
new file mode 100644
index 000000000..fbd4985f9
--- /dev/null
+++ b/Jellyfin.Api/Models/LibraryStructureDto/UpdateMediaPathRequestDto.cs
@@ -0,0 +1,23 @@
+using System.ComponentModel.DataAnnotations;
+using MediaBrowser.Model.Configuration;
+
+namespace Jellyfin.Api.Models.LibraryStructureDto
+{
+ /// <summary>
+ /// Update library options dto.
+ /// </summary>
+ public class UpdateMediaPathRequestDto
+ {
+ /// <summary>
+ /// Gets or sets the library name.
+ /// </summary>
+ [Required]
+ public string Name { get; set; } = null!;
+
+ /// <summary>
+ /// Gets or sets library folder path information.
+ /// </summary>
+ [Required]
+ public MediaPathInfo PathInfo { get; set; } = null!;
+ }
+}