Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 32 | Rev 40 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 32 Rev 39
Línea 173... Línea 173...
173
        var command = userInfo["command"] as? String ?? ""
173
        var command = userInfo["command"] as? String ?? ""
174
        let newCapsules = Int(userInfo["new_capsules"] as? String ?? "") ?? 0
174
        let newCapsules = Int(userInfo["new_capsules"] as? String ?? "") ?? 0
Línea 175... Línea 175...
175
 
175
 
176
    
-
 
177
        if command == "signout" {
-
 
178
            let userinfo = [
-
 
179
                "is_foreground" : (isForeground ? "1" : "0")
-
 
180
            ]
-
 
181
            
176
    
182
            
177
        if command == "signout" {
183
            NotificationCenter.default.post(name: Constants.NOTIFICATION_NAME_COMMAND_EXIT , object: self, userInfo: userinfo)
178
            NotificationCenter.default.post(name: Constants.NOTIFICATION_NAME_COMMAND_EXIT , object: self, userInfo: nil)
184
        }
179
        }
185
        else if command == "content-refresh" && newCapsules > 0 {
180
        else if command == "content-refresh" && newCapsules > 0 {
186
            let userinfo = [
181
            let userinfo = [