aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/LibraryDtos
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/LibraryDtos')
-rw-r--r--Jellyfin.Api/Models/LibraryDtos/LibraryOptionInfoDto.cs25
-rw-r--r--Jellyfin.Api/Models/LibraryDtos/LibraryOptionsResultDto.cs41
-rw-r--r--Jellyfin.Api/Models/LibraryDtos/LibraryTypeOptionsDto.cs49
-rw-r--r--Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoDto.cs17
-rw-r--r--Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoPathDto.cs27
5 files changed, 77 insertions, 82 deletions
diff --git a/Jellyfin.Api/Models/LibraryDtos/LibraryOptionInfoDto.cs b/Jellyfin.Api/Models/LibraryDtos/LibraryOptionInfoDto.cs
index 358434434..6401522f6 100644
--- a/Jellyfin.Api/Models/LibraryDtos/LibraryOptionInfoDto.cs
+++ b/Jellyfin.Api/Models/LibraryDtos/LibraryOptionInfoDto.cs
@@ -1,18 +1,17 @@
-namespace Jellyfin.Api.Models.LibraryDtos
+namespace Jellyfin.Api.Models.LibraryDtos;
+
+/// <summary>
+/// Library option info dto.
+/// </summary>
+public class LibraryOptionInfoDto
{
/// <summary>
- /// Library option info dto.
+ /// Gets or sets name.
/// </summary>
- public class LibraryOptionInfoDto
- {
- /// <summary>
- /// Gets or sets name.
- /// </summary>
- public string? Name { get; set; }
+ public string? Name { get; set; }
- /// <summary>
- /// Gets or sets a value indicating whether default enabled.
- /// </summary>
- public bool DefaultEnabled { get; set; }
- }
+ /// <summary>
+ /// Gets or sets a value indicating whether default enabled.
+ /// </summary>
+ public bool DefaultEnabled { get; set; }
}
diff --git a/Jellyfin.Api/Models/LibraryDtos/LibraryOptionsResultDto.cs b/Jellyfin.Api/Models/LibraryDtos/LibraryOptionsResultDto.cs
index 7de44aa65..78efacd94 100644
--- a/Jellyfin.Api/Models/LibraryDtos/LibraryOptionsResultDto.cs
+++ b/Jellyfin.Api/Models/LibraryDtos/LibraryOptionsResultDto.cs
@@ -1,31 +1,30 @@
using System;
using System.Collections.Generic;
-namespace Jellyfin.Api.Models.LibraryDtos
+namespace Jellyfin.Api.Models.LibraryDtos;
+
+/// <summary>
+/// Library options result dto.
+/// </summary>
+public class LibraryOptionsResultDto
{
/// <summary>
- /// Library options result dto.
+ /// Gets or sets the metadata savers.
/// </summary>
- public class LibraryOptionsResultDto
- {
- /// <summary>
- /// Gets or sets the metadata savers.
- /// </summary>
- public IReadOnlyList<LibraryOptionInfoDto> MetadataSavers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
+ public IReadOnlyList<LibraryOptionInfoDto> MetadataSavers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
- /// <summary>
- /// Gets or sets the metadata readers.
- /// </summary>
- public IReadOnlyList<LibraryOptionInfoDto> MetadataReaders { get; set; } = Array.Empty<LibraryOptionInfoDto>();
+ /// <summary>
+ /// Gets or sets the metadata readers.
+ /// </summary>
+ public IReadOnlyList<LibraryOptionInfoDto> MetadataReaders { get; set; } = Array.Empty<LibraryOptionInfoDto>();
- /// <summary>
- /// Gets or sets the subtitle fetchers.
- /// </summary>
- public IReadOnlyList<LibraryOptionInfoDto> SubtitleFetchers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
+ /// <summary>
+ /// Gets or sets the subtitle fetchers.
+ /// </summary>
+ public IReadOnlyList<LibraryOptionInfoDto> SubtitleFetchers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
- /// <summary>
- /// Gets or sets the type options.
- /// </summary>
- public IReadOnlyList<LibraryTypeOptionsDto> TypeOptions { get; set; } = Array.Empty<LibraryTypeOptionsDto>();
- }
+ /// <summary>
+ /// Gets or sets the type options.
+ /// </summary>
+ public IReadOnlyList<LibraryTypeOptionsDto> TypeOptions { get; set; } = Array.Empty<LibraryTypeOptionsDto>();
}
diff --git a/Jellyfin.Api/Models/LibraryDtos/LibraryTypeOptionsDto.cs b/Jellyfin.Api/Models/LibraryDtos/LibraryTypeOptionsDto.cs
index 20f45196d..125a6746e 100644
--- a/Jellyfin.Api/Models/LibraryDtos/LibraryTypeOptionsDto.cs
+++ b/Jellyfin.Api/Models/LibraryDtos/LibraryTypeOptionsDto.cs
@@ -3,36 +3,35 @@ using System.Collections.Generic;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Entities;
-namespace Jellyfin.Api.Models.LibraryDtos
+namespace Jellyfin.Api.Models.LibraryDtos;
+
+/// <summary>
+/// Library type options dto.
+/// </summary>
+public class LibraryTypeOptionsDto
{
/// <summary>
- /// Library type options dto.
+ /// Gets or sets the type.
/// </summary>
- public class LibraryTypeOptionsDto
- {
- /// <summary>
- /// Gets or sets the type.
- /// </summary>
- public string? Type { get; set; }
+ public string? Type { get; set; }
- /// <summary>
- /// Gets or sets the metadata fetchers.
- /// </summary>
- public IReadOnlyList<LibraryOptionInfoDto> MetadataFetchers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
+ /// <summary>
+ /// Gets or sets the metadata fetchers.
+ /// </summary>
+ public IReadOnlyList<LibraryOptionInfoDto> MetadataFetchers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
- /// <summary>
- /// Gets or sets the image fetchers.
- /// </summary>
- public IReadOnlyList<LibraryOptionInfoDto> ImageFetchers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
+ /// <summary>
+ /// Gets or sets the image fetchers.
+ /// </summary>
+ public IReadOnlyList<LibraryOptionInfoDto> ImageFetchers { get; set; } = Array.Empty<LibraryOptionInfoDto>();
- /// <summary>
- /// Gets or sets the supported image types.
- /// </summary>
- public IReadOnlyList<ImageType> SupportedImageTypes { get; set; } = Array.Empty<ImageType>();
+ /// <summary>
+ /// Gets or sets the supported image types.
+ /// </summary>
+ public IReadOnlyList<ImageType> SupportedImageTypes { get; set; } = Array.Empty<ImageType>();
- /// <summary>
- /// Gets or sets the default image options.
- /// </summary>
- public IReadOnlyList<ImageOption> DefaultImageOptions { get; set; } = Array.Empty<ImageOption>();
- }
+ /// <summary>
+ /// Gets or sets the default image options.
+ /// </summary>
+ public IReadOnlyList<ImageOption> DefaultImageOptions { get; set; } = Array.Empty<ImageOption>();
}
diff --git a/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoDto.cs b/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoDto.cs
index f93638898..b34e0bba5 100644
--- a/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoDto.cs
+++ b/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoDto.cs
@@ -1,16 +1,15 @@
using System;
using System.Collections.Generic;
-namespace Jellyfin.Api.Models.LibraryDtos
+namespace Jellyfin.Api.Models.LibraryDtos;
+
+/// <summary>
+/// Media Update Info Dto.
+/// </summary>
+public class MediaUpdateInfoDto
{
/// <summary>
- /// Media Update Info Dto.
+ /// Gets or sets the list of updates.
/// </summary>
- public class MediaUpdateInfoDto
- {
- /// <summary>
- /// Gets or sets the list of updates.
- /// </summary>
- public IReadOnlyList<MediaUpdateInfoPathDto> Updates { get; set; } = Array.Empty<MediaUpdateInfoPathDto>();
- }
+ public IReadOnlyList<MediaUpdateInfoPathDto> Updates { get; set; } = Array.Empty<MediaUpdateInfoPathDto>();
}
diff --git a/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoPathDto.cs b/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoPathDto.cs
index 852315b92..5bbaea669 100644
--- a/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoPathDto.cs
+++ b/Jellyfin.Api/Models/LibraryDtos/MediaUpdateInfoPathDto.cs
@@ -1,19 +1,18 @@
-namespace Jellyfin.Api.Models.LibraryDtos
+namespace Jellyfin.Api.Models.LibraryDtos;
+
+/// <summary>
+/// The media update info path.
+/// </summary>
+public class MediaUpdateInfoPathDto
{
/// <summary>
- /// The media update info path.
+ /// Gets or sets media path.
/// </summary>
- public class MediaUpdateInfoPathDto
- {
- /// <summary>
- /// Gets or sets media path.
- /// </summary>
- public string? Path { get; set; }
+ public string? Path { get; set; }
- /// <summary>
- /// Gets or sets media update type.
- /// Created, Modified, Deleted.
- /// </summary>
- public string? UpdateType { get; set; }
- }
+ /// <summary>
+ /// Gets or sets media update type.
+ /// Created, Modified, Deleted.
+ /// </summary>
+ public string? UpdateType { get; set; }
}