2020-02-22 15:38:54 +04:00

24 lines
1004 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) int64_t minPeerId;
@property (nonatomic, readonly) int32_t maxId;
@property (nonatomic, readonly) int32_t maxTimestamp;
@property (nonatomic, readonly) int64_t maxPeerId;
- (instancetype)initWithMinId:(int32_t)minId minTimestamp:(int32_t)minTimestamp maxId:(int32_t)maxId maxTimestamp:(int32_t)maxTimestamp;
- (instancetype)initWithMinId:(int32_t)minId minTimestamp:(int32_t)minTimestamp minPeerId:(int64_t)minPeerId maxId:(int32_t)maxId maxTimestamp:(int32_t)maxTimestamp maxPeerId:(int64_t)maxPeerId;
- (bool)intersects:(TGMessageHole *)other;
- (bool)covers:(TGMessageHole *)other;
- (NSArray *)exclude:(TGMessageHole *)other;
- (bool)intersectsByTimestamp:(TGMessageHole *)other;
- (bool)coversByTimestamp:(TGMessageHole *)other;
- (NSArray *)excludeByTimestamp:(TGMessageHole *)other;
@end