PCKContact
public struct PCKContact : PCKVersionable
An PCKContact is the ParseCareKit equivalent of OCKContact. An OCKContactrepresents a contact that a user
may want to get in touch with. A contact may be a care provider, a friend, or a family member. Contacts must have at
least a name, and may optionally have numerous other addresses at which to be contacted.
-
Declaration
Swift
public var nextVersionUUIDs: [UUID]? -
Declaration
Swift
public var previousVersionUUIDs: [UUID]? -
Declaration
Swift
public var effectiveDate: Date? -
Declaration
Swift
public var entityId: String? -
Declaration
Swift
public var schemaVersion: OCKSemanticVersion? -
Declaration
Swift
public var createdDate: Date? -
Declaration
Swift
public var updatedDate: Date? -
Declaration
Swift
public var deletedDate: Date? -
Declaration
Swift
public var timezone: TimeZone? -
Declaration
Swift
public var userInfo: [String : String]? -
Declaration
Swift
public var groupIdentifier: String? -
Declaration
Swift
public var tags: [String]? -
Declaration
Swift
public var source: String? -
Declaration
Swift
public var asset: String? -
Declaration
Swift
public var notes: [OCKNote]? -
Declaration
Swift
public var remoteID: String? -
Declaration
Swift
public var encodingForParse: Bool { get set } -
Declaration
Swift
public static var className: String { get } -
Declaration
Swift
public var objectId: String? -
Declaration
Swift
public var createdAt: Date? -
Declaration
Swift
public var updatedAt: Date? -
Declaration
Swift
public var ACL: ParseACL? -
Declaration
Swift
public var originalData: Data? -
The contact’s postal address.
Declaration
Swift
public var address: OCKPostalAddress? -
Indicates if this contact is care provider or if they are a friend or family member.
Declaration
Swift
public var category: OCKContactCategory? -
The contact’s name.
Declaration
Swift
public var name: PersonNameComponents? -
The organization this contact belongs to.
Declaration
Swift
public var organization: String? -
A description of what this contact’s role is.
Declaration
Swift
public var role: String? -
A title for this contact.
Declaration
Swift
public var title: String? -
The version in the local database for the care plan associated with this contact.
Declaration
Swift
public var carePlan: PCKCarePlan? { get set } -
The version id in the local database for the care plan associated with this contact.
Declaration
Swift
public var carePlanUUID: UUID? { get set } -
An array of numbers that the contact can be messaged at. The number strings may contains non-numeric characters.
Declaration
Swift
public var messagingNumbers: [OCKLabeledValue]? -
An array of the contact’s email addresses.
Declaration
Swift
public var emailAddresses: [OCKLabeledValue]? -
An array of the contact’s phone numbers. The number strings may contains non-numeric characters.
Declaration
Swift
public var phoneNumbers: [OCKLabeledValue]? -
An array of other information that could be used reach this contact.
Declaration
Swift
public var otherContactInfo: [OCKLabeledValue]? -
Declaration
Swift
public init() -
Declaration
Swift
public func new(with careKitEntity: OCKEntity) throws -> PCKContact -
Declaration
Swift
public func addToCloud(completion: @escaping (Result<PCKSynchronizable, Error>) -> Void) -
Declaration
Swift
public func updateCloud(completion: @escaping (Result<PCKSynchronizable, Error>) -> Void) -
Declaration
Swift
public func pullRevisions(since localClock: Int, cloudClock: OCKRevisionRecord.KnowledgeVector, remoteID: String, mergeRevision: @escaping (Result<OCKRevisionRecord, ParseError>) -> Void) -
Declaration
Swift
public func pushRevision(cloudClock: Int, remoteID: String, completion: @escaping (Error?) -> Void) -
Declaration
Swift
public static func copyValues(from other: PCKContact, to here: PCKContact) throws -> PCKContact -
Link versions and related classes
Declaration
Swift
public func linkRelated(completion: @escaping (Result<PCKContact, Error>) -> Void) -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Install in Dash
PCKContact Structure Reference