2017-06-06 23:43:41 +02:00
|
|
|
//
|
2018-05-11 16:36:40 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-06-06 23:43:41 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "OWSOutgoingSyncMessage.h"
|
|
|
|
#import "OWSRecipientIdentity.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface OWSVerificationStateSyncMessage : OWSOutgoingSyncMessage
|
|
|
|
|
2018-05-11 16:36:40 +02:00
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
|
2017-06-22 02:19:23 +02:00
|
|
|
- (instancetype)initWithVerificationState:(OWSVerificationState)verificationState
|
|
|
|
identityKey:(NSData *)identityKey
|
2018-05-11 16:36:40 +02:00
|
|
|
verificationForRecipientId:(NSString *)recipientId NS_DESIGNATED_INITIALIZER;
|
2018-06-07 17:52:39 +02:00
|
|
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
2017-06-07 17:27:33 +02:00
|
|
|
|
2017-06-22 02:19:23 +02:00
|
|
|
// This is a clunky name, but we want to differentiate it from `recipientIdentifier` inherited from `TSOutgoingMessage`
|
|
|
|
@property (nonatomic, readonly) NSString *verificationForRecipientId;
|
2017-06-06 23:43:41 +02:00
|
|
|
|
2017-06-22 18:12:24 +02:00
|
|
|
@property (nonatomic, readonly) size_t paddingBytesLength;
|
2017-06-22 20:32:06 +02:00
|
|
|
@property (nonatomic, readonly) size_t unpaddedVerifiedLength;
|
2017-06-22 18:12:24 +02:00
|
|
|
|
2017-06-06 23:43:41 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|