mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
git-subtree-dir: submodules/MtProtoKit git-subtree-mainline:3b155750f5git-subtree-split:14ab734b97
16 lines
521 B
Objective-C
16 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
|