Пример #1
0
 // Fields
 // Results
 // Business constructor
 public Acknowledge(
     Message message
     )
 {
     InitializeResults();
     _message = new PredecessorObj<Message>(this, RoleMessage, message);
 }
Пример #2
0
 public MessageViewModel(Message message)
 {
     _message = message;
 }
Пример #3
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Message newFact = new Message(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                        newFact._body = (string)_fieldSerializerByType[typeof(string)].ReadData(output);
                        newFact._index = (int)_fieldSerializerByType[typeof(int)].ReadData(output);
                    }
                }

                return newFact;
            }
Пример #4
0
 public MessageViewModel(Message message, Player player)
 {
     _player = player;
     _message = message;
 }