mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using WotBlitzStatisticsPro.Blazor.GraphQl;
|
|
using WotBlitzStatisticsPro.Blazor.Model;
|
|
|
|
namespace WotBlitzStatisticsPro.Blazor.Services
|
|
{
|
|
public interface IGraphQlBackendService
|
|
{
|
|
Task<IReadOnlyList<IPlayerShortInfo>?> FindPlayers(
|
|
string accountNick,
|
|
RealmType realmType);
|
|
|
|
Task<IReadOnlyList<IClanShortInfo>?> FindClans(
|
|
string clanNameOrTag,
|
|
RealmType realmType);
|
|
|
|
Task<(IAccount accountInfo, IReadOnlyList<ISection> achievementsBySection)> GetPlayerInfo(
|
|
long accountId,
|
|
RealmType realmType);
|
|
|
|
Task CollectPlayerInfo(
|
|
long accountId,
|
|
RealmType realmType,
|
|
string accessToken);
|
|
|
|
Task<string> GetWgLoginUrl(RealmType realmType);
|
|
|
|
Task<LoginInfo> ProlongToken(
|
|
string oldToken,
|
|
RealmType realmType);
|
|
|
|
Task<string> Logout(
|
|
string token,
|
|
RealmType realmType);
|
|
|
|
Task<IReadOnlyList<IDictionary_Vehicles>> GetVehiclesByNation(string nationId);
|
|
}
|
|
} |