import { BaseObject } from '../Basic/baseObject'; import { Employee } from '../Employee/employee'; import { EnumDifficultyLevel, EnumStatus } from '../enums'; import { CourseProgress } from './course-progress'; import { CourseType } from './course-type'; import { Enrollments } from './enrollments'; import { LessonProgress } from './lesson-progress'; import { Lessons } from './lessons'; import { LMSTemplate } from './lmstemplate'; export class Courses extends BaseObject { constructor() { super(); this.courseTitle = ""; this.courseCode = ""; this.courseTypeID = 0; this.description = ""; this.difficultyLevel = EnumDifficultyLevel.Beginner; this.trainerID = 0; this.duration = ""; this.status = EnumStatus.Active; this.isForFree = true; this.price = 0; this.totalEnrollments = 0; this.rating = 0.0; this.popularityScore = 0.0; this.completionRate = 0.0; this.averageProgress = 0.0; this.isExamRequired = false; this.tags = ""; this.targetedAudience = ""; this.learningOutcomes = ""; this.courseIncludes = ""; this.startGuideLine = ""; this.createdUser = ""; this.lessons = []; this.totalLesson = 0; this.totalContent = 0; this.courseTemplate = new LMSTemplate(); } courseTitle: string; courseCode: string; courseTypeID: number; description: string; difficultyLevel: EnumDifficultyLevel; trainerID: number; duration?: string; isForFree?: boolean; price?: number; totalEnrollments?: number; rating?: number; popularityScore?: number; completionRate?: number; averageProgress?: number; isExamRequired?: boolean; tags?: string; targetedAudience?: string; learningOutcomes?: string; courseIncludes?: string; startGuideLine?: string; lessons : Lessons[]; courseTemplate : LMSTemplate; courseType : CourseType; totalLesson : number; totalContent : number; trainer : Employee; createdUser : string; enrollments : Enrollments; courseProgres : CourseProgress; lessonProgres : LessonProgress [] = []; }