17 lines
563 B
C#
17 lines
563 B
C#
using Shogi.Contracts.Api;
|
|
using Shogi.Contracts.Types;
|
|
using Shogi.UI.Pages.Home.Account;
|
|
using System.Net;
|
|
|
|
namespace Shogi.UI.Pages.Home.Api;
|
|
|
|
public interface IShogiApi
|
|
{
|
|
Task<Session?> GetSession(string name);
|
|
Task<ReadSessionsPlayerCountResponse?> GetSessionsPlayerCount();
|
|
Task<CreateTokenResponse?> GetToken(WhichAccountPlatform whichAccountPlatform);
|
|
Task GuestLogout();
|
|
Task Move(string sessionName, MovePieceCommand move);
|
|
Task<HttpStatusCode> PatchJoinGame(string name);
|
|
Task<HttpStatusCode> PostSession(string name, bool isPrivate);
|
|
} |