2020-06-20 18:07:53 -04:00
|
|
|
|
using System;
|
2020-11-16 22:29:46 -05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text.Json.Serialization;
|
2023-05-13 14:44:31 -04:00
|
|
|
|
using Jellyfin.Data.Enums;
|
2021-06-19 12:02:33 -04:00
|
|
|
|
using Jellyfin.Extensions.Json.Converters;
|
2020-06-08 15:14:41 -04:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
namespace Jellyfin.Api.Models.PlaylistDtos;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create new playlist dto.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CreatePlaylistDto
|
2020-06-08 15:14:41 -04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// Gets or sets the name of the new playlist.
|
2020-06-08 15:14:41 -04:00
|
|
|
|
/// </summary>
|
2023-01-31 06:18:10 -05:00
|
|
|
|
public string? Name { get; set; }
|
2020-06-08 15:14:41 -04:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets item ids to add to the playlist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
|
|
|
|
|
public IReadOnlyList<Guid> Ids { get; set; } = Array.Empty<Guid>();
|
2020-06-08 15:14:41 -04:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid? UserId { get; set; }
|
2020-06-08 15:14:41 -04:00
|
|
|
|
|
2023-01-31 06:18:10 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the media type.
|
|
|
|
|
/// </summary>
|
2023-05-13 14:44:31 -04:00
|
|
|
|
public MediaType? MediaType { get; set; }
|
2020-06-08 15:14:41 -04:00
|
|
|
|
}
|