mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-04 03:40:45 +00:00
29 lines
1.3 KiB
Objective-C
29 lines
1.3 KiB
Objective-C
/*
|
|
* This is the source code of Telegram for iOS v. 1.1
|
|
* It is licensed under GNU GPL v. 2 or later.
|
|
* You should have received a copy of the license in this archive (see LICENSE).
|
|
*
|
|
* Copyright Peter Iakovlev, 2013.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTMessageTransaction : NSObject
|
|
|
|
@property (nonatomic, strong, readonly) id internalId;
|
|
|
|
/*
|
|
* Can be invoked multiple times in case message transaction maps to multiple different transport transactions
|
|
*/
|
|
@property (nonatomic, copy) void (^completion)(NSDictionary *messageInternalIdToTransactionId, NSDictionary *messageInternalIdToPreparedMessage, NSDictionary *messageInternalIdToQuickAckId);
|
|
@property (nonatomic, copy) void (^prepared)(NSDictionary *messageInternalIdToPreparedMessage);
|
|
@property (nonatomic, copy) void (^failed)();
|
|
|
|
@property (nonatomic, strong) NSArray *messagePayload;
|
|
@property (nonatomic) bool allowServiceMode;
|
|
@property (nonatomic) bool requiresEncryption;
|
|
|
|
- (instancetype)initWithMessagePayload:(NSArray *)messagePayload prepared:(void (^)(NSDictionary *messageInternalIdToPreparedMessage))prepared failed:(void (^)())failed completion:(void (^)(NSDictionary *messageInternalIdToTransactionId, NSDictionary *messageInternalIdToPreparedMessage, NSDictionary *messageInternalIdToQuickAckId))completion;
|
|
|
|
@end
|