1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/Watch/Extension/TGAvatarViewModel.h

18 lines
478 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import <Foundation/Foundation.h>
@class TGBridgeContext;
@class TGBridgeUser;
@class TGBridgeChat;
@interface TGAvatarViewModel : NSObject
@property (nonatomic, weak) WKInterfaceGroup *group;
@property (nonatomic, weak) WKInterfaceLabel *label;
- (void)updateWithUser:(TGBridgeUser *)user context:(TGBridgeContext *)context isVisible:(bool (^)(void))isVisible;
- (void)updateWithChat:(TGBridgeChat *)chat isVisible:(bool (^)(void))isVisible;
- (void)updateIfNeeded;
@end