Proyectos de Subversion Iphone Microlearning - Inconcert

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
    var linkComments: String
25
    var linkCommentAdd: String
26
    var totalComments : Int
27
    var totalRating : Decimal
28
 
29
 
30
    var addedOn: String
31
    var updatedOn: String
32
 
33
 
34
    init() {
35
        uuid = ""
36
        topicUuid = ""
37
        name = ""
38
        description = ""
39
        image = ""
40
        position = 0
41
 
42
        totalSlides = 0
43
        viewSlides = 0
44
        progress = 0
45
        completed = 0
46
 
47
        linkComments = ""
48
        linkCommentAdd = ""
49
        totalComments = 0
50
        totalRating = 0
51
 
52
        addedOn = ""
53
        updatedOn = ""
54
    }
55
 
56
    init(uuid: String, topicUuid : String, name : String, description : String, image : String, position : Int, totalSlides: Int, viewSlides: Int, progress : Double, completed : Int,
57
         linkComments : String, linkCommentAdd : String, totalComments : Int,  totalRating : Decimal, addedOn : String, updatedOn  : String) {
58
 
59
        self.uuid = uuid
60
        self.topicUuid = topicUuid
61
        self.name = name
62
        self.description = description
63
        self.image = image
64
        self.position = position
65
 
66
        self.totalSlides = totalSlides
67
        self.viewSlides = viewSlides
68
        self.progress = progress
69
        self.completed = completed
70
 
71
        self.linkComments = linkComments
72
        self.linkCommentAdd = linkCommentAdd
73
        self.totalComments = totalComments
74
        self.totalRating = totalRating
75
 
76
        self.addedOn = addedOn
77
        self.updatedOn = updatedOn
78
    }
79
 
80
}
81
 
82