mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-04 20:00:53 +00:00
17 lines
521 B
Objective-C
17 lines
521 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTDatacenterSaltInfo : NSObject <NSCoding>
|
|
|
|
@property (nonatomic, readonly) int64_t salt;
|
|
@property (nonatomic, readonly) int64_t firstValidMessageId;
|
|
@property (nonatomic, readonly) int64_t lastValidMessageId;
|
|
|
|
- (instancetype)initWithSalt:(int64_t)salt firstValidMessageId:(int64_t)firstValidMessageId lastValidMessageId:(int64_t)lastValidMessageId;
|
|
|
|
- (int64_t)validMessageCountAfterId:(int64_t)messageId;
|
|
- (bool)isValidFutureSaltForMessageId:(int64_t)messageId;
|
|
|
|
@end
|