Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Distinction between internal and public constants #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/LiveSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
52C47514149B38D1007E646F /* LiveOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D7146C7550000973C1 /* LiveOperation.m */; };
52C47515149B38D1007E646F /* LiveOperationProgress.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B4944C1487625C001EA573 /* LiveOperationProgress.m */; };
52C47518149B390F007E646F /* LiveAuthDialog.m in Sources */ = {isa = PBXBuildFile; fileRef = 5210CF951494445E00C525F3 /* LiveAuthDialog.m */; };
7455C6631B39FF5A008350C6 /* LiveInternalConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 7455C6611B39FF5A008350C6 /* LiveInternalConstants.h */; };
7455C6641B39FF5A008350C6 /* LiveInternalConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 7455C6621B39FF5A008350C6 /* LiveInternalConstants.m */; };
7455C6651B39FF63008350C6 /* LiveInternalConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 7455C6621B39FF5A008350C6 /* LiveInternalConstants.m */; };
7455C6671B39FF71008350C6 /* LiveConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 7455C6661B39FF71008350C6 /* LiveConstants.m */; };
7455C6681B39FF71008350C6 /* LiveConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 7455C6661B39FF71008350C6 /* LiveConstants.m */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -189,6 +194,9 @@
52F76E8F147A308500DA0A46 /* LiveApiHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LiveApiHelper.h; path = LiveSDK/Library/Internal/Helpers/LiveApiHelper.h; sourceTree = SOURCE_ROOT; };
52F76E90147A308500DA0A46 /* LiveApiHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LiveApiHelper.m; path = LiveSDK/Library/Internal/Helpers/LiveApiHelper.m; sourceTree = SOURCE_ROOT; };
52F76E94147A3FA500DA0A46 /* LiveAuthDialog_iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LiveAuthDialog_iPad.xib; path = Library/Internal/LiveAuthDialog_iPad.xib; sourceTree = "<group>"; };
7455C6611B39FF5A008350C6 /* LiveInternalConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LiveInternalConstants.h; path = Library/Internal/LiveInternalConstants.h; sourceTree = "<group>"; };
7455C6621B39FF5A008350C6 /* LiveInternalConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LiveInternalConstants.m; path = Library/Internal/LiveInternalConstants.m; sourceTree = "<group>"; };
7455C6661B39FF71008350C6 /* LiveConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LiveConstants.m; path = Library/Internal/LiveConstants.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -362,6 +370,8 @@
529DB6D1146C7550000973C1 /* LiveConnectSession.h */,
529DB6D2146C7550000973C1 /* LiveConnectSession.m */,
528518A61473BE78009E8BD6 /* LiveConnectSessionStatus.h */,
529DB6E7146C7645000973C1 /* LiveConstants.h */,
7455C6661B39FF71008350C6 /* LiveConstants.m */,
529DB6D3146C7550000973C1 /* LiveDownloadOperation.h */,
529DB6D4146C7550000973C1 /* LiveDownloadOperation.m */,
529DB6D5146C7550000973C1 /* LiveDownloadOperationDelegate.h */,
Expand Down Expand Up @@ -392,7 +402,8 @@
529DB712146F5809000973C1 /* LiveAuthRequest.m */,
529DB6EE146C7AEE000973C1 /* LiveConnectClientCore.h */,
529DB6EF146C7AEE000973C1 /* LiveConnectClientCore.m */,
529DB6E7146C7645000973C1 /* LiveConstants.h */,
7455C6611B39FF5A008350C6 /* LiveInternalConstants.h */,
7455C6621B39FF5A008350C6 /* LiveInternalConstants.m */,
52B494511488BDF4001EA573 /* LiveDownloadOperationCore.h */,
52B494521488BDF5001EA573 /* LiveDownloadOperationCore.m */,
52B4946B148B0FDF001EA573 /* LiveDownloadOperationInternal.h */,
Expand Down Expand Up @@ -435,6 +446,7 @@
5207541314987F440058A61E /* LiveAuthStorage.h in Headers */,
52851846147282C2009E8BD6 /* LiveConnectClientCore.h in Headers */,
52851848147282C2009E8BD6 /* LiveConstants.h in Headers */,
7455C6631B39FF5A008350C6 /* LiveInternalConstants.h in Headers */,
52A497E9149F178D0034BE79 /* LiveConnectionHelper.h in Headers */,
52A497EA149F178D0034BE79 /* LiveConnectionCreatorDelegate.h in Headers */,
5207541414987F440058A61E /* LiveDownloadOperationCore.h in Headers */,
Expand Down Expand Up @@ -567,7 +579,9 @@
52851850147282E8009E8BD6 /* LiveAuthRequest.m in Sources */,
52851851147282E8009E8BD6 /* LiveConnectClientCore.m in Sources */,
52851852147282E8009E8BD6 /* LiveOperationCore.m in Sources */,
7455C6641B39FF5A008350C6 /* LiveInternalConstants.m in Sources */,
52851854147282E8009E8BD6 /* JsonParser.m in Sources */,
7455C6681B39FF71008350C6 /* LiveConstants.m in Sources */,
52851855147282E8009E8BD6 /* JsonWriter.m in Sources */,
52851856147282E8009E8BD6 /* LiveAuthHelper.m in Sources */,
52851857147282E8009E8BD6 /* StringHelper.m in Sources */,
Expand All @@ -590,6 +604,7 @@
52C4750E149B38D1007E646F /* LiveDownloadOperationCore.m in Sources */,
52C4750F149B38D1007E646F /* LiveOperationCore.m in Sources */,
52C47510149B38D1007E646F /* LiveUploadOperationCore.m in Sources */,
7455C6671B39FF71008350C6 /* LiveConstants.m in Sources */,
52C47511149B38D1007E646F /* LiveConnectionHelper.m in Sources */,
52C47512149B38D1007E646F /* LiveConnectClient.m in Sources */,
52C47513149B38D1007E646F /* LiveDownloadOperation.m in Sources */,
Expand All @@ -611,6 +626,7 @@
52559D951506EC7100F0DF04 /* LiveConnectClientListener.m in Sources */,
52559D961506EC7100F0DF04 /* MockFactory.m in Sources */,
52559D971506EC7100F0DF04 /* MockResponse.m in Sources */,
7455C6651B39FF63008350C6 /* LiveInternalConstants.m in Sources */,
52559D981506EC7100F0DF04 /* MockUrlConnection.m in Sources */,
52559D991506EC7100F0DF04 /* StringHelperTests.m in Sources */,
52559D9A1506EC7100F0DF04 /* UrlHelperTests.m in Sources */,
Expand Down
1 change: 1 addition & 0 deletions src/LiveSDK/Library/Internal/Helpers/LiveApiHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#import "LiveAuthHelper.h"
#import "LiveApiHelper.h"
#import "LiveConstants.h"
#import "LiveInternalConstants.h"
#import "JsonParser.h"
#import "JsonWriter.h"
#import "UrlHelper.h"
Expand Down
3 changes: 0 additions & 3 deletions src/LiveSDK/Library/Internal/Helpers/LiveAuthHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,4 @@
+ (BOOL) shouldRefreshToken:(LiveConnectSession *)session
refreshToken:(NSString *)refreshToken;

