public static void secondClientStarted() { for (MessageRecievedListener l : LISTENER) { l.secondClientStarted(); } }
public static void receiveAlertFrom(ContactDto contact) { for (MessageRecievedListener l : LISTENER) { l.alert(contact); } }
public static void fileTransferRequestReceived(FileTransferRequest request, ContactDto contact) { for (MessageRecievedListener l : LISTENER) { l.fileTransferRequestRecieved(contact, request); } }
public static void receiveMessageFrom(ContactDto contact, ChatMessage message) { for (MessageRecievedListener l : LISTENER) { l.messageRecieved(contact, message); } }