cleanup
This commit is contained in:
@@ -7,7 +7,7 @@ public class Session
|
||||
/// <summary>
|
||||
/// Email
|
||||
/// </summary>
|
||||
public string Player1 { get; set; }
|
||||
public string Player1 { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Email. Null if no second player exists.
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Shogi.Contracts.Types
|
||||
namespace Shogi.Contracts.Types;
|
||||
|
||||
public class SessionMetadata
|
||||
{
|
||||
public class SessionMetadata
|
||||
{
|
||||
public Guid SessionId { get; set; }
|
||||
public string Player1 { get; set; } = string.Empty;
|
||||
public string Player2 { get; set; } = string.Empty;
|
||||
}
|
||||
public Guid SessionId { get; set; }
|
||||
public string Player1 { get; set; } = string.Empty;
|
||||
public string Player2 { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
namespace Shogi.Contracts.Types
|
||||
namespace Shogi.Contracts.Types;
|
||||
|
||||
public enum WhichPlayer
|
||||
{
|
||||
public enum WhichPlayer
|
||||
{
|
||||
Player1,
|
||||
Player2
|
||||
}
|
||||
Player1,
|
||||
Player2
|
||||
}
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
namespace Shogi.Contracts.Types
|
||||
namespace Shogi.Contracts.Types;
|
||||
|
||||
public enum WhichPiece
|
||||
{
|
||||
public enum WhichPiece
|
||||
{
|
||||
King,
|
||||
GoldGeneral,
|
||||
SilverGeneral,
|
||||
Bishop,
|
||||
Rook,
|
||||
Knight,
|
||||
Lance,
|
||||
Pawn
|
||||
}
|
||||
King,
|
||||
GoldGeneral,
|
||||
SilverGeneral,
|
||||
Bishop,
|
||||
Rook,
|
||||
Knight,
|
||||
Lance,
|
||||
Pawn
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user