From 76ae599bd3ccfd9808f50dbf5d935aa430783e60 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Fri, 10 Mar 2023 17:46:59 +0100 Subject: Fix playlist creation and removal --- .../Playlists/PlaylistCreationRequest.cs | 39 ++++++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) (limited to 'MediaBrowser.Model/Playlists') diff --git a/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs b/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs index e8ee494034..8472697164 100644 --- a/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs +++ b/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs @@ -1,19 +1,36 @@ -#nullable disable -#pragma warning disable CS1591 - using System; using System.Collections.Generic; +using MediaBrowser.Model.Entities; + +namespace MediaBrowser.Model.Playlists; -namespace MediaBrowser.Model.Playlists +/// +/// A playlist creation request. +/// +public class PlaylistCreationRequest { - public class PlaylistCreationRequest - { - public string Name { get; set; } + /// + /// Gets or sets the name. + /// + public string? Name { get; set; } + + /// + /// Gets or sets the list of items. + /// + public IReadOnlyList ItemIdList { get; set; } = Array.Empty(); - public IReadOnlyList ItemIdList { get; set; } = Array.Empty(); + /// + /// Gets or sets the media type. + /// + public string? MediaType { get; set; } - public string MediaType { get; set; } + /// + /// Gets or sets the user id. + /// + public Guid UserId { get; set; } - public Guid UserId { get; set; } - } + /// + /// Gets or sets the shares. + /// + public Share[]? Shares { get; set; } } -- cgit v1.2.3