1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGBridgeStateHandler.m
2015-10-01 19:19:52 +03:00

22 lines
549 B
Objective-C

#import "TGBridgeStateHandler.h"
#import "TGBridgeStateSubscription.h"
#import "TGSynchronizationStateSignal.h"
@implementation TGBridgeStateHandler
+ (SSignal *)handlingSignalForSubscription:(TGBridgeSubscription *)subscription server:(TGBridgeServer *)__unused server
{
if ([subscription isKindOfClass:[TGBridgeStateSubscription class]])
return [TGSynchronizationStateSignal synchronizationState];
return [SSignal fail:nil];
}
+ (NSArray *)handledSubscriptions
{
return @[ [TGBridgeStateSubscription class] ];
}
@end