Exemplo n.º 1
0
        private void NewConversation(List <int> userIds)
        {
            IsMultiUserConversation = false;

            if (!participationRepository.DoesConversationWithUsersExist(userIds))
            {
                clientService.CreateConversation(userIds);
            }
            else
            {
                int conversationId = participationRepository.GetConversationIdByUserIds(userIds);
                ConversationWindowManager.CreateConversationWindow(ServiceRegistry, conversationRepository.FindEntityById(conversationId));
            }
        }
Exemplo n.º 2
0
 public void GetConversationWindow(int conversationId)
 {
     ConversationWindowManager.CreateConversationWindow(ServiceRegistry, conversationRepository.FindEntityById(conversationId));
 }
Exemplo n.º 3
0
 private void OnConversationAdded(object sender, EntityChangedEventArgs <Conversation> e)
 {
     ConversationWindowManager.CreateConversationWindow(ServiceRegistry, e.Entity);
 }
Exemplo n.º 4
0
        private void OnContributionAdded(IContribution contribution)
        {
            Conversation conversation = conversationRepository.FindEntityById(contribution.ConversationId);

            ConversationWindowManager.CreateConversationWindow(ServiceRegistry, conversation);
        }