Fix contact share property synthesis.

This commit is contained in:
Matthew Chen 2018-04-30 10:53:38 -04:00
parent 7490a55f61
commit 521013a674
2 changed files with 54 additions and 0 deletions

View file

@ -6,6 +6,8 @@
NS_ASSUME_NONNULL_BEGIN
// These private interfaces expose setter accessors to facilitate
// construction of fake messages, etc.
@interface OWSContactSharePhoneNumber (Private)
@property (nonatomic) OWSContactSharePhoneType phoneType;

View file

@ -10,18 +10,57 @@
NS_ASSUME_NONNULL_BEGIN
@interface OWSContactSharePhoneNumber ()
@property (nonatomic) OWSContactSharePhoneType phoneType;
@property (nonatomic, nullable) NSString *label;
@property (nonatomic) NSString *phoneNumber;
@end
#pragma mark -
@implementation OWSContactSharePhoneNumber
@end
#pragma mark -
@interface OWSContactShareEmail ()
@property (nonatomic) OWSContactShareEmailType emailType;
@property (nonatomic, nullable) NSString *label;
@property (nonatomic) NSString *email;
@end
#pragma mark -
@implementation OWSContactShareEmail
@end
#pragma mark -
@interface OWSContactShareAddress ()
@property (nonatomic) OWSContactShareAddressType addressType;
@property (nonatomic, nullable) NSString *label;
@property (nonatomic, nullable) NSString *street;
@property (nonatomic, nullable) NSString *pobox;
@property (nonatomic, nullable) NSString *neighborhood;
@property (nonatomic, nullable) NSString *city;
@property (nonatomic, nullable) NSString *region;
@property (nonatomic, nullable) NSString *postcode;
@property (nonatomic, nullable) NSString *country;
@end
#pragma mark -
@implementation OWSContactShareAddress
@end
@ -30,6 +69,19 @@ NS_ASSUME_NONNULL_BEGIN
@interface OWSContactShare ()
@property (nonatomic, nullable) NSString *givenName;
@property (nonatomic, nullable) NSString *familyName;
@property (nonatomic, nullable) NSString *nameSuffix;
@property (nonatomic, nullable) NSString *namePrefix;
@property (nonatomic, nullable) NSString *middleName;
@property (nonatomic, nullable) NSArray<OWSContactSharePhoneNumber *> *phoneNumbers;
@property (nonatomic, nullable) NSArray<OWSContactShareEmail *> *emails;
@property (nonatomic, nullable) NSArray<OWSContactShareAddress *> *addresses;
@property (nonatomic, nullable) TSAttachment *avatar;
@property (nonatomic) BOOL isProfileAvatar;
@end
#pragma mark -