jellyfin/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs

43 lines
1.0 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
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>
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
}