// // AuthViewProvider.h // DTFIdentityManager // // Created by mengbingchuan on 2022/6/1. // Copyright © 2022 DTF. All rights reserved. // #import #import #import #import #import #import "MultiFactorTaskModel.h" @protocol MultiFactorTaskViewDelegate; @interface MultiFactorAlertModel : NSObject @property (nonatomic, copy) NSString *type; @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *message; @property (nonatomic, copy) NSString *confirmTitle; @property (nonatomic, copy) void (^confirmBlock)(NSString *type); @property (nonatomic, copy) NSString *cancelTitle; @property (nonatomic, copy) void (^cancelBlock)(NSString *type); @end @protocol MultiFactorTaskViewProtocol @property (nonatomic, weak) id delegate; @property (nonatomic, strong) MultiFactorTaskModel *model; - (void)alertWithModel:(MultiFactorAlertModel *)model onController:(UIViewController *)controller; - (void)handleFaceStateChange:(ToygerMessage)state stateTips:(NSString *)tips actionGuide:(NSString *)guide progress:(CGFloat)progress; - (void)countDown:(int)left; - (void)nextAction:(int)index; - (void)reset; - (UIView *)view; @end @protocol MultiFactorTaskViewDelegate - (void)viewExit:(id)view; - (void)viewStartRecord:(id)view; - (void)viewStopRecord:(id)view; @end @protocol MultiFactorViewProviderProtocol - (id)viewForRead:(MultiFactorTaskModel *)model; - (id)viewForQuestion:(MultiFactorTaskModel *)model; - (id)viewForRegister:(MultiFactorTaskModel *)model; @end