-
Notifications
You must be signed in to change notification settings - Fork 1
/
ServiceCallingUtility.h
executable file
·40 lines (28 loc) · 1.15 KB
/
ServiceCallingUtility.h
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
33
34
35
36
37
38
39
40
//
// ServiceCallingUtility.h
// test
//
// Created by Minesh Purohit on 31/07/14.
// Copyright (c) 2014 MinuMaster. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ServiceParameter.h"
@protocol ServiceCallingUtilityDelegate <NSObject>
@optional
- (void) didFailedRequest:(NSString *) notification withError:(NSError *) error;
- (void) didSuccessRequest:(NSString *) notification withResponse:(NSString *) response;
- (void) didSendRequest:(NSString *) notification progressPercentage:(CGFloat) percentage;
@end
@interface ServiceCallingUtility : NSObject
{
NSMutableData * responseData;
NSString * notification;
BOOL isEnableDebugMode, sendDirectHTTPBody;
id <ServiceCallingUtilityDelegate> delegate;
long long _intRequestDataSize;
}
@property (nonatomic, retain) NSString * notificationName;
@property (nonatomic, readwrite) BOOL isEnableDebugMode, sendDirectHTTPBody;
@property (nonatomic, retain) id <ServiceCallingUtilityDelegate> delegate;
-(void) doWebserviceCall:(NSString *)action withPostVars:(NSArray *)post_vars withGetVars:(NSArray *)get_vars andNotificationName:(NSString *) notificationName;
@end