Sistema di Login teoricamente completo. Nel main la classe LoginData si occupa di fare tutto. Per richiamare chi è loggato basta chiamare il metodo .getUserName. Per richiamre il tipo di account .getType. Per stamapre le info di chi è loggato .getUserDataInfo
This commit is contained in:
35
it/unisa/info13d/Login/Entry.java
Normal file
35
it/unisa/info13d/Login/Entry.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package it.unisa.info13d.Login;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created with MONSTER.
|
||||
* User: xgiovio
|
||||
* Date: 17/12/13
|
||||
* Time: 0.38
|
||||
*/
|
||||
public class Entry implements Serializable{
|
||||
|
||||
public Entry (String in_user, String in_password, boolean in_type) {
|
||||
user = in_user;
|
||||
password = in_password;
|
||||
type = in_type;
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public boolean getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
private String user;
|
||||
private String password;
|
||||
private boolean type;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user