2017-06-06 23:43:41 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "OWSOutgoingSyncMessage.h"
|
|
|
|
#import "OWSRecipientIdentity.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface OWSVerificationStateSyncMessage : OWSOutgoingSyncMessage
|
|
|
|
|
2017-06-22 02:19:23 +02:00
|
|
|
- (instancetype)initWithVerificationState:(OWSVerificationState)verificationState
|
|
|
|
identityKey:(NSData *)identityKey
|
|
|
|
verificationForRecipientId:(NSString *)recipientId;
|
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
|