//
//  Constant.h
//  Apex Mobile
//
//  Created by Ray on 14-3-1.
//  Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
//

#ifdef DEBUG
#define DebugLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#else
#define DebugLog( s, ... )
#endif


#import <Foundation/Foundation.h>



#define  URL_UPDATE_AUTH  @"https://ra.apexshipping.com/login.php"
#define URL_REQUEST_COUNT @"https://ra.apexshipping.com/main.php"
#define URL_REQUEST_RECORDS @"https://ra.apexshipping.com/main.php"
#define URL_RETRIEVE_PASS @"https://ra.apexshipping.com/main.php"
#define URL_REQUEST_DETAIL @"https://ra.apexshipping.com/main.php"
#define URL_ANNOUNCEMENTS @"https://ra.apexshipping.com/mobile_news.php"
#define URL_NEWS	@"https://ra.apexshipping.com/mobile_news.php"
#define URL_LOCATIONS @"https://ra.apexshipping.com/mobile_news.php"
#define URL_PUSH @"https://ra.apexshipping.com/main.php"
#define COLOR(R,G,B,A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]


#define RESULT_NET_NOTAVAILABLE -4
#define RESULT_NET_ERROR -3
#define RESULT_FALSE 0
#define RESULT_VER_LOW -15
extern const int MAX_ROW;
extern const int MAX_COLUMN;


extern const int		BEHAVIOR_SEARCH;
extern const int		BEHAVIOR_RESULT;


extern const int			AP_USER_AUTH;
extern const int			AP_USER_NOT_AUTH;
extern const int			AP_USER_NOT_EXIST;
extern const int			AP_SESSION_EXPIRED;

extern const int			AP_MESSAGE_NEW;
extern const int			AP_MESSAGE_NONE;


//extern const int		RESULT_FALSE;
extern const int		RESULT_TRUE;
//
//extern const int		RESULT_NET_ERROR;
//extern const int		RESULT_NET_NOTAVAILABLE;
extern const int		RESULT_ERROR;
extern const int		RESULT_LOCALFILE_ERROR;
extern const int		RESULT_USERAUTH_ERROR;
extern const int		RESULT_UPDATE_USERAUTH_ERROR;
extern const int		RESULT_SESSION_EXPIRED;
//extern const int        RESULT_VER_LOW;

//extern const NSString* URL_UPDATE_AUTH;
//extern const NSString* URL_REQUEST_COUNT;
//extern const NSString* URL_REQUEST_RECORDS;
//extern const NSString* URL_RETRIEVE_PASS;
//extern const NSString* URL_REQUEST_DETAIL;

@interface Constant : NSObject

@end
