mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 20:00:05 +02:00
feat: prolong token UI logic implemented
This commit is contained in:
1 parent
6390c454d0
commit
7d1d1b5ad6
9 files changed
+223
-13
No files matched your search
@@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
||||
using Bogus;
|
||||
using Bogus.Extensions;
|
||||
using WotBlitzStatisticsPro.Blazor.GraphQl;
|
||||
using WotBlitzStatisticsPro.Blazor.Model;
|
||||
|
||||
namespace WotBlitzStatisticsPro.Blazor.Services.Mock
|
||||
{
|
||||
@@ -388,5 +389,14 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock
|
||||
return images[faker.Random.Number(images.Length - 1)];
|
||||
}
|
||||
|
||||
public Task<LoginInfo> ProlongToken(long accountId, string oldToken, RealmType realmType)
|
||||
{
|
||||
return Task.FromResult(new LoginInfo { AccountId = accountId, AccessToken = oldToken, Realm = realmType, ExpiresAt = 1631182800, NickName = "Fake nick"});
|
||||
}
|
||||
|
||||
public Task<(IAccount accountInfo, IReadOnlyList<ISection> achievementsBySection)> CollectPlayerInfo(long accountId, RealmType realmType, string accessToken)
|
||||
{
|
||||
return GetPlayerInfo(accountId, realmType);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user