Showing
63 changed files
with
220 additions
and
0 deletions
.DS_Store
0 → 100644
No preview for this file type
HHDoctor.podspec
0 → 100644
1 | +Pod::Spec.new do |s| | ||
2 | + s.name = 'HHDoctor' | ||
3 | +s.version= "1.0.072813" | ||
4 | + s.summary = 'A short description of hhvDoctorSDK.' | ||
5 | + | ||
6 | + s.description = <<-DESC | ||
7 | + TODO: Add long description of the pod here. | ||
8 | + DESC | ||
9 | + | ||
10 | + s.homepage = 'git@code.hh-medic.com:hh_public/hh_doctor_mini.git' | ||
11 | + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' | ||
12 | + s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
13 | + s.author = { 'hh_client@hh-medic.com' => 'chengyanfang@hh-medic.com' } | ||
14 | + s.source = { :git => 'http://code.hh-medic.com/hh_public/hh_doctor_mini.git', :tag => s.version.to_s } | ||
15 | + # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' | ||
16 | + | ||
17 | + s.source_files = 'HHDoctor/Classes/**/*' | ||
18 | +# s.header_dir = 'hhvDoctorSDKForOC/Classes/**/*.h' | ||
19 | + s.public_header_files = 'HHDoctor/Classes/PublicHeaders/*.h' | ||
20 | + s.resources = 'HHDoctor/Resources/*.*' | ||
21 | + | ||
22 | +# s.dependency 'TXLiteAVSDK_TRTC' | ||
23 | + | ||
24 | + s.vendored_frameworks = 'HHDoctor/Vendors/*.framework' | ||
25 | +# s.static_framework = true | ||
26 | + | ||
27 | + s.frameworks = 'SystemConfiguration', 'AVFoundation', 'Accelerate' | ||
28 | + s.libraries = 'c++', 'stdc++', 'resolv' | ||
29 | + | ||
30 | + s.ios.deployment_target = '9.0' | ||
31 | + | ||
32 | + s.pod_target_xcconfig = { | ||
33 | + 'OTHER_LDFLAGS' => '-ObjC', | ||
34 | + 'ENABLE_BITCODE' => 'NO', | ||
35 | + 'ARCHS' => ['arm64'] | ||
36 | + } | ||
37 | +end |
HHDoctor/HHDoctor.framework/ControlView.nib
0 → 100644
No preview for this file type
HHDoctor/HHDoctor.framework/ExpandView.nib
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
HHDoctor/HHDoctor.framework/HHDoctor
0 → 100755
This file is too large to display.
HHDoctor/HHDoctor.framework/HHVideoView.nib
0 → 100644
No preview for this file type

378 Bytes

10.9 KB

11.2 KB

1.01 KB

721 Bytes

223 Bytes

925 Bytes

452 Bytes

1.36 KB

722 Bytes

666 Bytes

722 Bytes

690 Bytes

1.18 KB

3.68 KB

11.4 KB

1.96 KB

2.3 KB

2.17 KB

2.64 KB

384 Bytes

986 Bytes

723 Bytes

1.49 KB

1.62 KB

804 Bytes

848 Bytes

1.14 KB

894 Bytes

