Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

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