All Downloads are FREE. Search and download functionalities are using the official Maven repository.

objc.NIKApiInvoker.h Maven / Gradle / Ivy

There is a newer version: 2.0.14
Show newest version
#import 

@interface NIKApiInvoker : NSObject {
    
@private
    NSOperationQueue *_queue;
    NSMutableDictionary * _defaultHeaders;
}
@property(nonatomic, readonly) NSOperationQueue* queue;
@property(nonatomic, readonly) NSMutableDictionary * defaultHeaders;
@property(nonatomic, assign) NSURLRequestCachePolicy cachePolicy;

+ (NIKApiInvoker*)sharedInstance;

- (void)updateLoadCountWithDelta:(NSInteger)countDelta;
- (void)startLoad;
- (void)stopLoad;


-(void) addHeader:(NSString*)value forKey:(NSString*)key;

-(NSString*) escapeString:(NSString*) string;

-(void) dictionary: (NSString*) path
            method: (NSString*) method
       queryParams: (NSDictionary*) queryParams
              body: (id)body
      headerParams: (NSDictionary*) headerParams
       contentType: contentType
   completionBlock: (void (^)(NSDictionary*, NSError *))completionBlock;

-(void) stringWithCompletionBlock: (NSString*) path
                           method: (NSString*) method
                      queryParams: (NSDictionary*) queryParams
                             body: (id)body
                     headerParams: (NSDictionary*) headerParams
                      contentType: contentType
                  completionBlock: (void (^)(NSString*, NSError *))completionBlock;

@end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy