Created
March 19, 2015 08:41
-
-
Save Arrnas/2387b1de718e03abb05a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (path: String, parameters: [String: AnyObject]) = { | |
switch self { | |
case .UserSearch(let searchString): | |
var searchSetup:JSON = ["queryString":searchString,"resultType":"User"] | |
var params = ["searchSetup":searchSetup] | |
return ("/api/v1/search/query", params) | |
} | |
} | |
error: 'JSON' is not identical to 'AnyObject' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
let (path: String, parameters: [String: AnyObject]) = {
switch self {
case .UserSearch(let searchString):
var searchSetup:JSON = ["queryString":searchString,"resultType":"user"]
var params = ["searchSetup":searchSetup.description]
return ("/search/query", params)
}
}