Exemple #1
0
 def send_delete_contact_message(self, client_socket, contact_name):
     """
     Tells a user to delete a contact.
     :param client_socket: socket, the socket of the user.
     :param contact_name: str, the name of the contact.
     """
     delete_contact_message = Common_Elements.DeleteContactMessage(contact_name)
     self.send_full_message(client_socket, delete_contact_message)
Exemple #2
0
 def request_delete_contact(self, contact_name):
     """
     Requests the server to delete a contact.
     :param contact_name: str, the name of the contact.
     """
     delete_contact_message = Common_Elements.DeleteContactMessage(
         contact_name)
     self.send_message(delete_contact_message)