using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Jellyfin.Data.Enums;
using Jellyfin.Extensions.Json.Converters;
namespace Jellyfin.Api.Models.PlaylistDtos;
///
/// Create new playlist dto.
///
public class CreatePlaylistDto
{
///
/// Gets or sets the name of the new playlist.
///
public string? Name { get; set; }
///
/// Gets or sets item ids to add to the playlist.
///
[JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
public IReadOnlyList Ids { get; set; } = Array.Empty();
///
/// Gets or sets the user id.
///
public Guid? UserId { get; set; }
///
/// Gets or sets the media type.
///
public MediaType? MediaType { get; set; }
}