mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 10:30:42 +00:00

git-subtree-dir: submodules/MtProtoKit git-subtree-mainline: 3b155750f5a4894ff3dedf1860a37e94e0ea9571 git-subtree-split: 14ab734b977fd4f1686a2a13415f6a4c9b9fdd6d
36 lines
1.4 KiB
Objective-C
36 lines
1.4 KiB
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class MTContext;
|
|
|
|
@interface MTSessionInfo : NSObject
|
|
|
|
@property (nonatomic) bool scheduledForCleanup;
|
|
@property (nonatomic) bool canBeDeleted;
|
|
|
|
- (instancetype)initWithRandomSessionIdAndContext:(MTContext *)context;
|
|
- (instancetype)initWithSessionId:(int64_t)sessionId context:(MTContext *)context;
|
|
|
|
- (int64_t)sessionId;
|
|
- (int64_t)generateClientMessageId:(bool *)monotonityViolated;
|
|
- (int64_t)generateServerMessageId;
|
|
- (int64_t)actualClientMessagId;
|
|
|
|
- (bool)messageProcessed:(int64_t)messageId;
|
|
- (void)setMessageProcessed:(int64_t)messageId;
|
|
- (void)scheduleMessageConfirmation:(int64_t)messageId size:(NSInteger)size;
|
|
- (NSArray *)scheduledMessageConfirmations;
|
|
- (bool)scheduledMessageConfirmationsExceedSize:(NSInteger)sizeLimit orCount:(NSUInteger)countLimit;
|
|
- (void)removeScheduledMessageConfirmationsWithIds:(NSArray *)messageIds;
|
|
- (void)assignTransactionId:(id)transactionId toScheduledMessageConfirmationsWithIds:(NSArray *)messageIds;
|
|
- (void)removeScheduledMessageConfirmationsWithTransactionIds:(NSArray *)transactionIds;
|
|
|
|
- (void)addContainerMessageIdMapping:(int64_t)containerMessageId childMessageIds:(NSArray *)childMessageIds;
|
|
- (NSArray *)messageIdsInContainer:(int64_t)containerMessageId;
|
|
- (NSArray *)messageIdsInContainersAfterMessageId:(int64_t)firstMessageId;
|
|
|
|
- (int32_t)takeSeqNo:(bool)messageIsMeaningful;
|
|
|
|
@end
|