1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-22 14:02:24 +01:00
Telegram/Watch/Bridge/TGBridgePeerSettingsSignals.m
2015-10-01 19:19:52 +03:00

24 lines
925 B
Objective-C

#import "TGBridgePeerSettingsSignals.h"
#import "TGBridgePeerSettingsSubscription.h"
#import "TGBridgeResponse.h"
#import "TGBridgeClient.h"
@implementation TGBridgePeerSettingsSignals
+ (SSignal *)peerSettingsWithPeerId:(int64_t)peerId;
{
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgePeerSettingsSubscription alloc] initWithPeerId:peerId]];
}
+ (SSignal *)updateNotificationSettingsWithPeerId:(int64_t)peerId settings:(TGBridgePeerNotificationSettings *)settings
{
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgePeerUpdateNotificationSettingsSubscription alloc] initWithPeerId:peerId settings:settings]];
}
+ (SSignal *)updateBlockStatusWithPeerId:(int64_t)peerId blocked:(bool)blocked
{
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgePeerUpdateBlockStatusSubscription alloc] initWithPeerId:peerId blocked:blocked]];
}
@end