Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
//
2
//  QuestionModel.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 2/21/22.
6
//
7
 
8
import Foundation
9
 
10
//, Identifiable
11
struct QuestionModel: Decodable {
12
    var uuid: String
13
    var quizUuid: String
14
    var text: String
15
    var type: String
16
    var points: Int
17
    var max_length : Int
18
    var position: Int
19
 
20
    init() {
21
        uuid = ""
22
        quizUuid = ""
23
        text = ""
24
        type = ""
25
        points = 0
26
        max_length = 0
27
        position = 0
28
    }
29
 
30
 
31
    init(uuid: String, quizUuid : String, text: String, type : String, points : Int, position : Int, max_length : Int) {
32
        self.uuid = uuid
33
        self.quizUuid = quizUuid
34
        self.text = text
35
        self.type = type
36
        self.points = points
37
        self.position = position
38
        self.max_length = max_length
39
    }
40
}
41