package kr.co.hanwha.hifive.data.model;

public class CrudData {
    /**
     * 8
     */
    int id;
    /**
     * 327
     */
    int member_id;
    /**
     * 7001
     */
    int conf_id;
    /**
     * "1"
     */
    String value;
    /**
     * "2018-04-19 05:53:49.0"
     */
    String created_at;
    /**
     * "2018-04-19 06:13:15.0"
     */
    String updated_at;

    public boolean getOnOff() {
        return "1".equals(value);
    }

    @Override
    public String toString() {
        return "CrudData{" +
                "id=" + id +
                ", member_id=" + member_id +
                ", conf_id=" + conf_id +
                ", value='" + value + '\'' +
                ", created_at='" + created_at + '\'' +
                ", updated_at='" + updated_at + '\'' +
                '}';
    }
}

/*
"crudResult": {
    "id": 8,
    "member_id": 327,
    "conf_id": 7001,
    "value": "1",
    "created_at": "2018-04-19 05:53:49.0",
    "updated_at": "2018-04-19 06:13:15.0"
}
*/