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
var linkComments: String
var linkCommentAdd: String
var totalComments : Int
var totalRating : Decimal
var addedOn: String
var updatedOn: String
init() {
uuid = ""
topicUuid = ""
name = ""
description = ""
image = ""
position = 0
totalSlides = 0
viewSlides = 0
progress = 0
completed = 0
linkComments = ""
linkCommentAdd = ""
totalComments = 0
totalRating = 0
addedOn = ""
updatedOn = ""
}
init(uuid: String, topicUuid : String, name : String, description : String, image : String, position : Int, totalSlides: Int, viewSlides: Int, progress : Double, completed : Int,
linkComments : String, linkCommentAdd : String, totalComments : Int, totalRating : Decimal, addedOn : String, updatedOn : String) {
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
self.linkComments = linkComments
self.linkCommentAdd = linkCommentAdd
self.totalComments = totalComments
self.totalRating = totalRating
self.addedOn = addedOn
self.updatedOn = updatedOn
}
}