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

//
// 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);