mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +02:00
Chore: Some API fixes
This commit is contained in:
1 parent
f2f0b4e195
commit
d0bee3a055
5 files changed
+36
-9
No files matched your search
@@ -149,9 +149,19 @@ namespace WotBlitzStatisticsPro.Common.Model
|
||||
public decimal AvgXp => Battles == 0 ? 0m : (decimal)Xp / Battles;
|
||||
|
||||
/// <summary>
|
||||
/// All player's tanks
|
||||
/// Damage coefficient
|
||||
/// </summary>
|
||||
public List<TankInfoResponse>? Tanks { get; set; }
|
||||
public decimal DamageCoefficient => DamageReceived == 0 ? 0m : (decimal) DamageDealt / DamageReceived;
|
||||
|
||||
/// <summary>
|
||||
/// Rate of survival
|
||||
/// </summary>
|
||||
public decimal SurvivalRate => Battles == 0 ? 0m : (decimal) 100 * SurvivedBattles / Battles;
|
||||
|
||||
/// <summary>
|
||||
/// All player's tanks
|
||||
/// </summary>
|
||||
public List<TankInfoResponse>? Tanks { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -147,6 +147,17 @@ namespace WotBlitzStatisticsPro.Common.Model
|
||||
/// </summary>
|
||||
public decimal AvgXp => (decimal) Xp / Battles;
|
||||
|
||||
/// <summary>
|
||||
/// Damage coefficient
|
||||
/// </summary>
|
||||
public decimal DamageCoefficient => DamageReceived == 0 ? 0m : (decimal)DamageDealt / DamageReceived;
|
||||
|
||||
/// <summary>
|
||||
/// Rate of survival
|
||||
/// </summary>
|
||||
public decimal SurvivalRate => (decimal)100 * SurvivedBattles / Battles;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Tank name
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user