1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGMessageHole.h
2015-10-01 19:19:52 +03:00

17 lines
546 B
Objective-C

#import <Foundation/Foundation.h>
@interface TGMessageHole : NSObject
@property (nonatomic, readonly) int32_t minId;
@property (nonatomic, readonly) int32_t minTimestamp;
@property (nonatomic, readonly) int32_t maxId;
@property (nonatomic, readonly) int32_t maxTimestamp;
- (instancetype)initWithMinId:(int32_t)minId minTimestamp:(int32_t)minTimestamp maxId:(int32_t)maxId maxTimestamp:(int32_t)maxTimestamp;
- (bool)intersects:(TGMessageHole *)other;
- (bool)covers:(TGMessageHole *)other;
- (NSArray *)exclude:(TGMessageHole *)other;
@end