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

35 lines
888 B
C#
Raw Normal View History

2020-06-20 18:07:53 -04:00
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Jellyfin.Data.Enums;
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>
public MediaType? MediaType { get; set; }
2020-06-08 15:14:41 -04:00
}