chore: cliend datamodel refactoring

This commit is contained in:
Mikhail Shabanov committed 2021-06-04 15:35:53 +02:00
1 parent 87fcdd31b1
commit 4430a938ca
47 files changed
+1855 -1471

No files matched your search

@@ -22,6 +22,6 @@
@code {
[Parameter]
public IFindClans_Clans Clan { get; set; }
public IClanShortInfo Clan { get; set; }
}
@@ -22,7 +22,7 @@
@code {
[Parameter]
public IFindPlayers_Players Player { get; set; }
public IPlayerShortInfo Player { get; set; }
}
@@ -19,9 +19,9 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
public RealmType CurrentRealmType { get; set; } = RealmType.Eu;
public IPlayer_AccountInfo AccountInfo { get; set; }
public IAccount AccountInfo { get; set; }
public IReadOnlyList<IPlayer_AccountMedals_Sections> AchievementsBySection { get; set; }
public IReadOnlyList<ISection> AchievementsBySection { get; set; }
protected override async Task OnInitializedAsync()
{
@@ -2,5 +2,5 @@
@code {
[Parameter]
public IPlayer_AccountInfo AccountInfo { get; set; }
public IAccount AccountInfo { get; set; }
}
@@ -27,7 +27,7 @@
Style="height: 330px; width: 100%; margin-top: 10px;"
Visible="@(!ComponentBusy)">
<Template>
<FindPlayerListItem Player="@((IFindPlayers_Players) context)"></FindPlayerListItem>
<FindPlayerListItem Player="@((IPlayerShortInfo) context)"></FindPlayerListItem>
</Template>
</RadzenListBox>
}
@@ -39,7 +39,7 @@
Style="height: 330px; width: 100%; margin-top: 10px;"
Visible="@(!ComponentBusy)">
<Template>
<FindClanListItem Clan="((IFindClans_Clans)context)"></FindClanListItem>
<FindClanListItem Clan="((IClanShortInfo)context)"></FindClanListItem>
</Template>
</RadzenListBox>
}
@@ -34,8 +34,8 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
public List<RealmSelector> Realms { get; set; }
public List<IFindPlayers_Players> PlayersList { get; set; } = new();
public List<IFindClans_Clans> ClansList { get; set; } = new();
public List<IPlayerShortInfo> PlayersList { get; set; } = new();
public List<IClanShortInfo> ClansList { get; set; } = new();
public RealmType CurrentRealmType { get; set; } = RealmType.Eu;
@@ -121,7 +121,7 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
await GraphQlBackendService.FindPlayers(searchString, CurrentRealmType);
if (accounts != null)
{
PlayersList = new List<IFindPlayers_Players>(accounts);
PlayersList = new List<IPlayerShortInfo>(accounts);
}
}
@@ -132,7 +132,7 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
await GraphQlBackendService.FindClans(searchString, CurrentRealmType);
if (clans != null)
{
ClansList = new List<IFindClans_Clans>(clans);
ClansList = new List<IClanShortInfo>(clans);
}
}
}