Files
WotBlitzStatisticsBlazor/WotBlitzStatisticsPro.Blazor/Services/IGraphQlBackendService.cs
T

37 lines
1.0 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using System.Threading.Tasks;
using WotBlitzStatisticsPro.Blazor.GraphQl;
2021-09-01 17:35:40 +02:00
using WotBlitzStatisticsPro.Blazor.Model;
namespace WotBlitzStatisticsPro.Blazor.Services
{
public interface IGraphQlBackendService
{
2021-06-04 15:35:53 +02:00
Task<IReadOnlyList<IPlayerShortInfo>?> FindPlayers(
string accountNick,
2021-05-15 19:47:48 +02:00
RealmType realmType);
2021-06-04 15:35:53 +02:00
Task<IReadOnlyList<IClanShortInfo>?> FindClans(
string clanNameOrTag,
2021-05-15 19:47:48 +02:00
RealmType realmType);
2021-05-28 15:27:36 +02:00
2021-06-04 15:35:53 +02:00
Task<(IAccount accountInfo, IReadOnlyList<ISection> achievementsBySection)> GetPlayerInfo(
2021-05-28 15:27:36 +02:00
long accountId,
RealmType realmType);
2021-07-02 14:37:47 +02:00
2021-09-02 09:32:47 +02:00
Task CollectPlayerInfo(
2021-09-01 17:35:40 +02:00
long accountId,
RealmType realmType,
string accessToken);
2021-07-02 14:37:47 +02:00
Task<string> GetWgLoginUrl(RealmType realmType);
2021-09-01 17:35:40 +02:00
Task<LoginInfo> ProlongToken(
string oldToken,
RealmType realmType);
Task<string> Logout(
string token,
RealmType realmType);
}
}