예제 #1
0
        public Contact(string contactId, string fullName, string companyName, string city, string street1, string street2, string street3, string province, string postalCode, string countryCode, string email, Telephone voice, Telephone fax)
        {
            var postalAddress = new PostalAddress
            {
                City          = city,
                Street1       = street1,
                Street2       = street2,
                Street3       = street3,
                StateProvince = province,
                PostalCode    = postalCode,
                CountryCode   = countryCode
            };

            PostalInfo = new PostalInfo
            {
                m_name    = fullName,
                m_org     = companyName,
                m_type    = PostalAddressType.LOC,
                m_address = postalAddress
            };

            Email = email;
            Voice = voice;
            Fax   = fax;
            Id    = contactId;
        }
예제 #2
0
        public Contact(string contactId, string fullName, string companyName, string city, string street1, string street2, string street3, string province, string postalCode, string countryCode, string email, Telephone voice, Telephone fax)
        {
            var postalAddress = new PostalAddress
            {
                City = city,
                Street1 = street1,
                Street2 = street2,
                Street3 = street3,
                StateProvince = province,
                PostalCode = postalCode,
                CountryCode = countryCode
            };

            PostalInfo = new PostalInfo
            {
                m_name = fullName,
                m_org = companyName,
                m_type = PostalAddressType.LOC,
                m_address = postalAddress
            };

            Email = email;
            Voice = voice;
            Fax = fax;
            Id = contactId;

        }
예제 #3
0
 public Contact(string contactId, string fullName, string companyName, string city, string streetAddress, string province, string postalCode, string countryCode, string email, Telephone voice, Telephone fax)
     : this(contactId, fullName, companyName, city, streetAddress, null, null, province, postalCode, countryCode, email, voice, fax)
 {
 }
예제 #4
0
 public Contact(string contactId, string fullName, string companyName, string city, string streetAddress, string province, string postalCode, string countryCode, string email, Telephone voice, Telephone fax)
     : this(contactId, fullName, companyName, city, streetAddress, null, null, province, postalCode, countryCode, email, voice, fax)
 {
 }