From 6f128ea044b4032d92b8110e5dc5d462ffea8265 Mon Sep 17 00:00:00 2001 From: glax <--local> Date: Thu, 18 May 2023 16:03:00 +0200 Subject: [PATCH] Removed unnecessary fields and changed fieldTypes in Chapter. --- Tranga/Chapter.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index 5bfcf34..e60bf8a 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -3,20 +3,15 @@ public struct Chapter { public Publication publication { get; } - public string name { get; } - public uint volumeNumber { get; } - public uint chapterNumber { get; } - public string summary { get; } - public string posterUrl { get; }//Better way? + public string? name { get; } + public string? volumeNumber { get; } + public string? chapterNumber { get; } - public Chapter(Publication publication, string name, uint volumeNumber, uint chapterNumber, string summary, - string posterUrl) + public Chapter(Publication publication, string? name, string? volumeNumber, string? chapterNumber) { this.publication = publication; this.name = name; this.volumeNumber = volumeNumber; this.chapterNumber = chapterNumber; - this.summary = summary; - this.posterUrl = posterUrl; } } \ No newline at end of file