Files
Jellyfin_Request_tvandmovies/Jellyfin.Plugin.Request/Api/CreateRequestDto.cs
T
Michael SloanandCursor bf6cd4540f feat(repo): add request plugin with jellyfin catalog manifest
Ship the plugin sources, release zip, and SeerrFin-style manifest.json so Jellyfin can install from the Gitea raw repository URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 16:31:26 -04:00

45 lines
1.1 KiB
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
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>
[Required]
public string MediaType { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the TMDB identifier.
/// </summary>
[Range(1, int.MaxValue)]
public int TmdbId { 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; }
}