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.
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
5 years ago
|
//
|
||
|
// 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
|