squash a bunch of commits
This commit is contained in:
17
Shogi.Contracts/Api/Commands/CreateGuestTokenResponse.cs
Normal file
17
Shogi.Contracts/Api/Commands/CreateGuestTokenResponse.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Shogi.Contracts.Api;
|
||||
|
||||
public class CreateGuestTokenResponse
|
||||
{
|
||||
public string UserId { get; }
|
||||
public string DisplayName { get; }
|
||||
public Guid OneTimeToken { get; }
|
||||
|
||||
public CreateGuestTokenResponse(string userId, string displayName, Guid oneTimeToken)
|
||||
{
|
||||
UserId = userId;
|
||||
DisplayName = displayName;
|
||||
OneTimeToken = oneTimeToken;
|
||||
}
|
||||
}
|
||||
10
Shogi.Contracts/Api/Commands/CreateSessionCommand.cs
Normal file
10
Shogi.Contracts/Api/Commands/CreateSessionCommand.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shogi.Contracts.Api;
|
||||
|
||||
public class CreateSessionCommand
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public bool IsPrivate { get; set; }
|
||||
}
|
||||
13
Shogi.Contracts/Api/Commands/CreateTokenResponse.cs
Normal file
13
Shogi.Contracts/Api/Commands/CreateTokenResponse.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Shogi.Contracts.Api;
|
||||
|
||||
public class CreateTokenResponse
|
||||
{
|
||||
public Guid OneTimeToken { get; }
|
||||
|
||||
public CreateTokenResponse(Guid token)
|
||||
{
|
||||
OneTimeToken = token;
|
||||
}
|
||||
}
|
||||
10
Shogi.Contracts/Api/Commands/MovePieceCommand.cs
Normal file
10
Shogi.Contracts/Api/Commands/MovePieceCommand.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Shogi.Contracts.Types;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shogi.Contracts.Api;
|
||||
|
||||
public class MovePieceCommand
|
||||
{
|
||||
[Required]
|
||||
public Move Move { get; set; }
|
||||
}
|
||||
10
Shogi.Contracts/Api/Queries/ReadAllSessionsResponse.cs
Normal file
10
Shogi.Contracts/Api/Queries/ReadAllSessionsResponse.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Shogi.Contracts.Types;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Shogi.Contracts.Api;
|
||||
|
||||
public class ReadAllSessionsResponse
|
||||
{
|
||||
public IList<SessionMetadata> PlayerHasJoinedSessions { get; set; }
|
||||
public IList<SessionMetadata> AllOtherSessions { get; set; }
|
||||
}
|
||||
8
Shogi.Contracts/Api/Queries/ReadSessionResponse.cs
Normal file
8
Shogi.Contracts/Api/Queries/ReadSessionResponse.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Shogi.Contracts.Types;
|
||||
|
||||
namespace Shogi.Contracts.Api;
|
||||
|
||||
public class ReadSessionResponse
|
||||
{
|
||||
public Session Session { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user