Refactoring frontend + commons + aggiunta tempi corretti
This commit is contained in:
parent
10595f5bab
commit
4760152e90
32 changed files with 676 additions and 558 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue