Ejemplo n.º 1
0
 /// <summary>
 /// Add reply to conversation with interlocutor.
 /// </summary>
 /// <param name="interlocutor">interlocutor.</param>
 /// <param name="reply">reply.</param>
 public void AddReply(string interlocutor, ConversationReply reply)
 {
     Conversation c = GetConversation(interlocutor);
     if (c == null)
     {
         c = new Conversation(interlocutor);
         c.AddReply(reply);
         AddConversation(c);
     }
     else
     {
         c.AddReply(reply);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Insert reply to top of replies in conversation.
 /// </summary>
 /// <param name="interlocutor">interlocutor.</param>
 /// <param name="reply">reply.</param>
 public void InsertReplyToTop(string interlocutor, ConversationReply reply)
 {
     Conversation c = GetConversation(interlocutor);
     if (c == null)
     {
         c = new Conversation(interlocutor);
         c.InsertReplyToTop(reply);
         AddConversation(c);
     }
     else
     {
         c.InsertReplyToTop(reply);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Add new conversation.
 /// </summary>
 /// <param name="c">conversation.</param>
 public void AddConversation(Conversation c)
 {
     if (c != null) conversations.Add(c);
 }