AccountInfoDB.java
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.sw.laryngoscope.db;
import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;
public class AccountInfoDB extends LitePalSupport {
/*private int id;
private String account_no = "";
private String account = "";*/
@Column(unique = true)
//@SerializedName(value = "id")
private int id;
private String name = "";
private String password = "";
private int userType = 0;//Administrator//Advanced user//User
private int isSelect = 0;
private boolean isLogin = false;
public AccountInfoDB() {
}
public AccountInfoDB(String name, String password, int type) {
this.name = name;
this.password = password;
this.userType = type;
}
public AccountInfoDB(int id, String name, String password, int userType, int isSelect, boolean isLogin) {
this.id = id;
this.name = name;
this.password = password;
this.userType = userType;
this.isSelect = isSelect;
this.isLogin = isLogin;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getUserType() {
return userType;
}
public void setUserType(int type) {
this.userType = type;
}
public int getIsSelect() {
return isSelect;
}
public void setIsSelect(int isSelect) {
this.isSelect = isSelect;
}
public boolean isLogin() {
return isLogin;
}
public void setLogin(boolean login) {
isLogin = login;
}
public int getId() {
return id;
}
@Override
public String toString() {
return "AccountInfoDB{" +
"id=" + id +
", name='" + name + '\'' +
", password='" + password + '\'' +
", userType=" + userType +
", isSelect=" + isSelect +
", isLogin=" + isLogin +
'}';
}
}