9 #import <Foundation/Foundation.h>
10 #import <UIKit/UIKit.h>
13 #define AMNotificationAuthenticateSuccess @"AMNotificationAuthenticateSuccess"
14 #define AMNotificationSessionInvalid @"AMNotificationSessionInvalid"
15 #define AMNotificationSendErrorReport @"AMNotificationSendErrorReport"
33 typedef void (^AMDataBlock)(
id *data);
36 extern BOOL authenticateWaiting;
38 @protocol AMProgressDelegate;
65 @property (nonatomic, retain) NSDictionary *
amParams;
121 @property (nonatomic, assign, setter = setAmOwnerView:) UIView *
amOwnerView;
136 @property (nonatomic) NSInteger
tag;
150 - (id)initWithPath: (NSString *)servicePath urlParams: (NSDictionary *)params httpMethod: (HTTP_METHOD)httpMethod;
178 - (id)fetchWithData: (NSData *)data error: (AMErrorBlock)errorBlock;
207 - (
AMRequest *)sendRequestWithData: (NSString *)data attachments:(NSDictionary *) attachments requestDelegate: (
id<
AMRequestDelegate>)requestDelegate;
253 - (
AMRequest*)downloadAttachment:(NSString *) postData localFile:(NSString *) localFile requestDelegate:(
id<
AMRequestDelegate>) requestDelegate;
264 - (void) setProgressLabelText:(NSString *) labelText;
291 - (void)amRequestStarted: (
AMRequest *)request;
298 - (void)amRequest: (
AMRequest *)request didReceiveResponse: (NSDictionary *)httpHeaders;
316 - (void)amRequest: (
AMRequest *)request didLoad: (
id)result;
325 - (void)amRequest: (
AMRequest *)request receivedBytes: (
long long)bytes total: (
long long)total;
332 - (void)amRequest: (
AMRequest *)request sendBytes: (
long long)bytes;
AMErrorBlock amErrorBlock
Definition: AMRequest.h:89
NSDictionary * amParams
Definition: AMRequest.h:65
NSString * amUploadDestinationPath
Definition: AMRequest.h:113
UIView * amOwnerView
Definition: AMRequest.h:121
Definition: AMRequest.h:42
HTTP_METHOD amHttpMethod
Definition: AMRequest.h:73
AMDataBlock amCompletionBlock
Definition: AMRequest.h:97
NSDictionary * userProfile
Definition: AMRequest.h:129
NSString * amDownloadDestinationPath
Definition: AMRequest.h:105
long amTimeOutSeconds
Definition: AMRequest.h:81
NSString * amServiceURL
Definition: AMRequest.h:57
NSInteger tag
Definition: AMRequest.h:136
Definition: AMRequest.h:282
id< AMRequestDelegate > amRequestDelegate
Definition: AMRequest.h:49