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.
session-ios/src/Contacts/Contact.h

39 lines
1.1 KiB
C

10 years ago
#import <AddressBook/AddressBook.h>
#import <Foundation/Foundation.h>
/**
*
* Contact represents relevant information related to a contact from the user's
* contact list.
*
*/
@interface Contact : NSObject
@property (readonly, nonatomic) NSString *firstName;
@property (readonly, nonatomic) NSString *lastName;
@property (readonly, nonatomic) NSArray *parsedPhoneNumbers;
@property (readonly, nonatomic) NSArray *userTextPhoneNumbers;
@property (readonly, nonatomic) NSArray *emails;
@property (readonly, nonatomic) NSString *notes;
- (NSString *)fullName;
- (BOOL)isSignalContact;
- (NSArray<NSString *> *)textSecureIdentifiers;
10 years ago
#if TARGET_OS_IOS
- (instancetype)initWithContactWithFirstName:(NSString *)firstName
andLastName:(NSString *)lastName
andUserTextPhoneNumbers:(NSArray *)phoneNumbers
andImage:(UIImage *)image
10 years ago
andContactID:(ABRecordID)record;
@property (readonly, nonatomic) UIImage *image;
@property (readonly, nonatomic) ABRecordID recordID;
#endif
@end