Fixed null-Errors in json

This commit is contained in:
glax
2023-05-18 17:21:22 +02:00
parent 9a01db710b
commit 9eb53bb53a
2 changed files with 20 additions and 12 deletions

View File

@ -6,8 +6,8 @@ public struct Publication
public string[,] altTitles { get; }
public string? description { get; }
public string[] tags { get; }
public string posterUrl { get; } //maybe there is a better way?
public string[,] links { get; }
public string? posterUrl { get; } //maybe there is a better way?
public string[,]? links { get; }
public int? year { get; }
public string? originalLanguage { get; }
public string status { get; }
@ -15,7 +15,7 @@ public struct Publication
public Connector connector { get; }
public string downloadUrl { get; }
public Publication(string sortName, string? description, string[,] altTitles, string[] tags, string posterUrl, string[,] links, int? year, string? originalLanguage, string status, Connector connector, string downloadUrl)
public Publication(string sortName, string? description, string[,] altTitles, string[] tags, string? posterUrl, string[,]? links, int? year, string? originalLanguage, string status, Connector connector, string downloadUrl)
{
this.sortName = sortName;
this.description = description;