udacity / ios-nd-networking

Resources for Udacity's iOS Networking with Swift course.
MIT License
173 stars 89 forks source link

"jsonBody" parameter type in taskForPOSTMethod header in TMDBClient.swift file #1

Closed idekov-hf closed 5 years ago

idekov-hf commented 8 years ago

Hey Jarrod,

Your lessons on networking with Swift are great! I am not only learning a lot but I am enjoying them as well.

I wanted to bring something small to your attention.

In the following file: ios-nd-networking/TheMovieManager-v1/TheMovieManager/TMDBClient.swift

There is the following unimplemented method:

taskForPOSTMethod(method: String, var parameters: [String:AnyObject], jsonBody: [String:AnyObject], completionHandlerForPOST: (result: AnyObject!, error: NSError?) -> Void) -> NSURLSessionDataTask {}

In this method header, the type of the jsonBody parameter is [String:AnyObject]. However, in the same method header of the other two TheMovieManager projects (located in the TheMovieManager-v2 and TheMovieManagerComplete folders), the jsonBody parameter is of typeString.

OwenLaRosa commented 5 years ago

Closing this out as there's a new version of the course.