Refactoring frontend + commons + aggiunta tempi corretti

This commit is contained in:
Lorenzo Iovino 2017-07-13 03:31:54 +02:00
parent 10595f5bab
commit 4760152e90
32 changed files with 676 additions and 558 deletions

View file

@ -1,15 +1,15 @@
package interfaces;
import models.Response;
import models.Response;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* Created by loke on 15/06/2017.
* Author: Lorenzo Iovino on 15/06/2017.
* Description: IAuth
*/
public interface IAuth extends Remote {
Response login(String userName, String password) throws RemoteException;
Response register(String userName, String password) throws RemoteException;
Response logout(String userName, String token, INotificationClient stub) throws RemoteException;
}

View file

@ -5,7 +5,8 @@ import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* Created by loke on 19/06/2017.
* Author: Lorenzo Iovino on 19/06/2017.
* Description: INotificationClient
*/
public interface INotificationClient extends Remote{
void sendInvite(String userName, DefaultListModel<String> users) throws RemoteException;

View file

@ -4,13 +4,10 @@ import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* Created by loke on 19/06/2017.
* Author: Lorenzo Iovino on 19/06/2017.
* Description: Main
*/
public interface INotificationServer extends Remote {
/* registrazione per la callback */
public void registerForCallback (INotificationClient ClientInterface) throws RemoteException;
/* cancella registrazione per la callback */
public void unregisterForCallback (INotificationClient ClientInterface) throws RemoteException;
void registerForCallback (INotificationClient ClientInterface) throws RemoteException;
void unregisterForCallback (INotificationClient ClientInterface) throws RemoteException;
}