mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
22 lines
549 B
Objective-C
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
|