2019-01-13 20:02:23 +00:00
|
|
|
using System;
|
2020-11-17 03:29:46 +00:00
|
|
|
using System.Collections.Generic;
|
2023-05-13 18:44:31 +00:00
|
|
|
using Jellyfin.Data.Enums;
|
2023-03-10 16:46:59 +00:00
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Playlists;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2023-03-10 16:46:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// A playlist creation request.
|
|
|
|
/// </summary>
|
|
|
|
public class PlaylistCreationRequest
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
2023-03-10 16:46:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name.
|
|
|
|
/// </summary>
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the list of items.
|
|
|
|
/// </summary>
|
2024-03-26 22:45:14 +00:00
|
|
|
public IReadOnlyList<Guid> ItemIdList { get; set; } = [];
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2023-03-10 16:46:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the media type.
|
|
|
|
/// </summary>
|
2023-05-13 18:44:31 +00:00
|
|
|
public MediaType? MediaType { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2023-03-10 16:46:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the user id.
|
|
|
|
/// </summary>
|
|
|
|
public Guid UserId { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2023-03-10 16:46:59 +00:00
|
|
|
/// <summary>
|
2024-03-26 22:45:14 +00:00
|
|
|
/// Gets or sets the user permissions.
|
2023-03-10 16:46:59 +00:00
|
|
|
/// </summary>
|
2024-03-26 22:45:14 +00:00
|
|
|
public IReadOnlyList<UserPermissions> Users { get; set; } = [];
|
2024-03-26 15:13:07 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2024-03-26 22:45:14 +00:00
|
|
|
/// Gets or sets a value indicating whether the playlist is public.
|
2024-03-26 15:13:07 +00:00
|
|
|
/// </summary>
|
2024-03-26 22:45:14 +00:00
|
|
|
public bool? Public { get; set; } = true;
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|