aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs')
-rw-r--r--Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs49
1 files changed, 24 insertions, 25 deletions
diff --git a/Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs b/Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs
index be0595798..3c903ea6b 100644
--- a/Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs
+++ b/Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs
@@ -1,34 +1,33 @@
using System.ComponentModel.DataAnnotations;
-namespace Jellyfin.Api.Models.SubtitleDtos
+namespace Jellyfin.Api.Models.SubtitleDtos;
+
+/// <summary>
+/// Upload subtitles dto.
+/// </summary>
+public class UploadSubtitleDto
{
/// <summary>
- /// Upload subtitles dto.
+ /// Gets or sets the subtitle language.
/// </summary>
- public class UploadSubtitleDto
- {
- /// <summary>
- /// Gets or sets the subtitle language.
- /// </summary>
- [Required]
- public string Language { get; set; } = string.Empty;
+ [Required]
+ public string Language { get; set; } = string.Empty;
- /// <summary>
- /// Gets or sets the subtitle format.
- /// </summary>
- [Required]
- public string Format { get; set; } = string.Empty;
+ /// <summary>
+ /// Gets or sets the subtitle format.
+ /// </summary>
+ [Required]
+ public string Format { get; set; } = string.Empty;
- /// <summary>
- /// Gets or sets a value indicating whether the subtitle is forced.
- /// </summary>
- [Required]
- public bool IsForced { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating whether the subtitle is forced.
+ /// </summary>
+ [Required]
+ public bool IsForced { get; set; }
- /// <summary>
- /// Gets or sets the subtitle data.
- /// </summary>
- [Required]
- public string Data { get; set; } = string.Empty;
- }
+ /// <summary>
+ /// Gets or sets the subtitle data.
+ /// </summary>
+ [Required]
+ public string Data { get; set; } = string.Empty;
}