aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/LibraryStructureDto/MediaPathDto.cs
blob: 7a549aadacb2d81adc7bf472a9539d4af5c1ec0b (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
using System.ComponentModel.DataAnnotations;
using MediaBrowser.Model.Configuration;

namespace Jellyfin.Api.Models.LibraryStructureDto;

/// <summary>
/// Media Path dto.
/// </summary>
public class MediaPathDto
{
    /// <summary>
    /// Gets or sets the name of the library.
    /// </summary>
    [Required]
    public required string Name { get; set; }

    /// <summary>
    /// Gets or sets the path to add.
    /// </summary>
    public string? Path { get; set; }

    /// <summary>
    /// Gets or sets the path info.
    /// </summary>
    public MediaPathInfo? PathInfo { get; set; }
}