www.pudn.com > TiKuMS.rar > LoginInfo.java
/*
* LoginInfo.java
*
* Created on 2006Äê10ÔÂ19ÈÕ, ÏÂÎç10:58
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package TiKuMS;
/**
*
* @author hp
*/
public class LoginInfo {
private boolean logined=false;
private int userID=0;
private String userName;
private String userType;
/** Creates a new instance of LoginInfo */
public void login(int userID,String userName,String userType)
{
logined=true;
this.userID=userID;
this.userName=userName;
this.userType=userType;
}
public void logout()
{
logined=false;
this.userID=0;
this.userName="";
this.userType="";
}
public LoginInfo() {
}
public boolean isLogined() {
return logined;
}
public int getUserID() {
return userID;
}
public String getUserName() {
return userName;
}
public String getUserType() {
return userType;
}
}