Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 31 Rev 32
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
            ]
176
    
181
            
-
 
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
        } else if command == "content-refresh" && newCapsules > 0 {
185
        else if command == "content-refresh" && newCapsules > 0 {
180
            let userinfo = [
186
            let userinfo = [
181
                "title" : title,
187
                "title" : title,
182
                "body" : body,
188
                "body" : body,