mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
25 lines
812 B
Objective-C
25 lines
812 B
Objective-C
#import "TGBridgePeerSettingsSignals.h"
|
|
|
|
#import <WatchCommonWatch/WatchCommonWatch.h>
|
|
|
|
#import "TGBridgeClient.h"
|
|
|
|
@implementation TGBridgePeerSettingsSignals
|
|
|
|
+ (SSignal *)peerSettingsWithPeerId:(int64_t)peerId;
|
|
{
|
|
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgePeerSettingsSubscription alloc] initWithPeerId:peerId]];
|
|
}
|
|
|
|
+ (SSignal *)toggleMutedWithPeerId:(int64_t)peerId
|
|
{
|
|
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgePeerUpdateNotificationSettingsSubscription alloc] initWithPeerId:peerId]];
|
|
}
|
|
|
|
+ (SSignal *)updateBlockStatusWithPeerId:(int64_t)peerId blocked:(bool)blocked
|
|
{
|
|
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgePeerUpdateBlockStatusSubscription alloc] initWithPeerId:peerId blocked:blocked]];
|
|
}
|
|
|
|
@end
|