jellyfin/Jellyfin.Api/Models/SyncPlayDtos/RemoveFromPlaylistRequestDt...

37 lines
1.2 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2023-01-31 06:18:10 -05:00
namespace Jellyfin.Api.Models.SyncPlayDtos;
/// <summary>
/// Class RemoveFromPlaylistRequestDto.
/// </summary>
public class RemoveFromPlaylistRequestDto
{
/// <summary>
2023-01-31 06:18:10 -05:00
/// Initializes a new instance of the <see cref="RemoveFromPlaylistRequestDto"/> class.
/// </summary>
2023-01-31 06:18:10 -05:00
public RemoveFromPlaylistRequestDto()
{
2023-01-31 06:18:10 -05:00
PlaylistItemIds = Array.Empty<Guid>();
}
2023-01-31 06:18:10 -05:00
/// <summary>
/// Gets or sets the playlist identifiers of the items. Ignored when clearing the playlist.
/// </summary>
/// <value>The playlist identifiers of the items.</value>
public IReadOnlyList<Guid> PlaylistItemIds { get; set; }
2021-01-23 19:05:17 -05:00
2023-01-31 06:18:10 -05:00
/// <summary>
/// Gets or sets a value indicating whether the entire playlist should be cleared.
/// </summary>
/// <value>Whether the entire playlist should be cleared.</value>
public bool ClearPlaylist { get; set; }
2021-01-23 19:05:17 -05:00
2023-01-31 06:18:10 -05:00
/// <summary>
/// Gets or sets a value indicating whether the playing item should be removed as well. Used only when clearing the playlist.
/// </summary>
/// <value>Whether the playing item should be removed as well.</value>
public bool ClearPlayingItem { get; set; }
}