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