using System; namespace WotBlitzStatisticsPro.Common.Model { /// /// Information about player's tank /// public class TankInfoResponse: IStatisticsResponse { /// /// Player account identifier /// public long AccountId { get; set; } /// /// Tank identifier /// public long TankId { get; set; } /// /// Information is tank in garage or not. Information is not provided without Auth token /// public bool? InGarage { get; set; } /// /// Mark of Mastery /// public MarkOfMastery MarkOfMastery { get; set; } /// /// Total time in battle until tank killed /// public int BattleLifeTimeInSeconds { get; set; } /// /// Average life time in battle until tank is killed. /// public decimal AvgBattleLifeTimeInMinutes => (decimal)BattleLifeTimeInSeconds / (60 * Battles); /// /// Tank name /// public string? Name { get; set; } /// /// Tank nation dictionary identifier /// public string? TankNationId { get; set; } /// /// Localized tank nation name /// public string? TankNation { get; set; } /// /// Tank tier /// public int Tier { get; set; } /// /// Tank type dictionary identifier /// public string? TankTypeId { get; set; } /// /// Localized tank type name /// public string? TankType { get; set; } /// /// Is it premium tank or not /// public bool IsPremium { get; set; } /// /// Vehicle preview image /// public string? PreviewImage { get; set; } /// /// Vehicle normal image /// public string? NormalImage { get; set; } #region statistics /// /// Last battle time /// public DateTime LastBattleTime { get; set; } = new DateTime(1970, 1, 1); /// /// Battles count /// public long Battles { get; set; } /// /// Capture points /// public long CapturePoints { get; set; } /// /// Total damage amount /// public long DamageDealt { get; set; } /// /// Total amount of received damage /// public long DamageReceived { get; set; } /// /// Dropped capture points /// public long DroppedCapturePoints { get; set; } /// /// Total amount of frags /// public long Frags { get; set; } /// /// Total amount of fras grater ten 8 lvl /// public long Frags8P { get; set; } /// /// Total amount of hits /// public long Hits { get; set; } /// /// Total amount of losses /// public long Losses { get; set; } /// /// Max frags per battle /// public long MaxFrags { get; set; } /// /// Max experience per battle /// public long MaxXp { get; set; } /// /// Total shots count /// public long Shots { get; set; } /// /// Total count of spotted vehicles /// public long Spotted { get; set; } /// /// Total count of survived battles /// public long SurvivedBattles { get; set; } /// /// Total count of survived and won battles /// public long WinAndSurvived { get; set; } /// /// Total wins count /// public long Wins { get; set; } /// /// Total amount of experience /// public long Xp { get; set; } /// /// Wn7 coefficient /// public double Wn7 { get; set; } /// /// Player's win rate /// public decimal WinRate => Battles == 0 ? 0m : (decimal)100 * Wins / Battles; /// /// Player's average damage /// public decimal AvgDamage => Battles == 0 ? 0m : (decimal)DamageDealt / Battles; /// /// Player's average XP /// public decimal AvgXp => Battles == 0 ? 0m : (decimal)Xp / Battles; /// /// Damage coefficient /// public decimal DamageCoefficient => DamageReceived == 0 ? 0m : (decimal)DamageDealt / DamageReceived; /// /// Rate of survival /// public decimal SurvivalRate => Battles == 0 ? 0m : (decimal)100 * SurvivedBattles / Battles; #endregion } }