From 578fa5e6be69490c398dd6c0502bd4c3db6f8866 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 21 May 2023 23:27:28 +0200 Subject: [PATCH] JsonIgnore --- Tranga/Publication.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Tranga/Publication.cs b/Tranga/Publication.cs index e3470a0..9abfae9 100644 --- a/Tranga/Publication.cs +++ b/Tranga/Publication.cs @@ -9,23 +9,18 @@ public readonly struct Publication { public string sortName { get; } // ReSharper disable UnusedAutoPropertyAccessor.Global we need it, trust - [JsonIgnore]public Dictionary altTitles { get; } + public Dictionary altTitles { get; } // ReSharper disable trice MemberCanBePrivate.Global, trust public string? description { get; } public string[] tags { get; } public string? posterUrl { get; } - [JsonIgnore]public Dictionary links { get; } + public Dictionary links { get; } public int? year { get; } public string? originalLanguage { get; } public string status { get; } public string folderName { get; } public string downloadUrl { get; } - public string internalId { get; } - - public readonly struct ValueTuple - { - - } + [JsonIgnore]public string internalId { get; } public Publication(string sortName, string? description, Dictionary altTitles, string[] tags, string? posterUrl, Dictionary? links, int? year, string? originalLanguage, string status, string downloadUrl) {