mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-04 03:40:45 +00:00
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
|