Created
March 3, 2014 06:32
-
-
Save sag333ar/9319519 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import "_01_API_Authenticate.h" | |
#import "_02_API_Register.h" | |
#import "_03_API_RegisterSocial.h" | |
#import "_04_API_ForgotPassword.h" | |
#define kAPI_Request_email @"email" | |
#define kAPI_Request_mobile @"mobile" | |
#define kAPI_Request_password @"password" | |
#define kAPI_Request_user_id @"user_id" | |
#define kAPI_Request_device_type @"device_type" | |
#define kAPI_Request_session_id @"session_id" | |
#define kAPI_Request_lat @"lat" | |
#define kAPI_Request_lng @"lng" | |
#define kAPI_Request_language_id @"language_id" | |
#define kAPI_Request_device_token @"device_token" | |
#define kAPI_Request_device_device_type @"device_type" | |
#define kAPI_Request_device_display_width @"device_display_width" | |
#define kAPI_Request_device_display_height @"device_display_height" | |
#define kAPI_Request_page_no @"page_no" | |
#define kAPI_Request_page_size @"page_size" | |
// response | |
#define kAPI_Response_success @"success" | |
#define kAPI_Response_error_msg @"error_msg" | |
#define kAPI_Response_error_code @"error_code" | |
#define kAPI_Response_data @"data" | |
// local | |
#define k_LOCAL_UserProfile_Path [DOC_DIR stringByAppendingPathComponent:@"user_profile_basic.plist"] | |
typedef void (^completionHandler)(NSDictionary *dOfResponse,NSString *error); | |
typedef void (^imageCompletionHandler)(UIImage *image, NSError *error); | |
// 00 Cache & get image | |
void _00_Image_Request(NSString *strImageURL, imageCompletionHandler imageCompletionHandler); | |
// 01 API Authenticate | |
void _01_API_Request_Authenticate(NSString *strEmail, NSString *strMobile, NSString *strPassword, NSString *lat, NSString *lng, NSString *languageid, completionHandler completionHandler); | |
// 02 API Register | |
void _02_API_Request_Register(NSString *strName, NSString *strEmail, NSString *strMobile, NSString *strPassword, NSString *lat, NSString *lng, NSString *langId, completionHandler completionHandler); | |
// 03 API Register via social | |
void _03_API_Request_RegisterSocial(NSString* socialID, NSString *socialType, NSString *strName, NSString *strEmail, NSString *strMobile, NSString *lat, NSString *lng, NSString *langId, completionHandler completionHandler); | |
// 04 API Forgot Password | |
void _04_API_Request_ForgotPassword(NSString *strEmail, completionHandler completionHandler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment