BaiduMap_IOSSDK_v7.2.0_Docs 7.2.0

BMKAuthorizeServiceModel.h
浏览该文件的文档.
1 //
2 // BMKAuthorizeServiceModel.h
3 // BaiduMapAPI_WalkNavi
4 //
5 // Created by zhaoxiangru on 2023/12/22.
6 // Copyright © 2023 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 NS_ASSUME_NONNULL_BEGIN
12 typedef NS_ENUM(NSUInteger, BMKAuthorizeServiceType) {
13 BMKAuthorizeServiceTypeALL = 0,
14 BMKAuthorizeServiceTypeNaviMulti = 1,
15 BMKAuthorizeServiceTypeNaviGuideInfo = 2,
16 };
17
19 typedef NS_ENUM(NSUInteger, BMKLicenseRequestErrorCode) {
20 BMK_LICENSE_REQUEST_NO_ERROR = 0,
21 BMK_LICENSE_REQUEST_INNER_ERROR,
22 BMK_LICENSE_REQUEST_PARAMETER_ERROR,
23 BMK_LICENSE_REQUEST_MODE_ERROR = 3,
24 BMK_LICENSE_REQUEST_TIME_INVALID = 7,
25 BMK_LICENSE_REQUEST_SIGN_INVALID = 8,
26 BMK_LICENSE_REQUEST_TOKEN_INVALID = 9,
27 BMK_LICENSE_REQUEST_AK_INVALID = 10,
28 BMK_LICENSE_REQUEST_COMPANY_ID_INVALID = 11,
29 BMK_LICENSE_REQUEST_NETWOKR_ERROR = 100,
30 BMK_LICENSE_REQUEST_NETWOKR_TIMEOUT,
31 BMK_LICENSE_REQUEST_SERVER_ERROR,
32 BMK_LICENSE_REQUEST_UNKNOWN_ERROR = 1000,
33 BMK_LICENSE_REQUEST_Multi_SERVER_ERROR = 1007
34 };
35
37 typedef NS_ENUM(NSUInteger, BMKLicenseServiceErrorCode) {
38 BMK_LICENSE_SERVICE_NO_ERROR = 0,
39 BMK_LICENSE_SERVICE_INNER_ERROR,
40 BMK_LICENSE_SERVICE_PARAMETER_ERROR,
41 BMK_LICENSE_SERVICE_MODE_ERROR = 3,
42 BMK_LICENSE_SERVICE_NO_QUOTA,
43 BMK_LICENSE_SERVICE_QUOTA_NO_ENOUGH,
44 BMK_LICENSE_SERVICE_QUOTA_INVALID = 6,
45 BMK_LICENSE_SERVICE_TIME_INVALID = 7,
46 BMK_LICENSE_SERVICE_SIGN_INVALID = 8,
47 BMK_LICENSE_SERVICE_TOKEN_INVALID = 9,
48 BMK_LICENSE_SERVICE_AK_INVALID = 10,
49 BMK_LICENSE_SERVICE_COMPANY_ID_INVALID = 11,
50 BMK_LICENSE_SERVICE_NO_ACTIVE = 12,
51 BMK_LICENSE_SERVICE_UNKNOWN_ERROR = 1000,
52 };
53
54 @interface BMKAuthorizeUserInfo : NSObject
56 @property(nonatomic, copy, readonly) NSString *ak;
58 @property(nonatomic, copy, nullable) NSString *deviceID;
59 @end
60
61 @interface BMKAuthorizeServiceStatus : NSObject
63 @property(nonatomic, assign) BMKAuthorizeServiceType authorizeServiceType;
65 @property(nonatomic, assign) NSInteger authorizeStatus;
67 @property(nonatomic, assign) BOOL licenseVerification;
68 @end
69
70 @interface BMKAuthorizeServiceError : NSObject
72 @property(nonatomic, assign) BMKAuthorizeServiceType authorizeServiceType;
74 @property(nonatomic, assign) BMKLicenseServiceErrorCode authorizeErrorCode;
76 @property(nonatomic, copy) NSString *authorizeErrorMessage;
77 @end
78
79 @interface BMKAuthorizeServiceResult : NSObject
81 @property(nonatomic, strong) NSArray<BMKAuthorizeServiceStatus *> *authorizeServiceStatus;
83 @property(nonatomic, strong) NSArray< BMKAuthorizeServiceError *> *authorizeServiceErrors;
84 @end
85
86 typedef void(^BMKAuthorizeCompletionBlock)(BMKLicenseRequestErrorCode errorCode, BMKAuthorizeServiceResult* _Nullable result);
87
88 NS_ASSUME_NONNULL_END
BMKAuthorizeServiceResult
Definition: BMKAuthorizeServiceModel.h:80
BMKAuthorizeUserInfo::deviceID
NSString * deviceID
设备ID信息，默认为BMKCommonInfo中的互联设备ID信息shareDeviceID
Definition: BMKAuthorizeServiceModel.h:58
BMKAuthorizeServiceStatus
Definition: BMKAuthorizeServiceModel.h:62
BMKAuthorizeCompletionBlock
void(^ BMKAuthorizeCompletionBlock)(BMKLicenseRequestErrorCode errorCode, BMKAuthorizeServiceResult *_Nullable result)
Definition: BMKAuthorizeServiceModel.h:86
BMKAuthorizeUserInfo::ak
NSString * ak
AK信息，默认为SDK鉴权时传入的AK
Definition: BMKAuthorizeServiceModel.h:56
BMKAuthorizeUserInfo
Definition: BMKAuthorizeServiceModel.h:55
BMKAuthorizeServiceError
Definition: BMKAuthorizeServiceModel.h:71
NS_ENUM
NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, BMKAuthorizeServiceType)
Definition: BMKAuthorizeServiceModel.h:12