jellyfin/Jellyfin.Api/Models/LibraryStructureDto/MediaPathDto.cs

27 lines
601 B
C#
Raw Normal View History

2020-07-25 01:22:32 +02:00
using System.ComponentModel.DataAnnotations;
using MediaBrowser.Model.Configuration;
2023-01-31 12:18:10 +01:00
namespace Jellyfin.Api.Models.LibraryStructureDto;
/// <summary>
/// Media Path dto.
/// </summary>
public class MediaPathDto
2020-07-25 01:22:32 +02:00
{
/// <summary>
2023-01-31 12:18:10 +01:00
/// Gets or sets the name of the library.
2020-07-25 01:22:32 +02:00
/// </summary>
2023-01-31 12:18:10 +01:00
[Required]
public required string Name { get; set; }
2020-07-25 01:22:32 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Gets or sets the path to add.
/// </summary>
public string? Path { get; set; }
2020-07-25 01:22:32 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Gets or sets the path info.
/// </summary>
public MediaPathInfo? PathInfo { get; set; }
2021-12-24 18:28:27 +01:00
}