AutorÃa | Ultima modificación | Ver Log |
//
// CapsuleModel.swift
// twogetskills
//
// Created by Efrain Yanez Recanatini on 2/21/22.
//
import Foundation
//, Identifiable
struct CapsuleModel: Decodable {
var uuid: String
var topicUuid: String
var name: String
var description: String
var image: String
var position: Int
var totalSlides : Int
var viewSlides : Int
var progress : Double
var completed : Int
init() {
uuid = ""
topicUuid = ""
name = ""
description = ""
image = ""
position = 0
totalSlides = 0
viewSlides = 0
progress = 0
completed = 0
}
init(uuid: String, topicUuid : String, name : String, description : String, image : String, position : Int, totalSlides: Int, viewSlides: Int, progress : Double, completed : Int) {
self.uuid = uuid
self.topicUuid = topicUuid
self.name = name
self.description = description
self.image = image
self.position = position
self.totalSlides = totalSlides
self.viewSlides = viewSlides
self.progress = progress
self.completed = completed
}
}