jellyfin/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs

43 lines
1 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using Jellyfin.Data.Enums;
2023-03-10 17:46:59 +01:00
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Playlists;
2018-12-28 00:27:57 +01:00
2023-03-10 17:46:59 +01:00
/// <summary>
/// A playlist creation request.
/// </summary>
public class PlaylistCreationRequest
2018-12-28 00:27:57 +01:00
{
2023-03-10 17:46:59 +01: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 23:45:14 +01:00
public IReadOnlyList<Guid> ItemIdList { get; set; } = [];
2018-12-28 00:27:57 +01:00
2023-03-10 17:46:59 +01:00
/// <summary>
/// Gets or sets the media type.
/// </summary>
public MediaType? MediaType { get; set; }
2018-12-28 00:27:57 +01:00
2023-03-10 17:46:59 +01:00
/// <summary>
/// Gets or sets the user id.
/// </summary>
public Guid UserId { get; set; }
2018-12-28 00:27:57 +01:00
2023-03-10 17:46:59 +01:00
/// <summary>
2024-03-26 23:45:14 +01:00
/// Gets or sets the user permissions.
2023-03-10 17:46:59 +01:00
/// </summary>
2024-04-01 19:59:48 +02:00
public IReadOnlyList<PlaylistUserPermissions> Users { get; set; } = [];
2024-03-26 16:13:07 +01:00
/// <summary>
2024-03-26 23:45:14 +01:00
/// Gets or sets a value indicating whether the playlist is public.
2024-03-26 16:13:07 +01:00
/// </summary>
2024-03-26 23:45:14 +01:00
public bool? Public { get; set; } = true;
2018-12-28 00:27:57 +01:00
}