mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
37 lines
1.1 KiB
Objective-C
37 lines
1.1 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
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
|