+ (void) overrideLoginServer:(NSString *)loginServer
apiServer:(NSString *)apiServer;

@end
14 changes: 2 additions & 12 deletions src/LiveSDK/Library/Internal/Helpers/LiveAuthHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@

#import <UIKit/UIKit.h>
#import "LiveAuthHelper.h"
#import "LiveConstants.h"
#import "LiveConnectSession.h"
#import "LiveConstants.h"
#import "LiveInternalConstants.h"
#import "JsonParser.h"
#import "StringHelper.h"
#import "UrlHelper.h"

NSString * LIVE_ENDPOINT_API_HOST = @"apis.live.net";
NSString * LIVE_ENDPOINT_LOGIN_HOST = @"login.live.com";

@implementation LiveAuthHelper

+ (NSBundle *) getSDKBundle
Expand Down Expand Up @@ -265,12 +263,4 @@ + (BOOL) shouldRefreshToken:(LiveConnectSession *)session
}
}

+ (void) overrideLoginServer:(NSString *)loginServer
apiServer:(NSString *)apiServer

{
LIVE_ENDPOINT_LOGIN_HOST = loginServer;
LIVE_ENDPOINT_API_HOST = apiServer;
}

@end
1 change: 1 addition & 0 deletions src/LiveSDK/Library/Internal/LiveAuthRefreshRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#import "LiveAuthHelper.h"
#import "LiveAuthRefreshRequest.h"
#import "LiveConnectionHelper.h"
#import "LiveConstants.h"
#import "StringHelper.h"

@implementation LiveAuthRefreshRequest
Expand Down
2 changes: 1 addition & 1 deletion src/LiveSDK/Library/Internal/LiveAuthStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


#import "LiveAuthStorage.h"
#import "LiveConstants.h"
#import "LiveInternalConstants.h"

@interface LiveAuthStorage()

