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