fix(contacts): missing name property, types (#320)

This commit is contained in:
Job 2016-07-18 04:35:38 +02:00 committed by Ibrahim Hadeed
parent 4841f31a92
commit 074d16605d

View File

@ -7,7 +7,7 @@ export interface IContactProperties {
/** The name of this Contact, suitable for display to end users. */ /** The name of this Contact, suitable for display to end users. */
displayName?: string; displayName?: string;
/** An object containing all components of a persons name. */ /** An object containing all components of a persons name. */
name?: ContactName; name?: IContactName;
/** A casual name by which to address the contact. */ /** A casual name by which to address the contact. */
nickname?: string; nickname?: string;
/** An array of all the contact's phone numbers. */ /** An array of all the contact's phone numbers. */
@ -15,11 +15,11 @@ export interface IContactProperties {
/** An array of all the contact's email addresses. */ /** An array of all the contact's email addresses. */
emails?: IContactField[]; emails?: IContactField[];
/** An array of all the contact's addresses. */ /** An array of all the contact's addresses. */
addresses?: ContactAddress[]; addresses?: IContactAddress[];
/** An array of all the contact's IM addresses. */ /** An array of all the contact's IM addresses. */
ims?: IContactField[]; ims?: IContactField[];
/** An array of all the contact's organizations. */ /** An array of all the contact's organizations. */
organizations?: ContactOrganization[]; organizations?: IContactOrganization[];
/** The birthday of the contact. */ /** The birthday of the contact. */
birthday?: Date; birthday?: Date;
/** A note about the contact. */ /** A note about the contact. */
@ -36,16 +36,17 @@ export interface IContactProperties {
/** /**
* @private * @private
*/ */
export class Contact { export class Contact implements IContactProperties {
private _objectInstance: any; private _objectInstance: any;
@InstanceProperty get id(): string {return; } @InstanceProperty get id(): string {return; }
@InstanceProperty get displayName(): string {return; } @InstanceProperty get displayName(): string {return; }
@InstanceProperty get nickname(): ContactName {return; } @InstanceProperty get name(): IContactName {return; }
@InstanceProperty get phoneNumbers(): string {return; } @InstanceProperty get nickname(): string {return; }
@InstanceProperty get phoneNumbers(): IContactField[] {return; }
@InstanceProperty get emails(): IContactField[] {return; } @InstanceProperty get emails(): IContactField[] {return; }
@InstanceProperty get addresses(): ContactAddress[] {return; } @InstanceProperty get addresses(): IContactAddress[] {return; }
@InstanceProperty get ims(): IContactField[] {return; } @InstanceProperty get ims(): IContactField[] {return; }
@InstanceProperty get organizations(): ContactOrganization[] {return; } @InstanceProperty get organizations(): IContactOrganization[] {return; }
@InstanceProperty get birthday(): Date {return; } @InstanceProperty get birthday(): Date {return; }
@InstanceProperty get note(): string {return; } @InstanceProperty get note(): string {return; }
@InstanceProperty get photos(): IContactField[] {return; } @InstanceProperty get photos(): IContactField[] {return; }