Expand Down
2 changes: 1 addition & 1 deletion src/LiveSDK/Library/Internal/LiveConnectClientCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#import "LiveAuthRefreshRequest.h"
#import "LiveAuthStorage.h"
#import "LiveConnectSession.h"
#import "LiveConstants.h"
#import "LiveDownloadOperationCore.h"
#import "LiveDownloadOperationDelegate.h"
#import "LiveInternalConstants.h"
#import "LiveOperationCore.h"
#import "LiveOperationDelegate.h"
#import "LiveUploadOperationDelegate.h"
Expand Down
100 changes: 31 additions & 69 deletions src/LiveSDK/Library/Internal/LiveConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,72 +26,34 @@

#import <Foundation/Foundation.h>

extern NSString * LIVE_ENDPOINT_API_HOST;
extern NSString * LIVE_ENDPOINT_LOGIN_HOST;

static const NSTimeInterval HTTP_REQUEST_TIMEOUT_INTERVAL = 30;

static const NSTimeInterval LIVE_AUTH_EXPIRE_VALUE_ADJUSTMENT = 3;
static const NSTimeInterval LIVE_AUTH_REFRESH_TIME_BEFORE_EXPIRE = 30;

static NSString * const LIVE_API_HEADER_AUTHORIZATION = @"Authorization";
static NSString * const LIVE_API_HEADER_CONTENTTYPE = @"Content-Type";
static NSString * const LIVE_API_HEADER_METHOD = @"method";
static NSString * const LIVE_API_HEADER_CONTENTTYPE_JSON = @"application/json;charset=UTF-8";
static NSString * const LIVE_API_HEADER_X_HTTP_LIVE_LIBRARY = @"X-HTTP-Live-Library";
static NSString * const LIVE_API_PARAM_OVERWRITE = @"overwrite";
static NSString * const LIVE_API_PARAM_SUPPRESS_REDIRECTS = @"suppress_redirects";
static NSString * const LIVE_API_PARAM_SUPPRESS_RESPONSE_CODES = @"suppress_response_codes";

static NSString * const LIVE_AUTH_ACCESS_TOKEN = @"access_token";
static NSString * const LIVE_AUTH_AUTHENTICATION_TOKEN = @"authentication_token";
static NSString * const LIVE_AUTH_CODE = @"code";
static NSString * const LIVE_AUTH_CLIENTID = @"client_id";
static NSString * const LIVE_AUTH_DISPLAY = @"display";
static NSString * const LIVE_AUTH_DISPLAY_IOS_PHONE = @"ios_phone";
static NSString * const LIVE_AUTH_DISPLAY_IOS_TABLET = @"ios_tablet";
static NSString * const LIVE_AUTH_GRANT_TYPE = @"grant_type";
static NSString * const LIVE_AUTH_GRANT_TYPE_AUTHCODE = @"authorization_code";
static NSString * const LIVE_AUTH_LOCALE = @"locale";
static NSString * const LIVE_AUTH_REDIRECT_URI = @"redirect_uri";
static NSString * const LIVE_AUTH_REFRESH_TOKEN = @"refresh_token";
static NSString * const LIVE_AUTH_RESPONSE_TYPE = @"response_type";
static NSString * const LIVE_AUTH_SCOPE = @"scope";
static NSString * const LIVE_AUTH_THEME = @"theme";
static NSString * const LIVE_AUTH_THEME_IOS = @"ios";
static NSString * const LIVE_AUTH_TOKEN = @"token";

static NSString * const LIVE_AUTH_POST_CONTENT_TYPE = @"application/x-www-form-urlencoded;charset=UTF-8";
static NSString * const LIVE_AUTH_EXPIRES_IN = @"expires_in";

static const NSInteger LIVE_ERROR_CODE_LOGIN_FAILED = 1;
static const NSInteger LIVE_ERROR_CODE_LOGIN_CANCELED = 2;
static const NSInteger LIVE_ERROR_CODE_RETRIEVE_TOKEN_FAILED = 3;
static const NSInteger LIVE_ERROR_CODE_API_CANCELED = 4;
static const NSInteger LIVE_ERROR_CODE_API_FAILED = 5;

static NSString * const LIVE_ERROR_CODE_S_ACCESS_DENIED = @"access_denied";
static NSString * const LIVE_ERROR_CODE_S_INVALID_GRANT = @"invalid_grant";
static NSString * const LIVE_ERROR_CODE_S_REQUEST_CANCELED = @"request_canceled";
static NSString * const LIVE_ERROR_CODE_S_REQUEST_FAILED = @"request_failed";
static NSString * const LIVE_ERROR_CODE_S_RESPONSE_PARSING_FAILED = @"response_parse_failure";

