Okechi Onyeje 031a354996 Ebay Listing Now Posts both information and single image
need to rework on categories since subcategory workflow added some complications, but that will be taken care of in a bug fix task
2016-08-23 13:48:34 -04:00

61 lines
1.8 KiB
Objective-C

//
// PicoXMLClient.h
// Pico
//
// Created by bulldog on 13-3-18.
// Copyright (c) 2013 LeanSoft Technology. All rights reserved.
//
#import <AFNetworking/AFNetworking.h>
#import "PicoBindable.h"
#import "PicoXMLRequestOperation.h"
#import "PicoConfig.h"
@interface PicoXMLClient : AFHTTPRequestOperationManager
/**
Target endpoint url, mandatory
*/
@property (readonly, nonatomic, strong) NSURL *endpointURL;
/**
Should request/response be output for debugging
*/
@property (readwrite, nonatomic, assign) BOOL debug;
/**
Configurations like encoding, date/number formatter, etc.
Defaults will be used if not set explicitly.
*/
@property (readwrite, nonatomic, strong) PicoConfig *config;
/**
Additional parameters that will be appended as query string at the end of the request url
*/
@property (readwrite, nonatomic, strong) NSMutableDictionary *additionalParameters;
/**
HTTP request timeout settting
*/
@property (readwrite, nonatomic, assign) NSTimeInterval timeoutInverval;
/**
*/
- (instancetype)initWithEndpointURL:(NSURL *)URL NS_DESIGNATED_INITIALIZER;
- (void) setDefaultHeader:(NSString*)header value:(NSString*)value;
- (PicoXMLRequestOperation *)PicoXMLRequestOperationWithRequest:(NSURLRequest *)request
success:(void (^)(PicoXMLRequestOperation *operation, id responseObject))success
failure:(void (^)(PicoXMLRequestOperation *operation, NSError *error))failure;
/**
*/
- (void)invoke:(id<PicoBindable>)requestObject responseClass:(Class)responseClazz
success:(void (^)(PicoXMLRequestOperation *operation, id<PicoBindable> responseObject))success
failure:(void (^)(PicoXMLRequestOperation *operation, NSError *error))failure;
@end