mapper class and delete old stuff
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace Gameboard.ShogiUI.Sockets.Repositories.CouchModels
|
||||
using Shogi.Domain;
|
||||
|
||||
namespace Gameboard.ShogiUI.Sockets.Repositories.CouchModels
|
||||
{
|
||||
public class SessionDocument : CouchDocument
|
||||
{
|
||||
@@ -17,12 +19,12 @@
|
||||
Player2Id = string.Empty;
|
||||
}
|
||||
|
||||
public SessionDocument(Models.SessionMetadata sessionMetaData)
|
||||
public SessionDocument(SessionMetadata sessionMetaData)
|
||||
: base(sessionMetaData.Name, WhichDocumentType.Session)
|
||||
{
|
||||
Name = sessionMetaData.Name;
|
||||
Player1Id = sessionMetaData.Player1.Id;
|
||||
Player2Id = sessionMetaData.Player2?.Id;
|
||||
Player1Id = sessionMetaData.Player1;
|
||||
Player2Id = sessionMetaData.Player2;
|
||||
IsPrivate = sessionMetaData.IsPrivate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user