Files
WotBlitzStatisticsBlazor/WotBlitzStatisticsPro.UI/AccountInfo/AccountInfoShellComponent.cs
T

24 lines
623 B
C#
Raw Normal View History

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);
}
}
}