Proyectos de Subversion Iphone Microlearning

Rev

Autoría | Ultima modificación | Ver Log |

//
//  QuestionModel.swift
//  twogetskills
//
//  Created by Efrain Yanez Recanatini on 2/21/22.
//

import Foundation

//, Identifiable
struct QuestionModel: Decodable {
    var uuid: String
    var quizUuid: String
    var text: String
    var type: String
    var points: Int
    var max_length : Int
    var position: Int
    
    init() {
        uuid = ""
        quizUuid = ""
        text = ""
        type = ""
        points = 0
        max_length = 0
        position = 0
    }
    
    
    init(uuid: String, quizUuid : String, text: String, type : String, points : Int, position : Int, max_length : Int) {
        self.uuid = uuid
        self.quizUuid = quizUuid
        self.text = text
        self.type = type
        self.points = points
        self.position = position
        self.max_length = max_length
    }
}