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