Contact

data class Contact(var uid: String? = null, var group: Boolean = false, val members: MutableSet<String> = mutableSetOf(), var displayName: String? = null, var prefix: String? = null, var givenName: String? = null, var middleName: String? = null, var familyName: String? = null, var suffix: String? = null, var phoneticGivenName: String? = null, var phoneticMiddleName: String? = null, var phoneticFamilyName: String? = null, var nickName: LabeledProperty<Nickname>? = null, var organization: Organization? = null, var jobTitle: String? = null, var jobDescription: String? = null, val phoneNumbers: LinkedList<LabeledProperty<Telephone>> = LinkedList(), val emails: LinkedList<LabeledProperty<Email>> = LinkedList(), val impps: LinkedList<LabeledProperty<Impp>> = LinkedList(), val addresses: LinkedList<LabeledProperty<Address>> = LinkedList(), val categories: LinkedList<String> = LinkedList(), val urls: LinkedList<LabeledProperty<Url>> = LinkedList(), val relations: LinkedList<Related> = LinkedList(), var note: String? = null, var anniversary: Anniversary? = null, var birthDay: Birthday? = null, val customDates: LinkedList<LabeledProperty<XAbDate>> = LinkedList(), var photo: ByteArray? = null, var unknownProperties: String? = null)

Data class for a contact; between vCards and the Android contacts provider.

Data shall be stored without workarounds in the most appropriate form. For instance, an anniversary should be stored as anniversary and not in customDates with a proprietary label. Strings should not be empty values (rather null in this case).

vCards are parsed to Contacts by ContactReader. Contacts are written to vCards by ContactWriter.

Contacts are written to and read from the Android storage by AndroidContact.

Constructors

Link copied to clipboard
constructor(uid: String? = null, group: Boolean = false, members: MutableSet<String> = mutableSetOf(), displayName: String? = null, prefix: String? = null, givenName: String? = null, middleName: String? = null, familyName: String? = null, suffix: String? = null, phoneticGivenName: String? = null, phoneticMiddleName: String? = null, phoneticFamilyName: String? = null, nickName: LabeledProperty<Nickname>? = null, organization: Organization? = null, jobTitle: String? = null, jobDescription: String? = null, phoneNumbers: LinkedList<LabeledProperty<Telephone>> = LinkedList(), emails: LinkedList<LabeledProperty<Email>> = LinkedList(), impps: LinkedList<LabeledProperty<Impp>> = LinkedList(), addresses: LinkedList<LabeledProperty<Address>> = LinkedList(), categories: LinkedList<String> = LinkedList(), urls: LinkedList<LabeledProperty<Url>> = LinkedList(), relations: LinkedList<Related> = LinkedList(), note: String? = null, anniversary: Anniversary? = null, birthDay: Birthday? = null, customDates: LinkedList<LabeledProperty<XAbDate>> = LinkedList(), photo: ByteArray? = null, unknownProperties: String? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Downloader

Properties

Link copied to clipboard
Link copied to clipboard
var anniversary: Anniversary?
Link copied to clipboard
var birthDay: Birthday?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

list of UIDs of group members without urn:uuid prefix (only meaningful if group is true)

Link copied to clipboard
Link copied to clipboard
var nickName: LabeledProperty<Nickname>?

vCard NICKNAME – Android only supports one nickname

Link copied to clipboard
var note: String?
Link copied to clipboard
var organization: Organization?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val relations: LinkedList<Related>
Link copied to clipboard
Link copied to clipboard
var uid: String?
Link copied to clipboard

unknown properties in text vCard format

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): <Error class: unknown class>
Link copied to clipboard
open override fun toString(): <Error class: unknown class>

Implements Object.toString. Truncates properties with potential big values:

Link copied to clipboard
fun writeJCard(os: OutputStream, productId: String)
Link copied to clipboard
fun writeVCard(vCardVersion: VCardVersion, os: OutputStream, productId: String)