-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathJSONWebCommand.h
More file actions
32 lines (24 loc) · 1.01 KB
/
JSONWebCommand.h
File metadata and controls
32 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// JSONWebCommand.h
//
// Created by Jiva DeVoe on 9/22/10.
// Copyright (c) 2010 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface JSONWebCommand : NSObject
@property (strong, nonatomic) NSOperationQueue *parseOpQueue;
@property (assign, nonatomic) BOOL showsNetworkActivity;
@property (copy, nonatomic) void (^completionBlock)(id result);
@property (copy, nonatomic) void (^threadedCompletionBlock)(id result);
@property (copy, nonatomic) void (^failureBlock)(NSError *error);
@property (copy, nonatomic) void (^finallyBlock)(void);
@property (strong, nonatomic) NSString * commandStatus;
@property (strong, nonatomic) NSDictionary * resultDict;
@property (nonatomic, strong) NSMutableURLRequest *request;
@property (nonatomic, strong) NSURLConnection *connection;
@property (nonatomic, strong) NSMutableData *data;
-(id)initWithRequest:(NSURLRequest *)inRequest;
-(id)initForPostToUrl:(NSString *)inUrlString withParams:(NSDictionary *)inParams;
-(void)start;
-(void)cancel;
@end