package com.oo.eye.bean;


import com.app.baselibrary.bean.BaseBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by henry  16/1/30.
 */
@Entity
public class StudentBean extends BaseBean {
    private String sid;
    private String uid;
    private String school;
    private String grade;
    private String classes;
    private String status;
    private String realname;
    private String number;
    private double left_eye;
    private double right_eye;
    private String url;
    private String pid;
    private int distance;//测量距离
    private boolean isChick;
    private String birthday;

    @Generated(hash = 1107237120)
    public StudentBean(String sid, String uid, String school, String grade,
            String classes, String status, String realname, String number,
            double left_eye, double right_eye, String url, String pid, int distance,
            boolean isChick, String birthday) {
        this.sid = sid;
        this.uid = uid;
        this.school = school;
        this.grade = grade;
        this.classes = classes;
        this.status = status;
        this.realname = realname;
        this.number = number;
        this.left_eye = left_eye;
        this.right_eye = right_eye;
        this.url = url;
        this.pid = pid;
        this.distance = distance;
        this.isChick = isChick;
        this.birthday = birthday;
    }

    @Generated(hash = 2097171990)
    public StudentBean() {
    }

    public boolean isChick() {
        return isChick;
    }

    public void setChick(boolean chick) {
        isChick = chick;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public double getLeft_eye() {
        return left_eye;
    }

    public void setLeft_eye(double left_eye) {
        this.left_eye = left_eye;
    }

    public double getRight_eye() {
        return right_eye;
    }

    public void setRight_eye(double right_eye) {
        this.right_eye = right_eye;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPid() {
        return pid;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public StudentBean copy(){
        StudentBean student = new StudentBean();
        student.setSid(this.sid);
        student.setPid(this.pid);
        student.setClasses(this.classes);
        student.setGrade(this.grade);
        student.setNumber(this.number);
        student.setRealname(this.realname);
        student.setSchool(this.school);
        student.setStatus(this.status);
        student.setUid(this.uid);
        student.setUrl(this.url);
        student.setLeft_eye(this.left_eye);
        student.setRight_eye(this.right_eye);
        student.setDistance(this.distance);
        student.setBirthday(this.birthday);
        return student;
    }

    public StudentBean transition(int measureDis){
        StudentBean student = new StudentBean();
        student.setSid(this.sid);
        student.setPid(this.pid);
        student.setClasses(this.classes);
        student.setGrade(this.grade);
        student.setNumber(this.number);
        student.setRealname(this.realname);
        student.setSchool(this.school);
        student.setStatus(this.status);
        student.setUid(this.uid);
        student.setUrl(this.url);
        student.setLeft_eye(this.left_eye);
        student.setRight_eye(this.right_eye);
        student.setDistance(measureDis);
        return student;
    }

    public boolean getIsChick() {
        return this.isChick;
    }

    public void setIsChick(boolean isChick) {
        this.isChick = isChick;
    }
}
