Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 17
Línea 12... Línea 12...
12
{
12
{
13
    @Published var capsules = [CapsuleModel]()
13
    @Published var capsules = [CapsuleModel]()
Línea 14... Línea 14...
14
 
14
 
15
    func fetch(topicUuid : String, userUuid: String)
15
    func fetch(topicUuid : String, userUuid: String)
16
    {
16
    {
17
        let capsuleDao = CapsuleDao.sharedInstance
17
        let capsuleDao = CapsuleDao()
Línea 18... Línea 18...
18
        capsules = capsuleDao.selectAllByTopicUuid(topicUuid: topicUuid)
18
        capsules = capsuleDao.selectAllByTopicUuid(topicUuid: topicUuid)
19
 
19
 
Línea 20... Línea 20...
20
        loadAllProgress(userUuid: userUuid);
20
        loadAllProgress(userUuid: userUuid);
21
    }
21
    }
22
    
22
    
23
    func loadAllProgress(userUuid : String)
23
    func loadAllProgress(userUuid : String)
24
    {
24
    {
Línea 25... Línea 25...
25
        let progressDao = ProgressDao.sharedInstance
25
        let progressDao = ProgressDao()
26
        var i : Int = 0
26
        var i : Int = 0