2
0

Removed unnecessary fields and changed fieldTypes in Chapter.

This commit is contained in:
glax 2023-05-18 16:03:00 +02:00
parent 7aeb6bcc2f
commit 6f128ea044

View File

@ -3,20 +3,15 @@
public struct Chapter public struct Chapter
{ {
public Publication publication { get; } public Publication publication { get; }
public string name { get; } public string? name { get; }
public uint volumeNumber { get; } public string? volumeNumber { get; }
public uint chapterNumber { get; } public string? chapterNumber { get; }
public string summary { get; }
public string posterUrl { get; }//Better way?
public Chapter(Publication publication, string name, uint volumeNumber, uint chapterNumber, string summary, public Chapter(Publication publication, string? name, string? volumeNumber, string? chapterNumber)
string posterUrl)
{ {
this.publication = publication; this.publication = publication;
this.name = name; this.name = name;
this.volumeNumber = volumeNumber; this.volumeNumber = volumeNumber;
this.chapterNumber = chapterNumber; this.chapterNumber = chapterNumber;
this.summary = summary;
this.posterUrl = posterUrl;
} }
} }