aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs')
-rw-r--r--Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs45
1 files changed, 22 insertions, 23 deletions
diff --git a/Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs b/Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs
index 65d4b644e..1fba32c5b 100644
--- a/Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs
+++ b/Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs
@@ -1,34 +1,33 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
-using MediaBrowser.Common.Json.Converters;
+using Jellyfin.Extensions.Json.Converters;
-namespace Jellyfin.Api.Models.PlaylistDtos
+namespace Jellyfin.Api.Models.PlaylistDtos;
+
+/// <summary>
+/// Create new playlist dto.
+/// </summary>
+public class CreatePlaylistDto
{
/// <summary>
- /// Create new playlist dto.
+ /// Gets or sets the name of the new playlist.
/// </summary>
- public class CreatePlaylistDto
- {
- /// <summary>
- /// Gets or sets the name of the new playlist.
- /// </summary>
- public string? Name { get; set; }
+ public string? Name { get; set; }
- /// <summary>
- /// Gets or sets item ids to add to the playlist.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<Guid> Ids { get; set; } = Array.Empty<Guid>();
+ /// <summary>
+ /// Gets or sets item ids to add to the playlist.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<Guid> Ids { get; set; } = Array.Empty<Guid>();
- /// <summary>
- /// Gets or sets the user id.
- /// </summary>
- public Guid? UserId { get; set; }
+ /// <summary>
+ /// Gets or sets the user id.
+ /// </summary>
+ public Guid? UserId { get; set; }
- /// <summary>
- /// Gets or sets the media type.
- /// </summary>
- public string? MediaType { get; set; }
- }
+ /// <summary>
+ /// Gets or sets the media type.
+ /// </summary>
+ public string? MediaType { get; set; }
}