UploadSubtitleDto.cs 981 B

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