OTPairingMessage.h [plain text]
#import <Foundation/Foundation.h>
#import <ProtocolBuffer/PBCodable.h>
@class OTSponsorToApplicantRound1M2;
@class OTApplicantToSponsorRound2M1;
@class OTSponsorToApplicantRound2M2;
@class OTSOSMessage;
#ifdef __cplusplus
#define OTPAIRINGMESSAGE_FUNCTION extern "C" __attribute__((visibility("hidden")))
#else
#define OTPAIRINGMESSAGE_FUNCTION extern __attribute__((visibility("hidden")))
#endif
__attribute__((visibility("hidden")))
@interface OTPairingMessage : PBCodable <NSCopying>
{
OTSponsorToApplicantRound1M2 *_epoch;
OTApplicantToSponsorRound2M1 *_prepare;
OTSOSMessage *_sosPairingMessage;
OTSponsorToApplicantRound2M2 *_voucher;
}
@property (nonatomic, readonly) BOOL hasEpoch;
@property (nonatomic, retain) OTSponsorToApplicantRound1M2 *epoch;
@property (nonatomic, readonly) BOOL hasPrepare;
@property (nonatomic, retain) OTApplicantToSponsorRound2M1 *prepare;
@property (nonatomic, readonly) BOOL hasVoucher;
@property (nonatomic, retain) OTSponsorToApplicantRound2M2 *voucher;
@property (nonatomic, readonly) BOOL hasSosPairingMessage;
@property (nonatomic, retain) OTSOSMessage *sosPairingMessage;
- (void)copyTo:(OTPairingMessage *)other;
- (void)mergeFrom:(OTPairingMessage *)other;
OTPAIRINGMESSAGE_FUNCTION BOOL OTPairingMessageReadFrom(__unsafe_unretained OTPairingMessage *self, __unsafe_unretained PBDataReader *reader);
@end