13 lines
359 B
C#
13 lines
359 B
C#
namespace Gameboard.ShogiUI.Sockets.ServiceModels.Types
|
|
{
|
|
public class SessionMetadata
|
|
{
|
|
public string Name { get; set; }
|
|
public string Player1 { get; set; }
|
|
public string? Player2 { get; set; }
|
|
public bool IsPrivate { get; set; }
|
|
|
|
public string[] Players => string.IsNullOrEmpty(Player2) ? new[] { Player1 } : new[] { Player1, Player2 };
|
|
}
|
|
}
|