2021-05-15 17:36:35 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using WotBlitzStatisticsPro.Blazor.GraphQl;
|
2021-09-01 17:35:40 +02:00
|
|
|
using WotBlitzStatisticsPro.Blazor.Model;
|
2021-05-15 17:36:35 +02:00
|
|
|
|
|
|
|
|
namespace WotBlitzStatisticsPro.Blazor.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IGraphQlBackendService
|
|
|
|
|
{
|
2021-06-04 15:35:53 +02:00
|
|
|
Task<IReadOnlyList<IPlayerShortInfo>?> FindPlayers(
|
2021-05-15 17:36:35 +02:00
|
|
|
string accountNick,
|
2021-05-15 19:47:48 +02:00
|
|
|
RealmType realmType);
|
2021-05-15 17:36:35 +02:00
|
|
|
|
2021-06-04 15:35:53 +02:00
|
|
|
Task<IReadOnlyList<IClanShortInfo>?> FindClans(
|
2021-05-15 17:36:35 +02:00
|
|
|
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);
|
2021-10-20 19:06:34 +03:00
|
|
|
|
|
|
|
|
Task<string> Logout(
|
|
|
|
|
string token,
|
|
|
|
|
RealmType realmType);
|
2021-05-15 17:36:35 +02:00
|
|
|
}
|
|
|
|
|
}
|