Nullable refernce types refactoring

This commit is contained in:
Mikhail Shabanov committed 2020-12-27 12:39:25 +01:00
1 parent e5c90e03d3
commit e12734981b
85 files changed
+509 -351

No files matched your search

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using MongoDB.Bson.Serialization.Attributes;
using WotBlitzStatisticsPro.Common.Dictionaries;
@@ -8,21 +9,25 @@ namespace WotBlitzStatisticsPro.DataAccess.Model
{
[BsonId]
public long TankId { get; set; }
public List<LocalizableString> Name { get; set; }
public List<LocalizableString> Description { get; set; }
public List<LocalizableString> Name { get; set; } =
Enumerable.Empty<LocalizableString>().ToList();
public List<LocalizableString> Description { get; set; } =
Enumerable.Empty<LocalizableString>().ToList();
public bool IsPremium { get; set; }
public string TypeId { get; set; }
public string NationId { get; set; }
public string TypeId { get; set; } = string.Empty;
public string NationId { get; set; } = string.Empty;
public int Tier { get; set; }
public string PreviewImage { get; set; }
public string NormalImage { get; set; }
public string PreviewImage { get; set; } = string.Empty;
public string NormalImage { get; set; } = string.Empty;
public decimal PriceCredit { get; set; }
public decimal PriceGold { get; set; }
public List<VehiclePriceInXp> NexTanksInTree { get; set; }
public List<VehiclePriceInXp> PriceXp { get; set; }
public int[] Engines { get; set; }
public int[] Guns { get; set; }
public int[] Suspensions { get; set; }
public int[] Turrets { get; set; }
public List<VehiclePriceInXp> NexTanksInTree { get; set; } =
Enumerable.Empty<VehiclePriceInXp>().ToList();
public List<VehiclePriceInXp> PriceXp { get; set; } =
Enumerable.Empty<VehiclePriceInXp>().ToList();
public int[]? Engines { get; set; }
public int[]? Guns { get; set; }
public int[]? Suspensions { get; set; }
public int[]? Turrets { get; set; }
}
}