Files
Jellyfin_Request_tvandmovies/Jellyfin.Plugin.Request/Api/CreateRequestDto.cs
T
Michael SloanandCursor 7044023d98 feat(request): custom titles and remount blank request tab
Allow movie/TV requests without a TMDB match via a Custom form, and remount the embedded Request UI when the home tab opens empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 17:46:53 -04:00

62 lines
1.6 KiB
C#

using System.Collections.Generic;
namespace Jellyfin.Plugin.Request.Api;
/// <summary>
/// Body for creating a media request.
/// </summary>
public sealed class CreateRequestDto
{
/// <summary>
/// Gets or sets the media type (<c>movie</c> or <c>tv</c>).
/// </summary>
public string MediaType { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the TMDB identifier. Ignored for custom requests.
/// </summary>
public int TmdbId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this is a custom title not on TMDB.
/// </summary>
public bool IsCustom { get; set; }
/// <summary>
/// Gets or sets the title for custom requests.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets an optional release year for custom requests.
/// </summary>
public int? Year { get; set; }
/// <summary>
/// Gets or sets optional requester notes.
/// </summary>
public string? Notes { get; set; }
/// <summary>
/// Gets or sets optional season numbers for TV.
/// Null or empty with <see cref="AllSeasons"/> true requests everything.
/// </summary>
public List<int>? Seasons { get; set; }
/// <summary>
/// Gets or sets a value indicating whether all seasons are requested.
/// </summary>
public bool AllSeasons { get; set; } = true;
}
/// <summary>
/// Optional admin note body for status transitions.
/// </summary>
public sealed class AdminNoteDto
{
/// <summary>
/// Gets or sets an optional administrator note.
/// </summary>
public string? AdminNote { get; set; }
}