wangguolei

test

Showing 63 changed files with 220 additions and 0 deletions
No preview for this file type
  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
No preview for this file type
No preview for this file type
This file is too large to display.
No preview for this file type
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>HHBundleVersion</key>
  6 +<string>1.0.072813</string></dict>
  7 +</plist>
  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
No preview for this file type
  1 +framework module HHDoctor {
  2 + umbrella header "HHDoctor-umbrella.h"
  3 +
  4 + export *
  5 + module * { export * }
  6 +}
No preview for this file type