ABContact.h 678 B

1234567891011121314151617181920
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <Foundation/Foundation.h>
  6. #import <Realm/Realm.h>
  7. @interface ABContact : RLMObject
  8. @property (nonatomic, copy) NSString *identifier;
  9. @property (nonatomic, copy) NSString *name;
  10. @property (nonatomic, strong) RLMArray<RLMString> *phoneNumbers;
  11. @property (nonatomic, assign) NSInteger lastUpdate;
  12. + (instancetype)contactWithIdentifier:(NSString *)identifier name:(NSString *)name phoneNumbers:(NSArray *)phoneNumbers lastUpdate:(NSInteger)lastUpdate;
  13. + (void)updateContact:(ABContact *)managedContact withContact:(ABContact *)contact;
  14. @end