UploadSubtitleDto.cs 903 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Jellyfin.Api.Models.SubtitleDtos
  3. {
  4. /// <summary>
  5. /// Upload subtitles dto.
  6. /// </summary>
  7. public class UploadSubtitleDto
  8. {
  9. /// <summary>
  10. /// Gets or sets the subtitle language.
  11. /// </summary>
  12. [Required]
  13. public string Language { get; set; } = string.Empty;
  14. /// <summary>
  15. /// Gets or sets the subtitle format.
  16. /// </summary>
  17. [Required]
  18. public string Format { get; set; } = string.Empty;
  19. /// <summary>
  20. /// Gets or sets a value indicating whether the subtitle is forced.
  21. /// </summary>
  22. [Required]
  23. public bool IsForced { get; set; }
  24. /// <summary>
  25. /// Gets or sets the subtitle data.
  26. /// </summary>
  27. [Required]
  28. public string Data { get; set; } = string.Empty;
  29. }
  30. }