Пример #1
0
 public void AuthModeReceive(FinalMessageForClient p_message)
 {
     if (p_message.Get_message_type == TypeOfMessage.Dialog)
     {
         DialogMessageForClient t_dialog_message = null;
         try
         {
             t_dialog_message = ((DialogMessageForClient)p_message.Get_message_object);
         }
         catch (Exception)
         {
             return;
         }
         all_dialogs.Receive(t_dialog_message);
     }
     else if (p_message.Get_message_type == TypeOfMessage.Chat)
     {
         ChatMessageForClient t_chat_message = null;
         try
         {
             t_chat_message = ((ChatMessageForClient)p_message.Get_message_object);
         }
         catch (Exception)
         {
             return;
         }
         all_chats.Receive(t_chat_message);
     }
 }
Пример #2
0
 public override void ReceiveMessage(ChatMessageForClient p_message)
 {
     if (all_chats.ContainsKey(p_message.Get_chat_id))
     {
         all_chats[p_message.Get_chat_id].ReceiveChatMessage(p_message.Get_text_message_object);
     }
 }
Пример #3
0
 public void Receive(ChatMessageForClient p_message)
 {
     if (p_message.Get_chat_type == TypeOfChat.Private)
     {
         private_chat_manager.ReceiveMessage(p_message);
     }
     else if (p_message.Get_chat_type == TypeOfChat.Public)
     {
         public_chat_manager.ReceiveMessage(p_message);
     }
 }
Пример #4
0
 public void Se_ChatSend(string p_receiver_user_name, ChatMessageForClient p_chat_message)
 {
     server_core.SC_ChatSend(p_receiver_user_name, p_chat_message);
 }
Пример #5
0
 public abstract void ReceiveMessage(ChatMessageForClient p_message);