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

20 lines
654 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import <Foundation/Foundation.h>
@class ATQueue;
@interface TGModernConversationActivity : NSObject
@property (nonatomic, strong, readonly) NSString *type;
@property (nonatomic, readonly) NSInteger priority;
@property (nonatomic, readonly) NSTimeInterval timeout;
@property (nonatomic, copy) void (^onDelete)(TGModernConversationActivity *);
@property (nonatomic, copy) void (^onTick)(TGModernConversationActivity *);
- (instancetype)initWithType:(NSString *)type priority:(NSInteger)priority tickInterval:(NSTimeInterval)tickInterval timeout:(NSTimeInterval)timeout timeoutQueue:(ATQueue *)timeoutQueue;
- (id)holder;
- (void)resetTimeout;
@end