Added registration client/server
This commit is contained in:
parent
dd799f6d99
commit
546e341433
18 changed files with 817 additions and 418 deletions
|
|
@ -9,5 +9,7 @@ import java.rmi.RemoteException;
|
|||
*/
|
||||
public interface ITTAuth extends Remote {
|
||||
TTResponse login(String userName, String password) throws RemoteException;
|
||||
TTResponse register(String userName, String password) throws RemoteException;
|
||||
TTResponse logout(String userName, String token) throws RemoteException;
|
||||
|
||||
}
|
||||
|
|
|
|||
14
Commons/src/models/TTAccount.java
Normal file
14
Commons/src/models/TTAccount.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package models;
|
||||
|
||||
/**
|
||||
* Created by loke on 17/06/2017.
|
||||
*/
|
||||
public class TTAccount {
|
||||
public String userName;
|
||||
public String token;
|
||||
|
||||
public TTAccount(String userName, String token){
|
||||
this.userName = userName;
|
||||
this.token = token;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue