AutorÃa | Ultima modificación | Ver Log |
//// CapsuleModel.swift// twogetskills//// Created by Efrain Yanez Recanatini on 2/21/22.//import Foundation//, Identifiablestruct CapsuleModel: Decodable {var uuid: Stringvar topicUuid: Stringvar name: Stringvar description: Stringvar image: Stringvar position: Intvar totalSlides : Intvar viewSlides : Intvar progress : Doublevar completed : Intvar linkComments: Stringvar linkCommentAdd: Stringvar totalComments : Intvar totalRating : Decimalvar addedOn: Stringvar updatedOn: Stringinit() {uuid = ""topicUuid = ""name = ""description = ""image = ""position = 0totalSlides = 0viewSlides = 0progress = 0completed = 0linkComments = ""linkCommentAdd = ""totalComments = 0totalRating = 0addedOn = ""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 = uuidself.topicUuid = topicUuidself.name = nameself.description = descriptionself.image = imageself.position = positionself.totalSlides = totalSlidesself.viewSlides = viewSlidesself.progress = progressself.completed = completedself.linkComments = linkCommentsself.linkCommentAdd = linkCommentAddself.totalComments = totalCommentsself.totalRating = totalRatingself.addedOn = addedOnself.updatedOn = updatedOn}}