using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Jellyfin.Extensions.Json.Converters;
using MediaBrowser.Model.Entities;
namespace Jellyfin.Api.Models.PlaylistDtos;
///
/// Update existing playlist dto. Fields set to `null` will not be updated and keep their current values.
///
public class UpdatePlaylistDto
{
///
/// Gets or sets the name of the new playlist.
///
public string? Name { get; set; }
///
/// Gets or sets item ids of the playlist.
///
[JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
public IReadOnlyList? Ids { get; set; }
///
/// Gets or sets the playlist users.
///
public IReadOnlyList? Users { get; set; }
///
/// Gets or sets a value indicating whether the playlist is public.
///
public bool? Public { get; set; }
}