mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-25 11:20:05 +01:00
Nullable refernce types refactoring
This commit is contained in:
1 parent
e5c90e03d3
commit
e12734981b
85 files changed
+509
-351
No files matched your search
@@ -9,19 +9,19 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||
/// Vehicle description
|
||||
///</summary>
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Engines id list
|
||||
///</summary>
|
||||
[JsonProperty("engines")]
|
||||
public int[] Engines { get; set; }
|
||||
public int[]? Engines { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Guns id list
|
||||
///</summary>
|
||||
[JsonProperty("guns")]
|
||||
public int[] Guns { get; set; }
|
||||
public int[]? Guns { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Is vehicle premium
|
||||
@@ -33,13 +33,13 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||
/// Vehicle name
|
||||
///</summary>
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle nationId
|
||||
///</summary>
|
||||
[JsonProperty("nation")]
|
||||
public string Nation { get; set; }
|
||||
public string? Nation { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// List of next vehicles in tree:
|
||||
@@ -48,26 +48,26 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||
/// value - amount of XP to open it
|
||||
///</summary>
|
||||
[JsonProperty("next_tanks")]
|
||||
public Dictionary<string, string> NextTanks { get; set; }
|
||||
public Dictionary<string, string>? NextTanks { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle cost by pairs
|
||||
/// with keys: price_credit, price_gold
|
||||
///</summary>
|
||||
[JsonProperty("cost")]
|
||||
public Dictionary<string, string> Cost { get; set; }
|
||||
public Dictionary<string, string>? Cost { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Price in XP for parent vehicle as key
|
||||
///</summary>
|
||||
[JsonProperty("prices_xp")]
|
||||
public Dictionary<string, string> PricesXp { get; set; }
|
||||
public Dictionary<string, string>? PricesXp { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// List of compatible suspensions
|
||||
///</summary>
|
||||
[JsonProperty("suspensions")]
|
||||
public int[] Suspensions { get; set; }
|
||||
public int[]? Suspensions { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// VehicleId
|
||||
@@ -85,13 +85,13 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||
/// List of compatible turrets ids
|
||||
///</summary>
|
||||
[JsonProperty("turrets")]
|
||||
public int[] Turrets { get; set; }
|
||||
public int[]? Turrets { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle type id
|
||||
///</summary>
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
public string? Type { get; set; }
|
||||
|
||||
/////<summary>
|
||||
///// Default vehicle profile
|
||||
@@ -104,7 +104,7 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||
/// Keys: preview, normal
|
||||
///</summary>
|
||||
[JsonProperty("images")]
|
||||
public Dictionary<string, string> Images { get; set; }
|
||||
public Dictionary<string, string>? Images { get; set; }
|
||||
|
||||
/////<summary>
|
||||
///// Information about investigated modules
|
||||
|
||||
Reference in new issue
Block a user