Skip to content

Instantly share code, notes, and snippets.

@nunogoncalves
Last active May 28, 2016 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunogoncalves/56fd7c0289ca89603b134740bbda2cfe to your computer and use it in GitHub Desktop.
Save nunogoncalves/56fd7c0289ca89603b134740bbda2cfe to your computer and use it in GitHub Desktop.
extension Users {
class Getter : Requestable, WebGetter, Authenticable, EmptyBody, UrlEncodable, Deserializable {
var deserializer = Deserialize.UserDeserializer()
var url = "https://..."
func getUserDetails(success success: User -> (), failure: ApiResponse -> ()) {
call(success: success, failure: failure)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment