46 lines
1.5 KiB
Objective-C
46 lines
1.5 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <AddressBook/AddressBook.h>
|
|
#import "PhoneNumber.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) UIImage *image;
|
|
@property (readonly,nonatomic) NSString *notes;
|
|
@property (readonly,nonatomic) ABRecordID recordID;
|
|
|
|
+ (Contact*)contactWithFirstName:(NSString*)firstName
|
|
andLastName:(NSString *)lastName
|
|
andUserTextPhoneNumbers:(NSArray*)phoneNumbers
|
|
andEmails:(NSArray*)emails
|
|
andContactID:(ABRecordID)record;
|
|
|
|
+ (Contact*)contactWithFirstName:(NSString*)firstName
|
|
andLastName:(NSString *)lastName
|
|
andUserTextPhoneNumbers:(NSArray*)numbers
|
|
andEmails:(NSArray*)emails
|
|
andImage:(UIImage *)image
|
|
andContactID:(ABRecordID)record
|
|
andNotes:(NSString *)notes;
|
|
|
|
- (NSString*)fullName;
|
|
- (NSString *)allPhoneNumbers;
|
|
|
|
- (BOOL)isTextSecureContact;
|
|
- (BOOL)isRedPhoneContact;
|
|
|
|
- (NSArray*)textSecureIdentifiers;
|
|
- (NSArray*)redPhoneIdentifiers;
|
|
|
|
@end
|