690 Bytes
1 | +#ifdef __OBJC__ | ||
2 | +#import <UIKit/UIKit.h> | ||
3 | +#else | ||
4 | +#ifndef FOUNDATION_EXPORT | ||
5 | +#if defined(__cplusplus) | ||
6 | +#define FOUNDATION_EXPORT extern "C" | ||
7 | +#else | ||
8 | +#define FOUNDATION_EXPORT extern | ||
9 | +#endif | ||
10 | +#endif | ||
11 | +#endif | ||
12 | + | ||
13 | +#import "HHDoctor.h" | ||
14 | +#import "HHPublicHeader.h" | ||
15 | +#import "HHSDKOptions.h" | ||
16 | + | ||
17 | +FOUNDATION_EXPORT double HHDoctorVersionNumber; | ||
18 | +FOUNDATION_EXPORT const unsigned char HHDoctorVersionString[]; | ||
19 | + |
1 | +// | ||
2 | +// HHDoctor.h | ||
3 | +// HHDoctor | ||
4 | +// | ||
5 | +// Created by 程言方 on 2021/1/27. | ||
6 | +// | ||
7 | + | ||
8 | +#import "HHSDKOptions.h" | ||
9 | + | ||
10 | +typedef NS_ENUM(NSInteger, HHMCallingState) { | ||
11 | + onStart = 0, | ||
12 | + waitingDoctor, | ||
13 | + callFreeDoctor, | ||
14 | + callConnect, | ||
15 | + didRing, | ||
16 | +}; | ||
17 | + | ||
18 | +typedef NS_ENUM(NSInteger, FailCode) { | ||
19 | + loginFail = -6, | ||
20 | + notLogin = -5, | ||
21 | + permision = -4, | ||
22 | + netError = -3, | ||
23 | + fail = -2, | ||
24 | + callMessageFail = -100002, | ||
25 | +}; | ||
26 | + | ||
27 | +@protocol HHMVideoDelegate<NSObject> | ||
28 | + | ||
29 | +/** | ||
30 | + * 启动呼叫 | ||
31 | + */ | ||
32 | +- (void) onStart: (NSString*) orderId; | ||
33 | + | ||
34 | +/** | ||
35 | + * 通话结束 | ||
36 | + * | ||
37 | + * @param time 视频时长 单位秒 | ||
38 | + */ | ||
39 | +- (void) onFinish: (long) time; | ||
40 | + | ||
41 | +/** | ||
42 | + * 呼叫成功,等待医生接受 | ||
43 | + */ | ||
44 | +- (void) onCallSuccess; | ||
45 | + | ||
46 | +/** | ||
47 | + * 呼叫失败 | ||
48 | + * @param code 错误码 | ||
49 | + */ | ||
50 | +- (void) onFail: (NSInteger) code; | ||
51 | + | ||
52 | +/** | ||
53 | + * 取消呼叫 含 取消排队 | ||
54 | + */ | ||
55 | +- (void) onCancel; | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | +@end | ||
60 | + | ||
61 | + | ||
62 | +@interface HHDoctor : NSObject | ||
63 | + | ||
64 | ++ (HHDoctor *) sharedInstance; | ||
65 | + | ||
66 | +- (void) startWithOption : (HHSDKOptions * ) options; | ||
67 | + | ||
68 | +- (void) loginWithUserToken : (NSString *) token | ||
69 | + completion :(void (^)(NSString *errorMsg))completion; | ||
70 | + | ||
71 | +-(void)setCallExtension:(NSString *)callExtension; | ||
72 | + | ||
73 | +- (void) logout; | ||
74 | + | ||
75 | +- (void) switchToDev: (BOOL) isDevelopment; | ||
76 | + | ||
77 | +- (void) startCallWithUserToken : (NSString *) token; | ||
78 | + | ||
79 | +- (void) add: (id<HHMVideoDelegate>) delegate; | ||
80 | + | ||
81 | +- (void) remove: (id<HHMVideoDelegate>) delegate; | ||
82 | + | ||
83 | +- (void) excute: (void (^)(id<HHMVideoDelegate> delegate))block; | ||
84 | + | ||
85 | +- (void) remoteMessage: (NSString *) message; | ||
86 | + | ||
87 | +- (NSString *) getMedicDetailUrlWithMedicId : (NSString *) medicId userToken: (NSString *) userToken patientUserToken: (NSString *) patientUserToken; | ||
88 | +@end | ||
89 | + | ||
90 | + | ||
91 | + |
1 | +// | ||
2 | +// PublicHeader.h | ||
3 | +// hhvDoctorSDK_OC | ||
4 | +// | ||
5 | +// Created by 程言方 on 2021/1/27. | ||
6 | +// | ||
7 | + | ||
8 | +#ifndef PublicHeader_h | ||
9 | +#define PublicHeader_h | ||
10 | + | ||
11 | +#define HHSecBaseURL @"https://sec.hh-medic.com/familyapp" | ||
12 | + | ||
13 | +#define HHTestBaseURL @"https://test.hh-medic.com/familyapp" | ||
14 | + | ||
15 | +#define HHMedicDetailBaseURL @"https://e.hh-medic.com" | ||
16 | + | ||
17 | + | ||
18 | +#define HHFamilyUpload @"https://sec.hh-medic.com/orderapp/file/file_upload_family" | ||
19 | + | ||
20 | +#define HHScreenWidth [[UIScreen mainScreen] bounds].size.width | ||
21 | +#define HHScreenHeight [[UIScreen mainScreen] bounds].size.height | ||
22 | + | ||
23 | + | ||
24 | +#define HHStatusBarHeight [UIApplication sharedApplication].statusBarFrame.size.height | ||
25 | + | ||
26 | +#endif /* PublicHeader_h */ |
1 | +// | ||
2 | +// HHSDKOptions.h | ||
3 | +// hhvDoctorSDK_OC | ||
4 | +// | ||
5 | +// Created by 程言方 on 2021/1/27. | ||
6 | +// | ||
7 | + | ||
8 | +@protocol HHImageEngine <NSObject> | ||
9 | + | ||
10 | +- (void) loadImageView : (UIImageView *) imageView placeholder : (UIImage *) placeholder url : (NSString *) url; | ||
11 | + | ||
12 | +@end | ||
13 | + | ||
14 | +@interface HHSDKOptions : NSObject | ||
15 | + | ||
16 | +@property (nonatomic, assign) BOOL isDebug; | ||
17 | + | ||
18 | +@property (nonatomic, assign) BOOL isDevelopment; | ||
19 | + | ||
20 | +@property (nonatomic, strong) NSString * productId; | ||
21 | + | ||
22 | +@property (nonatomic, strong) NSString * callExtension; | ||
23 | + | ||
24 | +@property (nonatomic, strong) NSString * sdkVersion; | ||
25 | + | ||
26 | +@property (nonatomic , weak) id <HHImageEngine> hhImageEngine; | ||
27 | + | ||
28 | ++ (HHSDKOptions *)sharedInstance; | ||
29 | + | ||
30 | +- (HHSDKOptions *) initWithProductId : (NSString *) productId isDebug : (BOOL) debug isDevelop : (BOOL) develop imageEngine : (id <HHImageEngine>) imageEngine; | ||
31 | + | ||
32 | +- (void) loadConfig : (HHSDKOptions *) options; | ||
33 | + | ||
34 | +@end |
HHDoctor/HHDoctor.framework/Info.plist
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
HHDoctor/HHDoctor.framework/WaitingView.nib
0 → 100644
No preview for this file type
-
Please register or login to post a comment