mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/MtProtoKit git-subtree-mainline: 3b155750f5a4894ff3dedf1860a37e94e0ea9571 git-subtree-split: 14ab734b977fd4f1686a2a13415f6a4c9b9fdd6d
31 lines
853 B
Objective-C
31 lines
853 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#if defined(MtProtoKitDynamicFramework)
|
|
# import <MTProtoKitDynamic/MTDatacenterAuthInfo.h>
|
|
#elif defined(MtProtoKitMacFramework)
|
|
# import <MTProtoKitMac/MTDatacenterAuthInfo.h>
|
|
#else
|
|
# import <MtProtoKit/MTDatacenterAuthInfo.h>
|
|
#endif
|
|
|
|
@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
|