public override void ReceiveMessage(AuthServerChatMessage p_message) { if (is_logged_in(p_message.Get_user_name)) { if (all_chats.ContainsKey(p_message.Get_chat_message.Get_chat_id)) { all_chats[p_message.Get_chat_message.Get_chat_id].ReceiveMessageFromUser(p_message); } } }
public void AllMa_ReceiveMessage(AuthServerChatMessage p_messsage) { if (!string.IsNullOrWhiteSpace(p_messsage.Get_chat_message.Get_text_message_object.Get_text_of_message)) { if (p_messsage.Get_chat_message.Get_chat_type == TypeOfChat.Private) { private_chat_manager.ReceiveMessage(p_messsage); } else if (p_messsage.Get_chat_message.Get_chat_type == TypeOfChat.Public) { public_chat_manager.ReceiveMessage(p_messsage); } } }
public virtual void ReceiveMessageFromUser(AuthServerChatMessage p_chat_message) { ChatMessageObjectToClient chat_message_for_clients = new ChatMessageObjectToClient(p_chat_message.Get_user_name, p_chat_message.Get_chat_message.Get_text_message_object); foreach (ChatUser t_user in all_users) { if (t_user.Get_user_name == p_chat_message.Get_user_name) { foreach (ChatUser r_user in all_users) { if (is_logged_in(r_user.Get_user_name)) { r_user.Receive(chat_message_for_clients); } } } } }
public override void ReceiveMessageFromUser(AuthServerChatMessage p_chat_message) { ChatMessageObjectToClient chat_message_for_clients = new ChatMessageObjectToClient(p_chat_message.Get_user_name, p_chat_message.Get_chat_message.Get_text_message_object); if (status == PrivateChatStatus.Accepted) { foreach (ChatUser t_user in all_users) { if (t_user.Get_user_name == p_chat_message.Get_user_name) { foreach (ChatUser r_user in all_users) { if (is_logged_in(r_user.Get_user_name)) { r_user.Receive(chat_message_for_clients); } } } } } }
public abstract void ReceiveMessage(AuthServerChatMessage p_message);