No Description

TBSDKMTOPEnvConfig.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // TBSDKMTOPEnvConfig.h
  3. // MtopSDK
  4. //
  5. // Created by Roger on 11/27/14.
  6. // Copyright (c) 2014 mtop. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define MTOP_REQUEST_SECURITY_CONTROL @"Security_control"
  10. /** TBSDK环境设置 */
  11. typedef enum
  12. {
  13. environmentDebug = 1, /**< 枚举,预发环境 */
  14. environmentDaily, /**< 枚举,日常环境 */
  15. // environmentDailyTwo, /**< 枚举,日常二套环境 */
  16. environmentRelease /**< 枚举,正式环境 */
  17. }MtopEnvironment;
  18. @interface TBSDKMTOPEnvConfig : NSObject
  19. @property (nonatomic, strong) NSString *appkey;
  20. @property (nonatomic, strong) NSString *appSecret;
  21. @property (nonatomic, strong) NSString *uid;
  22. @property (atomic) BOOL isWhiteSecurity;
  23. @property (nonatomic) MtopEnvironment environment;
  24. //@property (strong, nonatomic) NSString* gatewayDomain;
  25. //@property (nonatomic, strong) NSString *customMtopRequestURL;
  26. @property (nonatomic, strong) NSString *authCode;
  27. + (id)shareInstance;
  28. - (NSString *)appkey;
  29. - (NSString *)readUtdid;
  30. + (NSString *)urlEncodeString:(NSString *) string;
  31. @end