enum DisciplineState { approved = "approved" , notAttended = "not-attended" , attending = "attending" , dismissed = "dismissed" , quited = "quited" } export default class Discipline { private absenses : number ; private name : string ; private code : string ; private classroomCode : string ; private classroomId : number ; private classHours : number ; private frequency : number ; private grade : number ; private quitDate : Date ; private period : string ; private periodId : number ; private presences : number ; private courseId : number ; private state : DisciplineState ; private teacherName : string ; private teacherId : number ; constructor ( { absenses , name , code , classroomCode , classroomId , classHours , frequency , grade , quitDate , period , periodId , presences , courseId , state , teacherName , teacherId , } ) { this . absenses = absenses ; this . name = name ; this . code = code ; this . classroomCode = classroomCode ; this . classroomId = classroomId ; this . classHours = classHours ; this . frequency = frequency ; this . grade = grade ; this . quitDate = quitDate ; this . period = period ; this . periodId = periodId ; this . presences = presences ; this . courseId = courseId ; this . state = state ; this . teacherName = teacherName ; this . teacherId = teacherId ; } public isApproved ( ) { return this . state === "approved" ; } public isNotAttended ( ) { return this . state === "not-attended" ; } public isAttending ( ) { return this . state === "attending" ; } public isDismissed ( ) { return this . state === "dismissed" ; } public isQuited ( ) { return this . state === "quited" ; } public setFrequency ( frequency ) { this . frequency = frequency ; } public getFrequency ( ) { return this . frequency ; } public setGrade ( grade ) { this . grade = grade ; } public getGrade ( ) { return this . grade ; } public setState ( state ) { this . state = state ; } public getState ( ) { return this . state ; } public setClassroomCode ( classroomCode ) { this . classroomCode = classroomCode ; } public getClassroomCode ( ) { return this . classroomCode ; } public setTeacherName ( teacherName ) { this . teacherName = teacherName ; } public getTeacherName ( ) { return this . teacherName ; } public setAbsenses ( absenses ) { this . absenses = absenses ; } public getAbsenses ( ) { return this . absenses ; } public setPresences ( presences ) { this . presences = presences ; } public getPresences ( ) { return this . presences ; } public setName ( name ) { this . name = name ; } public getName ( ) { return this . name ; } public setCode ( code ) { this . code = code ; } public getCode ( ) { return this . code ; } public setPeriod ( period ) { this . period = period ; } public getPeriod ( ) { return this . period ; } public setclassroomId ( classroomId ) { this . classroomId = classroomId ; } public getClassroomId ( ) { return this . classroomId ; } public setQuitDate ( quitDate ) { this . quitDate = quitDate ; } public getQuitDate ( ) { return this . quitDate ; } public setPeriodId ( periodId ) { this . periodId = periodId ; } public getPeriodId ( ) { return this . periodId ; } public setCourseId ( courseId ) { this . courseId = courseId ; } public getCourseId ( ) { return this . courseId ; } public setTeacherId ( teacherId ) { this . teacherId = teacherId ; } public getTeacherId ( ) { return this . teacherId ; } }