Пример #1
0
 public static void secondClientStarted() {
   for (MessageRecievedListener l : LISTENER) {
     l.secondClientStarted();
   }
 }
Пример #2
0
 public static void receiveAlertFrom(ContactDto contact) {
   for (MessageRecievedListener l : LISTENER) {
     l.alert(contact);
   }
 }
Пример #3
0
 public static void fileTransferRequestReceived(FileTransferRequest request, ContactDto contact) {
   for (MessageRecievedListener l : LISTENER) {
     l.fileTransferRequestRecieved(contact, request);
   }
 }
Пример #4
0
 public static void receiveMessageFrom(ContactDto contact, ChatMessage message) {
   for (MessageRecievedListener l : LISTENER) {
     l.messageRecieved(contact, message);
   }
 }