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

@@ -20,26 +20,26 @@ namespace WotBlitzStatisticsPro.Common.Model
///<summary>
/// Player's nick
///</summary>
public string Nickname { get; set; }
public string? Nickname { get; set; }
/// <summary>
/// Overall statistics since account creation
/// </summary>
public ShortStatistics OverallAccountStatistics { get; set; }
public ShortStatistics? OverallAccountStatistics { get; set; }
/// <summary>
/// Statistics for period
/// </summary>
public ShortStatistics PeriodAccountStatistics { get; set; }
public ShortStatistics? PeriodAccountStatistics { get; set; }
/// <summary>
/// Difference between start and end of the period
/// </summary>
public StatisticsDifference PeriodDifference { get; set; }
public StatisticsDifference? PeriodDifference { get; set; }
/// <summary>
/// The detailed history
/// </summary>
public StatisticsDifference[] StatisticsHistory { get; set; }
public StatisticsDifference[]? StatisticsHistory { get; set; }
}
}
@@ -26,7 +26,7 @@ namespace WotBlitzStatisticsPro.Common.Model
///<summary>
/// Player's nick
///</summary>
public string Nickname { get; set; }
public string? Nickname { get; set; }
///<summary>
/// Battles count
@@ -151,7 +151,7 @@ namespace WotBlitzStatisticsPro.Common.Model
/// <summary>
/// All player's tanks
/// </summary>
public List<TankInfoResponse> Tanks { get; set; }
public List<TankInfoResponse>? Tanks { get; set; }
}
}
@@ -14,6 +14,6 @@ namespace WotBlitzStatisticsPro.Common.Model
/// <summary>
/// Found accounts list
/// </summary>
public ICollection<AccountsSearchResponseItem> Accounts { get; set; }
public ICollection<AccountsSearchResponseItem>? Accounts { get; set; }
}
}
@@ -13,6 +13,6 @@
///<summary>
/// Player nick
///</summary>
public string Nickname { get; set; }
public string? Nickname { get; set; }
}
}
@@ -14,6 +14,6 @@ namespace WotBlitzStatisticsPro.Common.Model
/// <summary>
/// List of clans
/// </summary>
public ICollection<ClanSearchResponseItem> Clans { get; set; }
public ICollection<ClanSearchResponseItem>? Clans { get; set; }
}
}
@@ -13,12 +13,12 @@
///<summary>
/// Clan Tag
///</summary>
public string Tag { get; set; }
public string? Tag { get; set; }
///<summary>
/// Clan Name
///</summary>
public string Name { get; set; }
public string? Name { get; set; }
///<summary>
/// Clan created at. (UNIX Epoch time)
@@ -15,32 +15,32 @@ namespace WotBlitzStatisticsPro.Common.Model
///<summary>
/// Difference in Battles count
///</summary>
public StatisticsDifferenceItem<long> Battles { get; set; }
public StatisticsDifferenceItem<long>? Battles { get; set; }
/// <summary>
/// Difference in Average tier
/// </summary>
public StatisticsDifferenceItem<double> AvgTier { get; set; }
public StatisticsDifferenceItem<double>? AvgTier { get; set; }
/// <summary>
/// Difference in Wn7 coefficient
/// </summary>
public StatisticsDifferenceItem<double> Wn7 { get; set; }
public StatisticsDifferenceItem<double>? Wn7 { get; set; }
/// <summary>
/// Difference in Player's win rate
/// </summary>
public StatisticsDifferenceItem<decimal> WinRate { get; set; }
public StatisticsDifferenceItem<decimal>? WinRate { get; set; }
/// <summary>
/// Difference in Player's average damage
/// </summary>
public StatisticsDifferenceItem<decimal> AvgDamage { get; set; }
public StatisticsDifferenceItem<decimal>? AvgDamage { get; set; }
/// <summary>
/// Difference in Player's average XP
/// </summary>
public StatisticsDifferenceItem<decimal> AvgXp { get; set; }
public StatisticsDifferenceItem<decimal>? AvgXp { get; set; }
}
}
@@ -150,17 +150,17 @@ namespace WotBlitzStatisticsPro.Common.Model
/// <summary>
/// Tank name
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
/// <summary>
/// Tank nation dictionary identifier
/// </summary>
public string TankNationId { get; set; }
public string? TankNationId { get; set; }
/// <summary>
/// Localized tank nation name
/// </summary>
public string TankNation { get; set; }
public string? TankNation { get; set; }
/// <summary>
/// Tank tier
@@ -170,12 +170,12 @@ namespace WotBlitzStatisticsPro.Common.Model
/// <summary>
/// Tank type dictionary identifier
/// </summary>
public string TankTypeId { get; set; }
public string? TankTypeId { get; set; }
/// <summary>
/// Localized tank type name
/// </summary>
public string TankType { get; set; }
public string? TankType { get; set; }
/// <summary>
/// Is it premium tank or not
@@ -13,6 +13,6 @@
/// <summary>
/// A bit summary about what have been updated
/// </summary>
public string Description { get; set; }
public string? Description { get; set; }
}
}