mirror of
https://github.com/morbalint/kemkas-backend.git
synced 2026-07-17 21:23:46 +00:00
fix nullable warnings (#49)
* fix nullable warnings * use collection initalizers
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Kemkas.Web.ViewModels;
|
||||
public class FelszerelesIdAndCount
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
public required string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("count")]
|
||||
public int Count { get; set; }
|
||||
|
||||
@@ -7,7 +7,7 @@ public class Karakter1eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("nem")]
|
||||
public string? Nem { get; set; }
|
||||
@@ -16,22 +16,22 @@ public class Karakter1eDto
|
||||
public double? Kor { get; set; }
|
||||
|
||||
[JsonPropertyName("jellem")]
|
||||
public string Jellem { get; set; }
|
||||
public required string Jellem { get; set; }
|
||||
|
||||
[JsonPropertyName("isten")]
|
||||
public string? Isten { get; set; }
|
||||
|
||||
[JsonPropertyName("faj")]
|
||||
public string Faj { get; set; }
|
||||
public required string Faj { get; set; }
|
||||
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
public required string Osztaly { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagok")]
|
||||
public KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
public required KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
|
||||
[JsonPropertyName("kepzettsegek")]
|
||||
public IList<string> Kepzettsegek { get; set; }
|
||||
public IList<string> Kepzettsegek { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("tolvajkepzettsegek")]
|
||||
public IList<string>? Tolvajkepzettsegek { get; set; }
|
||||
@@ -40,19 +40,19 @@ public class Karakter1eDto
|
||||
public byte Szint { get; set; }
|
||||
|
||||
[JsonPropertyName("hpRolls")]
|
||||
public IList<byte> HpRolls { get; set; }
|
||||
public IList<byte> HpRolls { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("tulajdonsagNovelesek")]
|
||||
public IList<string> TulajdonsagNovelesek { get; set; }
|
||||
public IList<string> TulajdonsagNovelesek { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("harcosSpecializaciok")]
|
||||
public IList<string> HarcosSpecializaciok { get; set; }
|
||||
public IList<string> HarcosSpecializaciok { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("kalozKritikus")]
|
||||
public IList<string> KalozKritikus { get; set; }
|
||||
public IList<string> KalozKritikus { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszereles1eDto Felszereles1E { get; set; }
|
||||
public required KarakterFelszereles1eDto Felszereles1E { get; set; }
|
||||
|
||||
public bool? IsPublic { get; set; }
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public class Karakter2eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("nev")]
|
||||
public string Nev { get; set; }
|
||||
public required string Nev { get; set; }
|
||||
|
||||
[JsonPropertyName("nem")]
|
||||
public string? Nem { get; set; }
|
||||
@@ -16,19 +16,19 @@ public class Karakter2eDto
|
||||
public double? Kor { get; set; }
|
||||
|
||||
[JsonPropertyName("jellem")]
|
||||
public string Jellem { get; set; }
|
||||
public required string Jellem { get; set; }
|
||||
|
||||
[JsonPropertyName("isten")]
|
||||
public string? Isten { get; set; }
|
||||
|
||||
[JsonPropertyName("faj")]
|
||||
public string Faj { get; set; }
|
||||
public required string Faj { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagok")]
|
||||
public KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
public required KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
|
||||
[JsonPropertyName("kepzettsegek")]
|
||||
public IList<string> Kepzettsegek { get; set; }
|
||||
public IList<string> Kepzettsegek { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("tolvajkepzettsegek")]
|
||||
public IList<string>? Tolvajkepzettsegek { get; set; }
|
||||
@@ -37,10 +37,10 @@ public class Karakter2eDto
|
||||
public byte Szint { get; set; }
|
||||
|
||||
[JsonPropertyName("szintlepesek")]
|
||||
public IList<Szintlepes> Szintlepesek { get; set; }
|
||||
public IList<Szintlepes> Szintlepesek { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszereles2eDto Felszereles { get; set; }
|
||||
public required KarakterFelszereles2eDto Felszereles { get; set; }
|
||||
|
||||
[JsonPropertyName("varazslatok")]
|
||||
public IList<KarakterVarazslat2eDto>? Varazslatok { get; set; }
|
||||
|
||||
@@ -11,5 +11,5 @@ public class KarakterFelszereles1eDto
|
||||
public string? PajzsId { get; set; }
|
||||
|
||||
[JsonPropertyName("fegyverIDk")]
|
||||
public IList<string> FegyverIds { get; set; }
|
||||
public IList<string> FegyverIds { get; set; } = [];
|
||||
}
|
||||
@@ -11,16 +11,16 @@ public class KarakterFelszereles2eDto
|
||||
public string? PajzsId { get; set; }
|
||||
|
||||
[JsonPropertyName("fegyverek")]
|
||||
public IList<FelszerelesIdAndCount> Fegyverek { get; set; }
|
||||
public IList<FelszerelesIdAndCount> Fegyverek { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("viselt")]
|
||||
public IList<FelszerelesIdAndCount> Viselt { get; set; }
|
||||
public IList<FelszerelesIdAndCount> Viselt { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("cipelt")]
|
||||
public IList<FelszerelesIdAndCount> Cipelt { get; set; }
|
||||
public IList<FelszerelesIdAndCount> Cipelt { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("aprosagok")]
|
||||
public IList<FelszerelesIdAndCount> Aprosagok { get; set; }
|
||||
public IList<FelszerelesIdAndCount> Aprosagok { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("at")]
|
||||
public int AranyTaller { get; set; }
|
||||
|
||||
@@ -5,11 +5,11 @@ namespace Kemkas.Web.ViewModels;
|
||||
public class KarakterVarazslat2eDto
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string VarazslatId { get; set; }
|
||||
public required string VarazslatId { get; set; }
|
||||
|
||||
[JsonPropertyName("bekeszitve")]
|
||||
public bool Bekeszitve { get; set; }
|
||||
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
public required string Osztaly { get; set; }
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace Kemkas.Web.ViewModels;
|
||||
public class Szintlepes
|
||||
{
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
public required string Osztaly { get; set; }
|
||||
|
||||
[JsonPropertyName("HProll")]
|
||||
public byte HProll { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user