@@ -37,7 +37,7 @@ extern NSString* const kContentTypeWWWEncoded; |
37 | 37 | * you receive back the initialized model (or nil) and an error (or nil) |
38 | 38 | * |
39 | 39 | * @param model the newly created JSONModel instance or nil |
40 | | - * @param e JSONModelError or nil |
| 40 | + * @param err JSONModelError or nil |
41 | 41 | */ |
42 | 42 | typedef void (^JSONModelBlock)(JSONModel* model, JSONModelError* err); |
43 | 43 |
|
@@ -158,7 +158,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err); |
158 | 158 | * Makes GET request to the given URL address and fetches a JSON response. |
159 | 159 | * @param urlString the URL as a string |
160 | 160 | * @param completeBlock JSONObjectBlock to execute upon completion |
161 | | - * @return JSON compliant object or nil |
162 | 161 | */ |
163 | 162 | +(void)getJSONFromURLWithString:(NSString*)urlString completion:(JSONObjectBlock)completeBlock; |
164 | 163 |
|
@@ -167,7 +166,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err); |
167 | 166 | * @param urlString the URL as a string |
168 | 167 | * @param params a dictionary of key / value pairs to be send as variables to the request |
169 | 168 | * @param completeBlock JSONObjectBlock to execute upon completion |
170 | | - * @return JSON compliant object or nil |
171 | 169 | */ |
172 | 170 | +(void)getJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock; |
173 | 171 |
|
@@ -179,7 +177,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err); |
179 | 177 | * @param urlString the URL as a string |
180 | 178 | * @param params a dictionary of key / value pairs to be send as variables to the request |
181 | 179 | * @param completeBlock JSONObjectBlock to execute upon completion |
182 | | - * @return JSON compliant object or nil |
183 | 180 | */ |
184 | 181 | +(void)postJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock; |
185 | 182 |
|
@@ -188,7 +185,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err); |
188 | 185 | * @param urlString the URL as a string |
189 | 186 | * @param bodyString the body of the POST request as a string |
190 | 187 | * @param completeBlock JSONObjectBlock to execute upon completion |
191 | | - * @return JSON compliant object or nil |
192 | 188 | */ |
193 | 189 | +(void)postJSONFromURLWithString:(NSString*)urlString bodyString:(NSString*)bodyString completion:(JSONObjectBlock)completeBlock; |
194 | 190 |
|
@@ -197,7 +193,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err); |
197 | 193 | * @param urlString the URL as a string |
198 | 194 | * @param bodyData the body of the POST request as an NSData object |
199 | 195 | * @param completeBlock JSONObjectBlock to execute upon completion |
200 | | - * @return JSON compliant object or nil |
201 | 196 | */ |
202 | 197 | +(void)postJSONFromURLWithString:(NSString*)urlString bodyData:(NSData*)bodyData completion:(JSONObjectBlock)completeBlock; |
203 | 198 |
|
|