GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix document error. · snowmap/JSONModel@2fee44b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • JSONModel
    • JSONModelNetworking
      • JSONAPI.h
      • JSONHTTPClient.h
    • JSONModel
      • JSONModel.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎JSONModel/JSONModel/JSONModel.h‎

Copy file name to clipboardExpand all lines: JSONModel/JSONModel/JSONModel.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
7777
* For most classes the default initWithDictionary: inherited from JSONModel itself
7878
* should suffice, but developers have the option ot also overwrite it if needed.
7979
*
80-
* @param d a dictionary holding JSON objects, to be imported in the model.
80+
* @param dict a dictionary holding JSON objects, to be imported in the model.
8181
* @param err an error or NULL
8282
*/
8383
-(instancetype)initWithDictionary:(NSDictionary*)dict error:(NSError**)err;
Collapse file

‎JSONModel/JSONModelNetworking/JSONAPI.h‎

Copy file name to clipboardExpand all lines: JSONModel/JSONModelNetworking/JSONAPI.h
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
* @param path the URL path to add to the base API URL for this HTTP call
6060
* @param params the variables to pass to the API
6161
* @param completeBlock a JSONObjectBlock block to execute upon completion
62-
* @return the JSON response as desrialized object
6362
*/
6463
+(void)getWithPath:(NSString*)path andParams:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock;
6564

@@ -80,7 +79,6 @@
8079
* @param path the URL path to add to the base API URL for this HTTP call
8180
* @param params the variables to pass to the API
8281
* @param completeBlock a JSONObjectBlock block to execute upon completion
83-
* @return the JSON response as desrialized object
8482
*/
8583
+(void)postWithPath:(NSString*)path andParams:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock;
8684

@@ -101,7 +99,6 @@
10199
* @param method the HTTP method name; GET or POST only
102100
* @param args the list of arguments to pass to the API
103101
* @param completeBlock JSONObjectBlock to execute upon completion
104-
* @return the JSON response as desrialized object
105102
*/
106103
+(void)rpcWithMethodName:(NSString*)method andArguments:(NSArray*)args completion:(JSONObjectBlock)completeBlock;
107104

Collapse file

‎JSONModel/JSONModelNetworking/JSONHTTPClient.h‎

Copy file name to clipboardExpand all lines: JSONModel/JSONModelNetworking/JSONHTTPClient.h
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern NSString* const kContentTypeWWWEncoded;
3737
* you receive back the initialized model (or nil) and an error (or nil)
3838
*
3939
* @param model the newly created JSONModel instance or nil
40-
* @param e JSONModelError or nil
40+
* @param err JSONModelError or nil
4141
*/
4242
typedef void (^JSONModelBlock)(JSONModel* model, JSONModelError* err);
4343

@@ -158,7 +158,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err);
158158
* Makes GET request to the given URL address and fetches a JSON response.
159159
* @param urlString the URL as a string
160160
* @param completeBlock JSONObjectBlock to execute upon completion
161-
* @return JSON compliant object or nil
162161
*/
163162
+(void)getJSONFromURLWithString:(NSString*)urlString completion:(JSONObjectBlock)completeBlock;
164163

@@ -167,7 +166,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err);
167166
* @param urlString the URL as a string
168167
* @param params a dictionary of key / value pairs to be send as variables to the request
169168
* @param completeBlock JSONObjectBlock to execute upon completion
170-
* @return JSON compliant object or nil
171169
*/
172170
+(void)getJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock;
173171

@@ -179,7 +177,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err);
179177
* @param urlString the URL as a string
180178
* @param params a dictionary of key / value pairs to be send as variables to the request
181179
* @param completeBlock JSONObjectBlock to execute upon completion
182-
* @return JSON compliant object or nil
183180
*/
184181
+(void)postJSONFromURLWithString:(NSString*)urlString params:(NSDictionary*)params completion:(JSONObjectBlock)completeBlock;
185182

@@ -188,7 +185,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err);
188185
* @param urlString the URL as a string
189186
* @param bodyString the body of the POST request as a string
190187
* @param completeBlock JSONObjectBlock to execute upon completion
191-
* @return JSON compliant object or nil
192188
*/
193189
+(void)postJSONFromURLWithString:(NSString*)urlString bodyString:(NSString*)bodyString completion:(JSONObjectBlock)completeBlock;
194190

@@ -197,7 +193,6 @@ typedef void (^JSONObjectBlock)(NSDictionary* json, JSONModelError* err);
197193
* @param urlString the URL as a string
198194
* @param bodyData the body of the POST request as an NSData object
199195
* @param completeBlock JSONObjectBlock to execute upon completion
200-
* @return JSON compliant object or nil
201196
*/
202197
+(void)postJSONFromURLWithString:(NSString*)urlString bodyData:(NSData*)bodyData completion:(JSONObjectBlock)completeBlock;
203198

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.