public Reply(ConversationReply reply, string myLogin)
		{
			Author = reply.Author;
			Time = reply.Time;
			Text = reply.Text;
			IsMyReply = reply.Author == myLogin;
		}
Exemplo 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);
            }
        }
Exemplo n.º 3
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);
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Insert reply to top of replies in conversation.
 /// </summary>
 /// <param name="reply">reply.</param>
 public void InsertReplyToTop(ConversationReply reply)
 {
     replies?.Insert(0, reply);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Add reply in conversation.
 /// </summary>
 /// <param name="reply">reply.</param>
 public void AddReply(ConversationReply reply)
 {
     replies?.Add(reply);
 }
Exemplo n.º 6
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);
     }
 }
Exemplo n.º 7
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);
     }
 }
Exemplo n.º 8
0
 /// <summary>
 /// Insert reply to top of replies in conversation.
 /// </summary>
 /// <param name="reply">reply.</param>
 public void InsertReplyToTop(ConversationReply reply)
 {
     replies?.Insert(0, reply);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Add reply in conversation.
 /// </summary>
 /// <param name="reply">reply.</param>
 public void AddReply(ConversationReply reply)
 {
     replies?.Add(reply);
 }
Exemplo n.º 10
0
		// update conversations
		private void OldReply(string interlocutor, ConversationReply reply)
		{
			if (SelectedFriend != null && interlocutor == SelectedFriend.Name)
				RepliesList.Insert(0, new Reply(reply, client.Name));
		}