2015-10-01 18:19:52 +02:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import <MTProtoKit/MTContext.h>
|
|
|
|
#import <MTProtoKit/MTProto.h>
|
|
|
|
#import <MTProtoKit/MTRequestMessageService.h>
|
|
|
|
#import <SSignalKit/SSignalKit.h>
|
2016-02-25 01:03:51 +01:00
|
|
|
#import "ApiLayer48.h"
|
2015-10-01 18:19:52 +02:00
|
|
|
|
|
|
|
@interface TGDatacenterConnectionContext : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, strong, readonly) MTContext *mtContext;
|
|
|
|
@property (nonatomic, strong, readonly) MTProto *mtProto;
|
|
|
|
@property (nonatomic, strong, readonly) MTRequestMessageService *mtRequestService;
|
|
|
|
|
|
|
|
- (instancetype)initWithMtContext:(MTContext *)mtContext mtProto:(MTProto *)mtProto mtRequestService:(MTRequestMessageService *)mtRequestService;
|
|
|
|
|
2016-02-25 01:03:51 +01:00
|
|
|
- (SSignal *)function:(Api48_FunctionContext *)functionContext;
|
2015-10-01 18:19:52 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface TGPooledDatacenterConnectionContext : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, strong, readonly) TGDatacenterConnectionContext *context;
|
|
|
|
@property (nonatomic, copy, readonly) void (^returnContext)(TGDatacenterConnectionContext *);
|
|
|
|
|
|
|
|
- (instancetype)initWithDatacenterConnectionContext:(TGDatacenterConnectionContext *)context returnContext:(void (^)(TGDatacenterConnectionContext *))returnContext;
|
|
|
|
|
|
|
|
@end
|