Add endpoint for getting playlists by id (#12697)

This commit is contained in:
Tim Eisele
2024-09-26 15:45:08 +02:00
committed by GitHub
parent bc9594aeed
commit e67dd3fc0e
2 changed files with 63 additions and 15 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Dto;
/// <summary>
/// DTO for playlists.
/// </summary>
public class PlaylistDto
{
/// <summary>
/// Gets or sets a value indicating whether the playlist is publicly readable.
/// </summary>
public bool OpenAccess { get; set; }
/// <summary>
/// Gets or sets the share permissions.
/// </summary>
public required IReadOnlyList<PlaylistUserPermissions> Shares { get; set; }
/// <summary>
/// Gets or sets the item ids.
/// </summary>
public required IReadOnlyList<Guid> ItemIds { get; set; }
}