Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
//
2
//  CapsuleModel.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 2/21/22.
6
//
7
 
8
import Foundation
9
//, Identifiable
10
 
11
struct CapsuleModel: Decodable {
12
    var uuid: String
13
    var topicUuid: String
14
    var name: String
15
    var description: String
16
    var image: String
17
    var position: Int
18
 
19
    var totalSlides : Int
20
    var viewSlides : Int
21
    var progress : Double
22
    var completed : Int
23
 
24
 
25
    init() {
26
        uuid = ""
27
        topicUuid = ""
28
        name = ""
29
        description = ""
30
        image = ""
31
        position = 0
32
 
33
        totalSlides = 0
34
        viewSlides = 0
35
        progress = 0
36
        completed = 0
37
    }
38
 
39
    init(uuid: String, topicUuid : String, name : String, description : String, image : String, position : Int, totalSlides: Int, viewSlides: Int, progress : Double, completed : Int) {
40
 
41
        self.uuid = uuid
42
        self.topicUuid = topicUuid
43
        self.name = name
44
        self.description = description
45
        self.image = image
46
        self.position = position
47
 
48
        self.totalSlides = totalSlides
49
        self.viewSlides = viewSlides
50
        self.progress = progress
51
        self.completed = completed
52
    }
53
 
54
}
55
 
56