aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/SubtitleDtos/UploadSubtitleDto.cs
blob: 3c903ea6b5d3c0220df4fb4153736bd321525c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.ComponentModel.DataAnnotations;

namespace Jellyfin.Api.Models.SubtitleDtos;

/// <summary>
/// Upload subtitles dto.
/// </summary>
public class UploadSubtitleDto
{
    /// <summary>
    /// Gets or sets the subtitle language.
    /// </summary>
    [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 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;
}