     
 }
 
-public class AldoMainCallback: Callback {
+class AldoMainCallback: Callback {
     
     private var callback: Callback?
     

        }
    }
    
}

    public func onResponse(request: String, responseCode: Int, response: NSDictionary) {
        if responseCode == 200 {
            switch request {
            case Regex(pattern: RequestURI.REQUEST_AUTH_TOKEN.regex()):
                Aldo.getStorage().set(response["token"], forKey: Aldo.Keys.AUTH_TOKEN.rawValue)
                break
            case Regex(pattern: RequestURI.SESSION_CREATE.regex()):
                savePlayer(response: response)
                break
            case Regex(pattern: RequestURI.SESSION_JOIN.regex()):
                savePlayer(response: response)
                break
            case Regex(pattern: RequestURI.SESSION_INFO.regex()):
                let player = Aldo.getPlayer()!
                let session = createSession(response: response)
                
                player.setSession(session: session)
                Aldo.setPlayer(player: player)
                break
            case Regex(pattern: RequestURI.SESSION_PLAYERS.regex()):
                break
            case Regex(pattern: RequestURI.SESSION_STATE_PLAY.regex()):
                let player = Aldo.getPlayer()!
                player.getSession().setStatus(status: Session.Status.PLAYING)
                
                Aldo.setPlayer(player: player)
                break
            case Regex(pattern: RequestURI.SESSION_STATE_PAUSE.regex()):
                let player = Aldo.getPlayer()!
                player.getSession().setStatus(status: Session.Status.PAUSED)
                
                Aldo.setPlayer(player: player)
                break
            case Regex(pattern: RequestURI.SESSION_DELETE.regex()):
                Aldo.getStorage().removeObject(forKey: Aldo.Keys.SESSION.rawValue)
                Aldo.getStorage().synchronize()
                break
            case Regex(pattern: RequestURI.PLAYER_USERNAME_UPDATE.regex()):
                let player = Aldo.getPlayer()!
                player.setUsername(username: response["username"] as! String)
                break
            default:
                break
