/// <summary> /// Initializes a new instance of the <see cref="ContactInfo" /> class. /// Initializes a new instance of the <see cref="ContactInfo" />class. /// </summary> /// <param name="FirstName">For User extension type only. Extension user first name.</param> /// <param name="LastName">For User extension type only. Extension user last name.</param> /// <param name="Company">Extension user company name.</param> /// <param name="Email">Email of extension user.</param> /// <param name="BusinessPhone">Extension user contact phone number.</param> /// <param name="BusinessAddress">BusinessAddress.</param> public ContactInfo(string FirstName = null, string LastName = null, string Company = null, string Email = null, string BusinessPhone = null, ContactAddressInfo BusinessAddress = null) { this.FirstName = FirstName; this.LastName = LastName; this.Company = Company; this.Email = Email; this.BusinessPhone = BusinessPhone; this.BusinessAddress = BusinessAddress; }
/// <summary> /// Initializes a new instance of the <see cref="PersonalContactInfo" /> class. /// Initializes a new instance of the <see cref="PersonalContactInfo" />class. /// </summary> /// <param name="Id">Standard resource properties ID.</param> /// <param name="Url">Canonical URI.</param> /// <param name="Availability">This property has a special meaning only on Address Book Sync (e.g. a contact can be 'Deleted'). For simple contact list reading it has always the default value - 'Alive'.</param> /// <param name="FirstName">First name of a personal contact.</param> /// <param name="LastName">Last name of a personal contact.</param> /// <param name="MiddleName">Middle name of a personal contact.</param> /// <param name="NickName">Nick name of a personal contact.</param> /// <param name="Company">Company name of a personal contact.</param> /// <param name="JobTitle">Job title of a personal contact.</param> /// <param name="HomePhone">Home phone of a personal contact.</param> /// <param name="HomePhone2">The 2-d home phone of a personal contact.</param> /// <param name="BusinessPhone">Business phone of a personal contact.</param> /// <param name="BusinessPhone2">The 2-d business phone of a personal contact.</param> /// <param name="MobilePhone">Mobile phone of a personal contact.</param> /// <param name="BusinessFax">Business fax of a personal contact.</param> /// <param name="CompanyPhone">Company phone of a personal contact.</param> /// <param name="AssistantPhone">Assistant phone of a personal contact.</param> /// <param name="CarPhone">Car phone of a personal contact.</param> /// <param name="OtherPhone">Other phone of a personal contact.</param> /// <param name="OtherFax">Other fax of a personal contact.</param> /// <param name="CallbackPhone">Callback phone of a personal contact.</param> /// <param name="Email">Email of a personal contact.</param> /// <param name="Email2">The 2-d email of a personal contact.</param> /// <param name="Email3">The 3-d email of a personal contact.</param> /// <param name="HomeAddress">HomeAddress.</param> /// <param name="BusinessAddress">BusinessAddress.</param> /// <param name="OtherAddress">OtherAddress.</param> /// <param name="Birthday">Date of birth of a personal contact in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z.</param> /// <param name="WebPage">Web page of a personal contact.</param> /// <param name="Notes">Notes of a personal contact.</param> public PersonalContactInfo(int?Id = null, string Url = null, AvailabilityEnum?Availability = null, string FirstName = null, string LastName = null, string MiddleName = null, string NickName = null, string Company = null, string JobTitle = null, string HomePhone = null, string HomePhone2 = null, string BusinessPhone = null, string BusinessPhone2 = null, string MobilePhone = null, string BusinessFax = null, string CompanyPhone = null, string AssistantPhone = null, string CarPhone = null, string OtherPhone = null, string OtherFax = null, string CallbackPhone = null, string Email = null, string Email2 = null, string Email3 = null, ContactAddressInfo HomeAddress = null, ContactAddressInfo BusinessAddress = null, ContactAddressInfo OtherAddress = null, DateTime?Birthday = null, string WebPage = null, string Notes = null) { this.Id = Id; this.Url = Url; this.Availability = Availability; this.FirstName = FirstName; this.LastName = LastName; this.MiddleName = MiddleName; this.NickName = NickName; this.Company = Company; this.JobTitle = JobTitle; this.HomePhone = HomePhone; this.HomePhone2 = HomePhone2; this.BusinessPhone = BusinessPhone; this.BusinessPhone2 = BusinessPhone2; this.MobilePhone = MobilePhone; this.BusinessFax = BusinessFax; this.CompanyPhone = CompanyPhone; this.AssistantPhone = AssistantPhone; this.CarPhone = CarPhone; this.OtherPhone = OtherPhone; this.OtherFax = OtherFax; this.CallbackPhone = CallbackPhone; this.Email = Email; this.Email2 = Email2; this.Email3 = Email3; this.HomeAddress = HomeAddress; this.BusinessAddress = BusinessAddress; this.OtherAddress = OtherAddress; this.Birthday = Birthday; this.WebPage = WebPage; this.Notes = Notes; }