MediaPathDto.cs 598 B

1234567891011121314151617181920212223242526
  1. using System.ComponentModel.DataAnnotations;
  2. using MediaBrowser.Model.Configuration;
  3. namespace Jellyfin.Api.Models.LibraryStructureDto;
  4. /// <summary>
  5. /// Media Path dto.
  6. /// </summary>
  7. public class MediaPathDto
  8. {
  9. /// <summary>
  10. /// Gets or sets the name of the library.
  11. /// </summary>
  12. [Required]
  13. public required string Name { get; set; }
  14. /// <summary>
  15. /// Gets or sets the path to add.
  16. /// </summary>
  17. public string? Path { get; set; }
  18. /// <summary>
  19. /// Gets or sets the path info.
  20. /// </summary>
  21. public MediaPathInfo? PathInfo { get; set; }
  22. }