AccountInfoDB.java 2.2 KB
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 +
                '}';
    }

}