All the code

This commit is contained in:
2020-12-13 14:31:23 -06:00
parent 9c3d67a07e
commit 1bbab8fe8f
49 changed files with 1878 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
namespace AspShogiSockets.ServiceModels.Api.Messages
{
public class GetGuestToken
{
public string ClientId { get; set; }
}
public class GetGuestTokenResponse
{
public string ClientId { get; }
public Guid OneTimeToken { get; }
public GetGuestTokenResponse(string clientId, Guid token)
{
ClientId = clientId;
OneTimeToken = token;
}
}
}

View File

@@ -0,0 +1,14 @@
using System;
namespace Websockets.ServiceModels
{
public class GetTokenResponse
{
public Guid OneTimeToken { get; }
public GetTokenResponse(Guid token)
{
OneTimeToken = token;
}
}
}

View File

@@ -0,0 +1,15 @@
namespace AspShogiSockets.ServiceModels.Api.Messages
{
public class PostGameInvitation
{
public string SessionName { get; set; }
}
public class PostGameInvitationResponse
{
public string Code { get; }
public PostGameInvitationResponse(string code)
{
Code = code;
}
}
}