Contact

public struct Contact

A struct representation of a project in the harvest system.

  • A unique identifier for the contact in the Harvest API

    Declaration

    Swift

    public var identifier: Int?
  • A the unique identifier of the client that this contact is assosciated with

    Declaration

    Swift

    public var clientIdentifier: Int?
  • The prefix for the name of the contact. Typically Mr, Mrs, Mx etc.

    Declaration

    Swift

    public var title: String?
  • The first name of the contact

    Declaration

    Swift

    public var firstName: String?
  • The last name of the contact

    Declaration

    Swift

    public var lastName: String?
  • The email address that can be used to reach this contact

    Declaration

    Swift

    public var email: String?
  • The phone number that can be used to reach this contact at the office. Stored as a string and may contain country codes, dashes, brackets etc.

    Declaration

    Swift

    public var officePhoneNumber: String?
  • The phone number that can be used to reach this contact on a mobile. Stored as a string and may contain country codes, dashes, brackets etc.

    Declaration

    Swift

    public var mobilePhoneNumber: String?
  • The number that can be used to communicate with this contact by fax. Stored as a string and may contain country codes, dashes, brackets etc.

    Declaration

    Swift

    public var faxNumber: String?
  • The date that the contact was created

    Declaration

    Swift

    public var created: NSDate?
  • The date that the contact was last modified

    Declaration

    Swift

    public var updated: NSDate?
  • Standard initialiser

    Declaration

    Swift

    public init() {}
  • A dictionary representation of the contact which can be submitted to the API to create a new contact or update an existing one

    Declaration

    Swift

    var serialisedObject: [String: AnyObject]