mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
20 lines
654 B
Objective-C
20 lines
654 B
Objective-C
#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
|