Пример #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
        void Add_Button_Click(object sender, EventArgs e, Di_Client_CreateAddAgreement p_test_dialog)
        {
            int last_message_received_from_dialog_id = messages_sent_from_dialog[0].Get_message_id;

            DialogMessageForClient temp_dialog_message = null;

            last_message_number++;

            Di_Mess_ReceiptMessage rec_message = new Di_Mess_ReceiptMessage(ReceiptStatus.Rejected, new Di_Mess_Rec_RejectMessage(last_message_recv_id, "he he"));

            temp_dialog_message = new DialogMessageForClient(HelperFunctions.GetGUID(), dialog_id, last_message_number, TypeOfDialog.CreateAddAgreement
                                                             , rec_message, TypeOfDialogMessage.ReceiptMessage);

            p_test_dialog.ReceiveMessage(temp_dialog_message);
        }
Пример #3
0
 protected void Se_UnAuthSend(int p_thread_id, DialogMessageForClient p_message)
 {
     server_core.SC_UnAuthSend(p_thread_id, p_message);
 }
Пример #4
0
 protected void Se_Authsend(string p_user_name, DialogMessageForClient p_message)
 {
     server_core.SC_AuthSend(p_user_name, p_message);
 }