19 lines
646 B
C#
19 lines
646 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.MediaCleaner.Models;
|
|
|
|
public record SonarrSeries(
|
|
[property: JsonPropertyName("id")] int Id,
|
|
[property: JsonPropertyName("title")] string? Title,
|
|
[property: JsonPropertyName("seasons")] IReadOnlyList<Season> Seasons,
|
|
[property: JsonPropertyName("ended")] bool Ended,
|
|
[property: JsonPropertyName("tvdbId")] int TvdbId
|
|
// [property: JsonPropertyName("tmdbId")] int TmdbId,
|
|
// [property: JsonPropertyName("imdbId")] int ImdbId
|
|
);
|
|
|
|
public record Season(
|
|
[property: JsonPropertyName("seasonNumber")] int SeasonNumber
|
|
);
|