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.
		
		
		
		
		
			
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @class CNContact;
 | |
| @class Contact;
 | |
| @class PhoneNumber;
 | |
| @class SignalAccount;
 | |
| @class UIImage;
 | |
| @class YapDatabaseReadTransaction;
 | |
| 
 | |
| @protocol ContactsManagerProtocol <NSObject>
 | |
| 
 | |
| - (NSString *)displayNameForPhoneIdentifier:(nullable NSString *)recipientId;
 | |
| - (NSString *)displayNameForPhoneIdentifier:(NSString *_Nullable)recipientId
 | |
|                                 transaction:(YapDatabaseReadTransaction *)transaction;
 | |
| - (NSArray<SignalAccount *> *)signalAccounts;
 | |
| 
 | |
| - (BOOL)isSystemContact:(NSString *)recipientId;
 | |
| - (BOOL)isSystemContactWithSignalAccount:(NSString *)recipientId;
 | |
| 
 | |
| - (NSComparisonResult)compareSignalAccount:(SignalAccount *)left
 | |
|                          withSignalAccount:(SignalAccount *)right NS_SWIFT_NAME(compare(signalAccount:with:));
 | |
| 
 | |
| #pragma mark - CNContacts
 | |
| 
 | |
| - (nullable CNContact *)cnContactWithId:(nullable NSString *)contactId;
 | |
| - (nullable NSData *)avatarDataForCNContactId:(nullable NSString *)contactId;
 | |
| - (nullable UIImage *)avatarImageForCNContactId:(nullable NSString *)contactId;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |