mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/MtProtoKit git-subtree-mainline: 3b155750f5a4894ff3dedf1860a37e94e0ea9571 git-subtree-split: 14ab734b977fd4f1686a2a13415f6a4c9b9fdd6d
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
|