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
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <SessionServiceKit/TSInteraction.h>
 | |
| 
 | |
| @class YapDatabaseReadWriteTransaction;
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @interface OWSContactOffersInteraction : TSInteraction
 | |
| 
 | |
| @property (nonatomic, readonly) BOOL hasBlockOffer;
 | |
| @property (nonatomic, readonly) BOOL hasAddToContactsOffer;
 | |
| @property (nonatomic, readonly) BOOL hasAddToProfileWhitelistOffer;
 | |
| 
 | |
| // TODO - remove this recipientId param
 | |
| // it's redundant with the interaction's TSContactThread
 | |
| @property (nonatomic, readonly) NSString *recipientId;
 | |
| @property (nonatomic, readonly) NSString *beforeInteractionId;
 | |
| 
 | |
| - (instancetype)initInteractionWithTimestamp:(uint64_t)timestamp inThread:(TSThread *)thread NS_UNAVAILABLE;
 | |
| 
 | |
| - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 | |
| 
 | |
| // MJK TODO should be safe to remove this timestamp param
 | |
| - (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;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |