Beispiel #1
0
        public ConversationViewModel()
        {
            var rootMsg = new ConversationMessage() {Title = "Root"};
            var child1 = new ConversationMessage {Title = "Child One", Parent = rootMsg };
            var child2 = new ConversationMessage {Title = "Child Two", Parent = rootMsg };
            var grandchild = new ConversationMessage {Title = "Grand Child", Parent = child1 };

            rootMsg.Children.Add(child1);
            rootMsg.Children.Add(child2);
            child1.Children.Add(grandchild);
            Message = rootMsg;
        }
Beispiel #2
0
 public ConversationMessage(ConversationMessage parent = null)
 {
     Id       = Guid.NewGuid();
     Children = new List <ConversationMessage>();
     Parent   = parent;
 }
Beispiel #3
0
 public ConversationMessage(ConversationMessage parent = null)
 {
     Id = Guid.NewGuid();
     Children = new List<ConversationMessage>();
     Parent = parent;
 }