static NSString * const LIVE_ERROR_DESC_API_CANCELED = @"The request was canceled.";
static NSString * const LIVE_ERROR_DESC_AUTH_CANCELED = @"The user has canceled the authorization request.";
static NSString * const LIVE_ERROR_DESC_AUTH_FAILED = @"The authorization request failed to complete.";
static NSString * const LIVE_ERROR_DESC_MISSING_PARAMETER = @"The parameter '%@' must be specified when calling '%@'.";
static NSString * const LIVE_ERROR_DESC_MUST_INIT = @"The LiveConnectClient instance must be initialized before being used.";
static NSString * const LIVE_ERROR_DESC_PENDING_LOGIN_EXIST = @"There is already a pending login request.";
static NSString * const LIVE_ERROR_DESC_REQUIRE_RELATIVE_PATH = @"The 'path' parameter must be a relative path when calling '%@'.";
static NSString * const LIVE_ERROR_DESC_UPLOAD_FAIL_QUERY = @"Failed to query upload location.";

static NSString * const LIVE_ERROR_DOMAIN = @"LiveServicesErrorDomain";
static NSString * const LIVE_ERROR_KEY_ERROR = @"error";
static NSString * const LIVE_ERROR_KEY_DESCRIPTION = @"error_description";
static NSString * const LIVE_ERROR_KEY_CODE = @"code";
static NSString * const LIVE_ERROR_KEY_MESSAGE = @"message";
static NSString * const LIVE_ERROR_KEY_INNER_ERROR = @"internal_error";

static NSString * const LIVE_EXCEPTION = @"LiveException";

static NSString * const LIVE_SDK_VERSION = @"5.0";
extern NSInteger const LIVE_ERROR_CODE_LOGIN_FAILED;
extern NSInteger const LIVE_ERROR_CODE_LOGIN_CANCELED;
extern NSInteger const LIVE_ERROR_CODE_RETRIEVE_TOKEN_FAILED;
extern NSInteger const LIVE_ERROR_CODE_API_CANCELED;
extern NSInteger const LIVE_ERROR_CODE_API_FAILED;

extern NSString * const LIVE_ERROR_CODE_S_ACCESS_DENIED;
extern NSString * const LIVE_ERROR_CODE_S_INVALID_GRANT;
extern NSString * const LIVE_ERROR_CODE_S_REQUEST_CANCELED;
extern NSString * const LIVE_ERROR_CODE_S_REQUEST_FAILED;
extern NSString * const LIVE_ERROR_CODE_S_RESPONSE_PARSING_FAILED;

extern NSString * const LIVE_ERROR_DESC_API_CANCELED;
extern NSString * const LIVE_ERROR_DESC_AUTH_CANCELED;
extern NSString * const LIVE_ERROR_DESC_AUTH_FAILED;
extern NSString * const LIVE_ERROR_DESC_MISSING_PARAMETER;
extern NSString * const LIVE_ERROR_DESC_MUST_INIT;
extern NSString * const LIVE_ERROR_DESC_PENDING_LOGIN_EXIST;
extern NSString * const LIVE_ERROR_DESC_REQUIRE_RELATIVE_PATH;
extern NSString * const LIVE_ERROR_DESC_UPLOAD_FAIL_QUERY;

extern NSString * const LIVE_ERROR_DOMAIN;
extern NSString * const LIVE_ERROR_KEY_ERROR;
extern NSString * const LIVE_ERROR_KEY_DESCRIPTION;
extern NSString * const LIVE_ERROR_KEY_CODE;
extern NSString * const LIVE_ERROR_KEY_MESSAGE;
extern NSString * const LIVE_ERROR_KEY_INNER_ERROR;

extern NSString * const LIVE_EXCEPTION;

extern NSString * const LIVE_SDK_VERSION;
59 changes: 59 additions & 0 deletions src/LiveSDK/Library/Internal/LiveConstants.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
//
// LiveConstants.m
// Live SDK for iOS
//
// Copyright 2015 Microsoft Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//


#import <Foundation/Foundation.h>

NSInteger const LIVE_ERROR_CODE_LOGIN_FAILED = 1;
NSInteger const LIVE_ERROR_CODE_LOGIN_CANCELED = 2;
NSInteger const LIVE_ERROR_CODE_RETRIEVE_TOKEN_FAILED = 3;
NSInteger const LIVE_ERROR_CODE_API_CANCELED = 4;
NSInteger const LIVE_ERROR_CODE_API_FAILED = 5;

