2020-09-12 00:08:49 +02:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2023-01-31 12:18:10 +01:00
|
|
|
|
namespace Jellyfin.Api.Models.SubtitleDtos;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Upload subtitles dto.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UploadSubtitleDto
|
2020-09-12 00:08:49 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-01-31 12:18:10 +01:00
|
|
|
|
/// Gets or sets the subtitle language.
|
2020-09-12 00:08:49 +02:00
|
|
|
|
/// </summary>
|
2023-01-31 12:18:10 +01:00
|
|
|
|
[Required]
|
|
|
|
|
public string Language { get; set; } = string.Empty;
|
2020-09-12 00:08:49 +02:00
|
|
|
|
|
2023-01-31 12:18:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the subtitle format.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public string Format { get; set; } = string.Empty;
|
2020-09-12 00:08:49 +02:00
|
|
|
|
|
2023-01-31 12:18:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether the subtitle is forced.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public bool IsForced { get; set; }
|
2020-09-12 00:08:49 +02:00
|
|
|
|
|
2023-01-31 12:18:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the subtitle data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public string Data { get; set; } = string.Empty;
|
2021-12-24 18:28:27 +01:00
|
|
|
|
}
|