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