mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
Blazor server and client apps. With data service mocks
This commit is contained in:
1 parent
1fa0b03555
commit
a0ad7ca395
68 files changed
+1893
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Threading.Tasks;
|
||||
using WotBlitzStatisticsPro.Common;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
|
||||
namespace WotBlitzStatisticsPro.UI.AccountInfo
|
||||
{
|
||||
public class AccountInfoShellComponent : ComponentBase
|
||||
{
|
||||
[Inject]
|
||||
public IAccountInfoService AccountInfoService { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public long AccountId { get; set; }
|
||||
|
||||
public PlayerAccountInfo PlayerAccountInfo { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await base.OnInitializedAsync();
|
||||
PlayerAccountInfo = await AccountInfoService.GetAccountInfo(AccountId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user