17 lines
462 B
C#
17 lines
462 B
C#
using Shogi.Contracts.Api;
|
|
using Shogi.Contracts.Types;
|
|
using System.Net;
|
|
|
|
namespace Shogi.UI.Pages.Home.Api
|
|
{
|
|
public interface IShogiApi
|
|
{
|
|
Task<CreateGuestTokenResponse?> GetGuestToken();
|
|
Task<Session?> GetSession(string name);
|
|
Task<ReadSessionsPlayerCountResponse?> GetSessions();
|
|
Task<Guid?> GetToken();
|
|
Task GuestLogout();
|
|
Task PostMove(string sessionName, Move move);
|
|
Task<HttpStatusCode> PostSession(string name, bool isPrivate);
|
|
}
|
|
} |