From 714aaefbcc3abf0b952efc831001cf42e1c873b0 Mon Sep 17 00:00:00 2001 From: crobibero Date: Fri, 24 Apr 2020 18:20:36 -0600 Subject: Transfer EnvironmentService to Jellyfin.Api --- .../Models/EnvironmentDtos/ValidatePathDto.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs (limited to 'Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs') diff --git a/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs b/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs new file mode 100644 index 000000000..60c82e166 --- /dev/null +++ b/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs @@ -0,0 +1,23 @@ +namespace Jellyfin.Api.Models.EnvironmentDtos +{ + /// + /// Validate path object. + /// + public class ValidatePathDto + { + /// + /// Gets or sets a value indicating whether validate if path is writable. + /// + public bool ValidateWritable { get; set; } + + /// + /// Gets or sets the path. + /// + public string Path { get; set; } + + /// + /// Gets or sets is path file. + /// + public bool? IsFile { get; set; } + } +} -- cgit v1.2.3 From 0179293c24b8fe4000612b5538f14082719bf8f4 Mon Sep 17 00:00:00 2001 From: crobibero Date: Thu, 25 Jun 2020 16:23:31 -0600 Subject: fix build --- Jellyfin.Api/Models/EnvironmentDtos/DefaultDirectoryBrowserInfoDto.cs | 2 +- Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs') diff --git a/Jellyfin.Api/Models/EnvironmentDtos/DefaultDirectoryBrowserInfoDto.cs b/Jellyfin.Api/Models/EnvironmentDtos/DefaultDirectoryBrowserInfoDto.cs index a86815b81..92be15b8a 100644 --- a/Jellyfin.Api/Models/EnvironmentDtos/DefaultDirectoryBrowserInfoDto.cs +++ b/Jellyfin.Api/Models/EnvironmentDtos/DefaultDirectoryBrowserInfoDto.cs @@ -8,6 +8,6 @@ namespace Jellyfin.Api.Models.EnvironmentDtos /// /// Gets or sets the path. /// - public string Path { get; set; } + public string? Path { get; set; } } } diff --git a/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs b/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs index 60c82e166..418c11c2d 100644 --- a/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs +++ b/Jellyfin.Api/Models/EnvironmentDtos/ValidatePathDto.cs @@ -13,7 +13,7 @@ namespace Jellyfin.Api.Models.EnvironmentDtos /// /// Gets or sets the path. /// - public string Path { get; set; } + public string? Path { get; set; } /// /// Gets or sets is path file. -- cgit v1.2.3