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:
2013-12-17 02:12:22 +01:00
parent 148676ba75
commit d2cb67f169
5 changed files with 173 additions and 16 deletions

View 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;
}