mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
C
39 lines
1.5 KiB
C
8 years ago
|
//
|
||
7 years ago
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
|
|
||
5 years ago
|
#import <SignalUtilitiesKit/TSInteraction.h>
|
||
8 years ago
|
|
||
7 years ago
|
@class YapDatabaseReadWriteTransaction;
|
||
|
|
||
8 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface OWSContactOffersInteraction : TSInteraction
|
||
|
|
||
8 years ago
|
@property (nonatomic, readonly) BOOL hasBlockOffer;
|
||
|
@property (nonatomic, readonly) BOOL hasAddToContactsOffer;
|
||
|
@property (nonatomic, readonly) BOOL hasAddToProfileWhitelistOffer;
|
||
7 years ago
|
|
||
|
// TODO - remove this recipientId param
|
||
|
// it's redundant with the interaction's TSContactThread
|
||
8 years ago
|
@property (nonatomic, readonly) NSString *recipientId;
|
||
6 years ago
|
@property (nonatomic, readonly) NSString *beforeInteractionId;
|
||
8 years ago
|
|
||
7 years ago
|
- (instancetype)initInteractionWithTimestamp:(uint64_t)timestamp inThread:(TSThread *)thread NS_UNAVAILABLE;
|
||
7 years ago
|
|
||
8 years ago
|
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
||
|
|
||
7 years ago
|
// MJK TODO should be safe to remove this timestamp param
|
||
6 years ago
|
- (instancetype)initInteractionWithUniqueId:(NSString *)uniqueId
|
||
|
timestamp:(uint64_t)timestamp
|
||
|
thread:(TSThread *)thread
|
||
|
hasBlockOffer:(BOOL)hasBlockOffer
|
||
|
hasAddToContactsOffer:(BOOL)hasAddToContactsOffer
|
||
|
hasAddToProfileWhitelistOffer:(BOOL)hasAddToProfileWhitelistOffer
|
||
|
recipientId:(NSString *)recipientId
|
||
|
beforeInteractionId:(NSString *)beforeInteractionId NS_DESIGNATED_INITIALIZER;
|
||
8 years ago
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|