You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.4 KiB
99 lines
2.4 KiB
1 year ago
|
//
|
||
|
// SMS_SDKResultHanderDef.h
|
||
|
// SMS_SDKDemo
|
||
|
//
|
||
|
// Created by 掌淘科技 on 14-7-11.
|
||
|
// Copyright (c) 2014年 掌淘科技. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
@class SMSSDKUserInfo;
|
||
|
@class SMSSDKAuthToken;
|
||
|
@class SMSSDKCallingResult;
|
||
|
|
||
|
typedef NS_ENUM(NSUInteger, SMSGetCodeMethod)
|
||
|
{
|
||
|
SMSGetCodeMethodSMS = 0, //文本短信方式
|
||
|
SMSGetCodeMethodVoice = 1 //语音方式
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @brief 验证码获取回调
|
||
|
* @param error 当error为空时表示成功
|
||
|
*/
|
||
|
typedef void (^SMSGetCodeResultHandler) (NSError *error);
|
||
|
|
||
|
/**
|
||
|
* @from v2.0.7
|
||
|
* @brief 验证码验证回调
|
||
|
* @param error 当error为空时表示成功
|
||
|
*/
|
||
|
typedef void (^SMSCommitCodeResultHandler) (NSError *error);
|
||
|
|
||
|
/**
|
||
|
国家区号获取回调
|
||
|
|
||
|
@param error error 当error为空时表示成功
|
||
|
@param zonesArray 返回的区号数组
|
||
|
*/
|
||
|
typedef void (^SMSGetZoneResultHandler)(NSError *error,NSArray *zonesArray);
|
||
|
|
||
|
/**
|
||
|
通讯录好友获取回调
|
||
|
|
||
|
@param error 当error为空时表示成功
|
||
|
@param friendsArray 好友信息数组
|
||
|
*/
|
||
|
typedef void (^SMSGetContactsFriendsResultHandler)(NSError *error,NSArray *friendsArray);
|
||
|
|
||
|
/**
|
||
|
* @brief 提交用户信息回调
|
||
|
* @from v1.1.1
|
||
|
* @param error 当error为空时表示成功
|
||
|
*/
|
||
|
typedef void (^SMSSubmitUserInfoResultHandler) (NSError *error);
|
||
|
|
||
|
/**
|
||
|
联系人授权接受与拒绝回调
|
||
|
|
||
|
@param noMoreInquiries 不需要再显示
|
||
|
*/
|
||
|
typedef void(^SMSSDKDialogViewHandler)(BOOL noMoreInquiries);
|
||
|
|
||
|
/**
|
||
|
联系人授权是否能显示
|
||
|
|
||
|
@param canShow 能显示
|
||
|
*/
|
||
|
typedef void(^SMSSDKDialogViewShowHandler)(BOOL canShow);
|
||
|
|
||
|
/**
|
||
|
* @brief 请求手机号码认证Token结果回调
|
||
|
* @param model 包含token的具体信息
|
||
|
* @param error 为空时表示请求成功
|
||
|
*/
|
||
|
typedef void(^SMSSDKMobileAuthTokenResultHandler)(SMSSDKAuthToken *model, NSError *error);
|
||
|
|
||
|
/**
|
||
|
* @brief 请求手机号码认证Token回调
|
||
|
* @param dict 包含token的具体信息
|
||
|
* @param error 为空时表示请求成功
|
||
|
*/
|
||
|
typedef void(^SMSSDKMobileAuthTokenHandler)(NSDictionary *dict, NSError *error);
|
||
|
|
||
|
/**
|
||
|
* @brief 手机号码验证结果回调
|
||
|
* @param isValid 是否验证成功 YES成功 NO失败
|
||
|
* @param error 为空时表示请求成功
|
||
|
*/
|
||
|
typedef void(^SMSSDKMobileVerifyResultHandler)(BOOL isValid, NSError *error);
|
||
|
|
||
|
/**
|
||
|
* @brief 请求手机号码认证Token回调
|
||
|
* @param result SMSSDKCallingResult
|
||
|
*/
|
||
|
typedef void(^SMSSDKResultHandler)(SMSSDKCallingResult *result);
|
||
|
|