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.
		
		
		
		
		
			
		
			
	
	
		
			35 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
| 
											5 years ago
										 | //
 | ||
|  | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
|  | //
 | ||
|  | 
 | ||
|  | @class OWSAES256Key; | ||
|  | @class TSThread; | ||
|  | @class YapDatabaseReadWriteTransaction; | ||
|  | @class OWSUserProfile; | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
|  | @protocol ProfileManagerProtocol <NSObject> | ||
|  | 
 | ||
|  | - (OWSAES256Key *)localProfileKey; | ||
|  | 
 | ||
|  | - (nullable NSString *)localProfileName; | ||
|  | - (nullable NSString *)profileNameForRecipientWithID:(NSString *)recipientID avoidingWriteTransaction:(BOOL)avoidWriteTransaction; | ||
|  | - (nullable NSString *)profileNameForRecipientWithID:(NSString *)recipientID; | ||
|  | - (nullable NSString *)profileNameForRecipientWithID:(NSString *)recipientID transaction:(YapDatabaseReadWriteTransaction *)transaction; | ||
|  | - (nullable NSString *)profilePictureURL; | ||
|  | 
 | ||
|  | - (nullable NSData *)profileKeyDataForRecipientId:(NSString *)recipientId; | ||
|  | - (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId; | ||
|  | - (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId avatarURL:(nullable NSString *)avatarURL; | ||
|  | 
 | ||
|  | - (void)updateProfileForContactWithID:(NSString *)contactID displayName:(NSString *)displayName with:(YapDatabaseReadWriteTransaction *)transaction; | ||
|  | - (void)updateServiceWithProfileName:(nullable NSString *)localProfileName avatarURL:(nullable NSString *)avatarURL; | ||
|  | 
 | ||
|  | - (void)ensureLocalProfileCached; | ||
|  | - (void)ensureProfileCachedForContactWithID:(NSString *)contactID with:(YapDatabaseReadWriteTransaction *)transaction; | ||
|  | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |