jellyfin/Jellyfin.Api/Models/PlaylistDtos/CreatePlaylistDto.cs

34 lines
858 B
C#
Raw Normal View History

2020-06-21 00:07:53 +02:00
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Jellyfin.Extensions.Json.Converters;
2020-06-08 21:14:41 +02:00
2023-01-31 12:18:10 +01:00
namespace Jellyfin.Api.Models.PlaylistDtos;
/// <summary>
/// Create new playlist dto.
/// </summary>
public class CreatePlaylistDto
2020-06-08 21:14:41 +02:00
{
/// <summary>
2023-01-31 12:18:10 +01:00
/// Gets or sets the name of the new playlist.
2020-06-08 21:14:41 +02:00
/// </summary>
2023-01-31 12:18:10 +01:00
public string? Name { get; set; }
2020-06-08 21:14:41 +02:00
2023-01-31 12:18:10 +01: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 21:14:41 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Gets or sets the user id.
/// </summary>
public Guid? UserId { get; set; }
2020-06-08 21:14:41 +02:00
2023-01-31 12:18:10 +01:00
/// <summary>
/// Gets or sets the media type.
/// </summary>
public string? MediaType { get; set; }
2020-06-08 21:14:41 +02:00
}