This commit is contained in:
Lorenzo Iovino 2017-07-10 23:02:02 +02:00
parent 6b915932ae
commit dc206c0bb0
15 changed files with 1540 additions and 332 deletions

View file

@ -10,6 +10,6 @@ import java.rmi.RemoteException;
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) throws RemoteException;
Response logout(String userName, String token, INotificationClient stub) throws RemoteException;
}

View file

@ -1,5 +1,7 @@
package models;
import interfaces.INotificationClient;
/**
* Created by loke on 17/06/2017.
*/
@ -7,6 +9,7 @@ public class Session {
public String token;
public User account;
public INotificationClient clientInterface;
public Session(User account, String token){
this.token = token;