NewAssessmentModel.swift 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // NewAssessmentModel.swift
  3. // LMS
  4. //
  5. // Created by Suraj Kumar Mandal on 19/10/23.
  6. //
  7. import Foundation
  8. // MARK: - NewAssessmentModel
  9. class NewAssessmentModel: Codable {
  10. var createdBy, createdDate, lastModifiedBy, lastModifiedDate: String?
  11. var id: Int?
  12. var intervention, level, unit, lesson: JSONNull?
  13. var type: TypeEnum?
  14. var mode: Mode?
  15. var name: String?
  16. var status, comments: Comments?
  17. var totalMarks, negativeMarkPerQuestion, totalQuestions: Int?
  18. var fileId, fileType: String?
  19. var assessmentCreatorName, assessmentApproverName, assessmentApprovedDateTime: JSONNull?
  20. var achievedMarks, numberofAtmt: Int?
  21. var negative, randomized: Bool?
  22. 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?) {
  23. self.createdBy = createdBy
  24. self.createdDate = createdDate
  25. self.lastModifiedBy = lastModifiedBy
  26. self.lastModifiedDate = lastModifiedDate
  27. self.id = id
  28. self.intervention = intervention
  29. self.level = level
  30. self.unit = unit
  31. self.lesson = lesson
  32. self.type = type
  33. self.mode = mode
  34. self.name = name
  35. self.status = status
  36. self.comments = comments
  37. self.totalMarks = totalMarks
  38. self.negativeMarkPerQuestion = negativeMarkPerQuestion
  39. self.totalQuestions = totalQuestions
  40. self.fileId = fileId
  41. self.fileType = fileType
  42. self.assessmentCreatorName = assessmentCreatorName
  43. self.assessmentApproverName = assessmentApproverName
  44. self.assessmentApprovedDateTime = assessmentApprovedDateTime
  45. self.achievedMarks = achievedMarks
  46. self.numberofAtmt = numberofAtmt
  47. self.negative = negative
  48. self.randomized = randomized
  49. }
  50. }
  51. enum Comments: String, Codable {
  52. case approved = "Approved"
  53. }
  54. enum Mode: String, Codable {
  55. case online = "Online"
  56. }
  57. enum TypeEnum: String, Codable {
  58. case assessment = "Assessment"
  59. }