1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-11 17:09:46 +01:00
Telegram/Watch/Extension/TGBotCommandController.h

22 lines
632 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGInterfaceController.h"
@class SSignal;
@class TGBridgeContext;
@interface TGBotCommandControllerContext : NSObject <TGInterfaceContext>
@property (nonatomic, strong) TGBridgeContext *context;
@property (nonatomic, strong) SSignal *commandListSignal;
@property (nonatomic, copy) void (^completionBlock)(NSString *command);
@end
@interface TGBotCommandController : TGInterfaceController
@property (nonatomic, weak) IBOutlet WKInterfaceTable *table;
@property (nonatomic, weak) IBOutlet WKInterfaceImage *activityIndicator;
@end
extern NSString *const TGBotCommandUserKey;
extern NSString *const TGBotCommandListKey;