// Fields // Results // Business constructor public GameRequestCompletion( GameRequest gameRequest ,Player player ) { InitializeResults(); _gameRequest = new PredecessorObj<GameRequest>(this, RoleGameRequest, gameRequest); _player = new PredecessorObj<Player>(this, RolePlayer, player); }
public GameRequestViewModel(GameRequest gameRequest, MainNavigationModel mainNavigation) : base(mainNavigation) { _gameRequest = gameRequest; }
public CorrespondenceFact CreateFact(FactMemento memento) { GameRequest newFact = new GameRequest(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._unique = (Guid)_fieldSerializerByType[typeof(Guid)].ReadData(output); } } return newFact; }