mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 10:30:42 +00:00
26 lines
973 B
Objective-C
26 lines
973 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <MtProtoKit/MTExportedAuthorizationData.h>
|
|
#import <MtProtoKit/MTDatacenterAddressListData.h>
|
|
#import <MtProtoKit/MTDatacenterVerificationData.h>
|
|
|
|
typedef MTExportedAuthorizationData *(^MTExportAuthorizationResponseParser)(NSData *);
|
|
typedef MTDatacenterAddressListData *(^MTRequestDatacenterAddressListParser)(NSData *);
|
|
typedef MTDatacenterVerificationData *(^MTDatacenterVerificationDataParser)(NSData *);
|
|
typedef id (^MTRequestNoopParser)(NSData *);
|
|
|
|
@protocol MTSerialization <NSObject>
|
|
|
|
- (NSUInteger)currentLayer;
|
|
|
|
- (id)parseMessage:(NSData *)data;
|
|
|
|
- (MTExportAuthorizationResponseParser)exportAuthorization:(int32_t)datacenterId data:(__autoreleasing NSData **)data;
|
|
- (NSData *)importAuthorization:(int32_t)authId bytes:(NSData *)bytes;
|
|
- (MTRequestDatacenterAddressListParser)requestDatacenterAddressWithData:(__autoreleasing NSData **)data;
|
|
- (MTRequestNoopParser)requestNoop:(__autoreleasing NSData **)data;
|
|
|
|
@end
|