package pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TeacherInfo {
    private int id;
    private String name;
    private int sex;
    private String brith;
    private int educ;
    private int title;

    public String toJSON(){
        String json = "{";
        json += "\"id\":" + id + ",";
        json += "\"name\":\"" + name + "\",";
        json += "\"sex\":" + sex + ",";
        json += "\"brith\":\"" + brith + "\",";
        json += "\"educ\":" + educ + ",";
        json += "\"title\":" + title + ",";
        return json;
    }
}
