Blazor server and client apps. With data service mocks

This commit is contained in:
Michael Shabanov committed 2020-02-09 18:07:45 +03:00
1 parent 1fa0b03555
commit a0ad7ca395
68 files changed
+1893

No files matched your search

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WotBlitzStatisticsPro.Common.Model
{
public class AccountsSearchResult
{
public int TotalAccountsCount { get; set; }
public Dictionary<long, string> Accounts { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace WotBlitzStatisticsPro.Common.Model
{
public enum MarkOfMastery
{
None = 0,
Rank3 = 1,
Rank2 = 2,
Rank1 = 3,
Master = 4
}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace WotBlitzStatisticsPro.Common.Model
{
public class PlayerAccountInfo
{
public long AccountId { get; set; }
public string NickName { get; set; }
public DateTime? AccountCreatedAt { get; set; }
public DateTime? LastBattleTime { get; set; }
public long Battles { get; set; }
public double Wn7 { get; set; }
public double AvgTier { get; set; }
public double Winrate { get; set; }
public double AvgDamage { get; set; }
public double AvgXp { get; set; }
public IEnumerable<PlayerAchievementInfo> Achievements { get; set; }
public IEnumerable<PlayerTankInfo> TopTanks { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace WotBlitzStatisticsPro.Common.Model
{
public class PlayerAchievementInfo
{
public string AchievementId { get; set; }
public string Section { get; set; }
public string Name { get; set; }
public string Image { get; set; }
public int Count { get; set; }
}
}
@@ -0,0 +1,19 @@
namespace WotBlitzStatisticsPro.Common.Model
{
public class PlayerTankInfo
{
public long TankId { get; set; }
public MarkOfMastery MarkOfMastery { get; set; }
public long Battles { get; set; }
public decimal WinRate { get; set; }
public decimal AvgDamage { get; set; }
public decimal AvgXp { get; set; }
public string Name { get; set; }
public int Tier { get; set; }
public string TierRoman { get; set; }
public string Nation { get; set; }
public string Type { get; set; }
public bool IsPremium { get; set; }
public string PreviewImageUrl { get; set; }
}
}