mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 10:30:42 +00:00
26 lines
656 B
Objective-C
26 lines
656 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import <MtProtoKit/MTDatacenterAuthInfo.h>
|
|
|
|
|
|
@class MTContext;
|
|
@class MTDatacenterAuthAction;
|
|
|
|
@protocol MTDatacenterAuthActionDelegate <NSObject>
|
|
|
|
- (void)datacenterAuthActionCompleted:(MTDatacenterAuthAction *)action;
|
|
|
|
@end
|
|
|
|
@interface MTDatacenterAuthAction : NSObject
|
|
|
|
@property (nonatomic, readonly) bool tempAuth;
|
|
@property (nonatomic, weak) id<MTDatacenterAuthActionDelegate> delegate;
|
|
|
|
- (instancetype)initWithTempAuth:(bool)tempAuth tempAuthKeyType:(MTDatacenterAuthTempKeyType)tempAuthKeyType;
|
|
|
|
- (void)execute:(MTContext *)context datacenterId:(NSInteger)datacenterId isCdn:(bool)isCdn;
|
|
- (void)cancel;
|
|
|
|
@end
|