1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- //
- // NewAssessmentModel.swift
- // LMS
- //
- // Created by Suraj Kumar Mandal on 19/10/23.
- //
- import Foundation
- // MARK: - NewAssessmentModel
- class NewAssessmentModel: Codable {
- var createdBy, createdDate, lastModifiedBy, lastModifiedDate: String?
- var id: Int?
- var intervention, level, unit, lesson: JSONNull?
- var type: TypeEnum?
- var mode: Mode?
- var name: String?
- var status, comments: Comments?
- var totalMarks, negativeMarkPerQuestion, totalQuestions: Int?
- var fileId, fileType: String?
- var assessmentCreatorName, assessmentApproverName, assessmentApprovedDateTime: JSONNull?
- var achievedMarks, numberofAtmt: Int?
- var negative, randomized: Bool?
- init(createdBy: String?, createdDate: String?, lastModifiedBy: String?, lastModifiedDate: String?, id: Int?, intervention: JSONNull?, level: JSONNull?, unit: JSONNull?, lesson: JSONNull?, type: TypeEnum?, mode: Mode?, name: String?, status: Comments?, comments: Comments?, totalMarks: Int?, negativeMarkPerQuestion: Int?, totalQuestions: Int?, fileId: String?, fileType: String?, assessmentCreatorName: JSONNull?, assessmentApproverName: JSONNull?, assessmentApprovedDateTime: JSONNull?, achievedMarks: Int?, numberofAtmt: Int?, negative: Bool?, randomized: Bool?) {
- self.createdBy = createdBy
- self.createdDate = createdDate
- self.lastModifiedBy = lastModifiedBy
- self.lastModifiedDate = lastModifiedDate
- self.id = id
- self.intervention = intervention
- self.level = level
- self.unit = unit
- self.lesson = lesson
- self.type = type
- self.mode = mode
- self.name = name
- self.status = status
- self.comments = comments
- self.totalMarks = totalMarks
- self.negativeMarkPerQuestion = negativeMarkPerQuestion
- self.totalQuestions = totalQuestions
- self.fileId = fileId
- self.fileType = fileType
- self.assessmentCreatorName = assessmentCreatorName
- self.assessmentApproverName = assessmentApproverName
- self.assessmentApprovedDateTime = assessmentApprovedDateTime
- self.achievedMarks = achievedMarks
- self.numberofAtmt = numberofAtmt
- self.negative = negative
- self.randomized = randomized
- }
- }
- enum Comments: String, Codable {
- case approved = "Approved"
- }
- enum Mode: String, Codable {
- case online = "Online"
- }
- enum TypeEnum: String, Codable {
- case assessment = "Assessment"
- }
|