session-ios/SignalServiceKit/src/Devices/OWSVerificationStateSyncMessage.h

28 lines
939 B
C
Raw Normal View History

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;
- (instancetype)initWithVerificationState:(OWSVerificationState)verificationState
identityKey:(NSData *)identityKey
2018-05-11 16:36:40 +02:00
verificationForRecipientId:(NSString *)recipientId NS_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
2017-06-07 17:27:33 +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
@property (nonatomic, readonly) size_t paddingBytesLength;
2017-06-22 20:32:06 +02:00
@property (nonatomic, readonly) size_t unpaddedVerifiedLength;
2017-06-06 23:43:41 +02:00
@end
NS_ASSUME_NONNULL_END