1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGBridgeServer.h
2016-02-25 01:03:51 +01:00

37 lines
1.1 KiB
Objective-C

#import <SSignalKit/SSignalKit.h>
@class TGBridgeContext;
@class TGBridgeMessage;
@interface TGBridgeServer : NSObject
@property (nonatomic, readonly) NSURL *temporaryFilesURL;
@property (nonatomic, readonly) bool isWatchAppInstalled;
@property (nonatomic, readonly) bool isRunning;
- (void)startRunning;
- (void)startServices;
- (SSignal *)watchAppInstalledSignal;
- (void)setAuthorized:(bool)authorized userId:(int32_t)userId;
- (void)setPasscodeEnabled:(bool)passcodeEnabled passcodeEncrypted:(bool)passcodeEncrypted;
- (void)setMicAccessAllowed:(bool)allowed;
- (void)setCustomLocalizationEnabled:(bool)enabled;
- (void)setStartupData:(NSDictionary *)dataObject micAccessAllowed:(bool)micAccessAllowed;
- (void)sendFileWithURL:(NSURL *)url metadata:(NSDictionary *)metadata;
- (SSignal *)serviceSignalForKey:(NSString *)key producer:(SSignal *(^)())producer;
- (void)startSignalForKey:(NSString *)key producer:(SSignal *(^)())producer;
- (SSignal *)pipeForKey:(NSString *)key;
- (void)putNext:(id)next forKey:(NSString *)key;
- (NSInteger)wakeupNetwork;
- (void)suspendNetworkIfReady:(NSInteger)token;
+ (instancetype)instance;
@end