NSString * const LIVE_ERROR_CODE_S_ACCESS_DENIED = @"access_denied";
NSString * const LIVE_ERROR_CODE_S_INVALID_GRANT = @"invalid_grant";
NSString * const LIVE_ERROR_CODE_S_REQUEST_CANCELED = @"request_canceled";
NSString * const LIVE_ERROR_CODE_S_REQUEST_FAILED = @"request_failed";
NSString * const LIVE_ERROR_CODE_S_RESPONSE_PARSING_FAILED = @"response_parse_failure";

NSString * const LIVE_ERROR_DESC_API_CANCELED = @"The request was canceled.";
NSString * const LIVE_ERROR_DESC_AUTH_CANCELED = @"The user has canceled the authorization request.";
NSString * const LIVE_ERROR_DESC_AUTH_FAILED = @"The authorization request failed to complete.";
NSString * const LIVE_ERROR_DESC_MISSING_PARAMETER = @"The parameter '%@' must be specified when calling '%@'.";
NSString * const LIVE_ERROR_DESC_MUST_INIT = @"The LiveConnectClient instance must be initialized before being used.";
NSString * const LIVE_ERROR_DESC_PENDING_LOGIN_EXIST = @"There is already a pending login request.";
NSString * const LIVE_ERROR_DESC_REQUIRE_RELATIVE_PATH = @"The 'path' parameter must be a relative path when calling '%@'.";
NSString * const LIVE_ERROR_DESC_UPLOAD_FAIL_QUERY = @"Failed to query upload location.";

NSString * const LIVE_ERROR_DOMAIN = @"LiveServicesErrorDomain";
NSString * const LIVE_ERROR_KEY_ERROR = @"error";
NSString * const LIVE_ERROR_KEY_DESCRIPTION = @"error_description";
NSString * const LIVE_ERROR_KEY_CODE = @"code";
NSString * const LIVE_ERROR_KEY_MESSAGE = @"message";
NSString * const LIVE_ERROR_KEY_INNER_ERROR = @"internal_error";

NSString * const LIVE_EXCEPTION = @"LiveException";

NSString * const LIVE_SDK_VERSION = @"5.6.2";
65 changes: 65 additions & 0 deletions src/LiveSDK/Library/Internal/LiveInternalConstants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
//
// LiveInternalConstants.h
// Live SDK for iOS
//
// Copyright 2015 Microsoft Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//


#import <Foundation/Foundation.h>

extern NSString * const LIVE_ENDPOINT_API_HOST;
extern NSString * const LIVE_ENDPOINT_LOGIN_HOST;

extern NSTimeInterval const HTTP_REQUEST_TIMEOUT_INTERVAL;

extern NSTimeInterval const LIVE_AUTH_EXPIRE_VALUE_ADJUSTMENT;
extern NSTimeInterval const LIVE_AUTH_REFRESH_TIME_BEFORE_EXPIRE;

extern NSString * const LIVE_API_HEADER_AUTHORIZATION;
extern NSString * const LIVE_API_HEADER_CONTENTTYPE;
extern NSString * const LIVE_API_HEADER_METHOD;
extern NSString * const LIVE_API_HEADER_CONTENTTYPE_JSON;
extern NSString * const LIVE_API_HEADER_X_HTTP_LIVE_LIBRARY;
extern NSString * const LIVE_API_PARAM_OVERWRITE;
extern NSString * const LIVE_API_PARAM_SUPPRESS_REDIRECTS;
extern NSString * const LIVE_API_PARAM_SUPPRESS_RESPONSE_CODES;

extern NSString * const LIVE_AUTH_ACCESS_TOKEN;
extern NSString * const LIVE_AUTH_AUTHENTICATION_TOKEN;
extern NSString * const LIVE_AUTH_CODE;
extern NSString * const LIVE_AUTH_CLIENTID;
extern NSString * const LIVE_AUTH_DISPLAY;
extern NSString * const LIVE_AUTH_DISPLAY_IOS_PHONE;
extern NSString * const LIVE_AUTH_DISPLAY_IOS_TABLET;
extern NSString * const LIVE_AUTH_GRANT_TYPE;
extern NSString * const LIVE_AUTH_GRANT_TYPE_AUTHCODE;
extern NSString * const LIVE_AUTH_LOCALE;
extern NSString * const LIVE_AUTH_REDIRECT_URI;
extern NSString * const LIVE_AUTH_REFRESH_TOKEN;
extern NSString * const LIVE_AUTH_RESPONSE_TYPE;
extern NSString * const LIVE_AUTH_SCOPE;
extern NSString * const LIVE_AUTH_THEME;
extern NSString * const LIVE_AUTH_THEME_IOS;
extern NSString * const LIVE_AUTH_TOKEN;

extern NSString * const LIVE_AUTH_POST_CONTENT_TYPE;
extern NSString * const LIVE_AUTH_EXPIRES_IN;
Loading