1st version that works
This commit is contained in:
47
libSafeMobile/src/main/java/com/safemobile/lib/User.java
Normal file
47
libSafeMobile/src/main/java/com/safemobile/lib/User.java
Normal file
@ -0,0 +1,47 @@
|
||||
package com.safemobile.lib;
|
||||
|
||||
public class User {
|
||||
public int id;
|
||||
public String firstname;
|
||||
public String lastname;
|
||||
public String login;
|
||||
public String password;
|
||||
public int user_type;
|
||||
public int ison = 0;
|
||||
public Vehicle vehValue;
|
||||
|
||||
public User()
|
||||
{
|
||||
this.id = -1;
|
||||
this.user_type = 1;
|
||||
}
|
||||
|
||||
public User(int id, String firstname, String lastname, String login, String password, int user_type, int ison)
|
||||
{
|
||||
this.id = id;
|
||||
this.firstname = firstname;
|
||||
this.lastname = lastname;
|
||||
this.login = login;
|
||||
this.password = password;
|
||||
this.user_type = user_type;
|
||||
this.ison = ison;
|
||||
this.vehValue =null;
|
||||
}
|
||||
|
||||
public User(int id, String firstname, String lastname, String login, String password, int user_type, int ison,Vehicle _vehValue)
|
||||
{
|
||||
this.id = id;
|
||||
this.firstname = firstname;
|
||||
this.lastname = lastname;
|
||||
this.login = login;
|
||||
this.password = password;
|
||||
this.user_type = user_type;
|
||||
this.ison = ison;
|
||||
vehValue =_vehValue;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return "id: " + id + " | login: " + login + " | password: " + password + " | user_type: " + user_type;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user