Exemplo n.º 1
0
        public IprData(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                icm_membership_id = OpsObjectHelper.GetItemFromArray(detailsArray, "icm_membership_id").Text;
            }
            catch { }
            try
            {
                ipr_email = OpsObjectHelper.GetItemFromArray(detailsArray, "ipr_email").Text;
            }
            catch { }
            try
            {
                ipr_name = OpsObjectHelper.GetItemFromArray(detailsArray, "ipr_name").Text;
            }
            catch { }
            try
            {
                ipr_non_resolver = OpsObjectHelper.SrsBoolToNetBool(OpsObjectHelper.GetItemFromArray(detailsArray, "ipr_non_resolver").Text);
            }
            catch { }
        }
Exemplo n.º 2
0
        public ContactSet(OPS_envelope response)
        {
            var contacts = (dt_assoc)OpsObjectHelper.GetResponseAttributeItem(response, "contact_set").Item;

            if (contacts != null)
            {
                var adminContact   = OpsObjectHelper.GetItemFromArray(contacts, "admin");
                var billingContact = OpsObjectHelper.GetItemFromArray(contacts, "billing");
                var ownerContact   = OpsObjectHelper.GetItemFromArray(contacts, "owner");
                var techContact    = OpsObjectHelper.GetItemFromArray(contacts, "tech");

                if (adminContact != null)
                {
                    admin = new Contact(adminContact);
                }
                if (billingContact != null)
                {
                    billing = new Contact(billingContact);
                }
                if (ownerContact != null)
                {
                    owner = new Contact(ownerContact);
                }
                if (techContact != null)
                {
                    tech = new Contact(techContact);
                }
            }
        }
Exemplo n.º 3
0
        public GetDeletedDomainsResponse(string xml) : base(xml)
        {
            if (IsSuccess)
            {
                del_domains = new List <DeletedDomain>();
                var delDomainsArray = (dt_array)OpsObjectHelper.GetResponseAttributeItem(ResponseEnvelope, "del_domains").Item;

                foreach (item i in delDomainsArray.Items)
                {
                    var array  = (dt_assoc)i.Item;
                    var domain = new DeletedDomain
                    {
                        delete_date = OpsObjectHelper.ConvertToDateTime(OpsObjectHelper.GetItemFromArray(array, "delete_date").Text),
                        expire_date = OpsObjectHelper.ConvertToDateTime(OpsObjectHelper.GetItemFromArray(array, "expire_date").Text),
                        name        = OpsObjectHelper.GetItemFromArray(array, "name").Text,
                        reason      = OpsObjectHelper.GetItemFromArray(array, "reason").Text
                    };
                    del_domains.Add(domain);
                }

                page      = Convert.ToInt32(OpsObjectHelper.GetResponseAttributeItem(ResponseEnvelope, "page").Text);
                page_size = Convert.ToInt32(OpsObjectHelper.GetResponseAttributeItem(ResponseEnvelope, "page_size").Text);
                total     = Convert.ToInt32(OpsObjectHelper.GetResponseAttributeItem(ResponseEnvelope, "total").Text);
            }
        }
Exemplo n.º 4
0
        public ProfessionalData(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                authority = OpsObjectHelper.GetItemFromArray(detailsArray, "authority").Text;
            }
            catch { }
            try
            {
                authority_website = OpsObjectHelper.GetItemFromArray(detailsArray, "authority_website").Text;
            }
            catch { }
            try
            {
                license_number = OpsObjectHelper.GetItemFromArray(detailsArray, "license_number").Text;
            }
            catch { }
            try
            {
                profession = OpsObjectHelper.GetItemFromArray(detailsArray, "profession").Text;
            }
            catch { }
        }
Exemplo n.º 5
0
        public TldData(OPS_envelope response)
        {
            var tldDataItem = OpsObjectHelper.GetResponseAttributeItem(response, "tld_data");

            if (tldDataItem != null)
            {
                var tldData = (dt_assoc)tldDataItem.Item;
                if (tldData != null)
                {
                    var auRegistrantInfoItem = OpsObjectHelper.GetItemFromArray(tldData, "au_registrant_info");
                    if (auRegistrantInfoItem != null)
                    {
                        au_registrant_info = new AuRegistrantInfo(auRegistrantInfoItem);
                    }

                    var brRegisterNumberItem = OpsObjectHelper.GetItemFromArray(tldData, "br_register_number");
                    if (brRegisterNumberItem != null)
                    {
                        br_register_number = brRegisterNumberItem.Text;
                    }

                    var cedInfoItem = OpsObjectHelper.GetItemFromArray(tldData, "ced_info");
                    if (cedInfoItem != null)
                    {
                        ced_info = new CedInfo(cedInfoItem);
                    }

                    var iprDataItem = OpsObjectHelper.GetItemFromArray(tldData, "ipr_data");
                    if (iprDataItem != null)
                    {
                        ipr_data = new IprData(iprDataItem);
                    }

                    var itRegistrantInfoItem = OpsObjectHelper.GetItemFromArray(tldData, "it_registrant_info");
                    if (itRegistrantInfoItem != null)
                    {
                        it_registrant_info = new ItRegistrantInfo(itRegistrantInfoItem);
                    }

                    var nexusItem = OpsObjectHelper.GetItemFromArray(tldData, "nexus");
                    if (nexusItem != null)
                    {
                        nexus = new Nexus(nexusItem);
                    }

                    var professionalDataItem = OpsObjectHelper.GetItemFromArray(tldData, "professional_data");
                    if (professionalDataItem != null)
                    {
                        professional_data = new ProfessionalData(professionalDataItem);
                    }

                    var registrantExtraInfoItem = OpsObjectHelper.GetItemFromArray(tldData, "registrant_extra_info");
                    if (registrantExtraInfoItem != null)
                    {
                        registrant_extra_info = new RegistrantExtraInfo(registrantExtraInfoItem);
                    }
                }
            }
        }
Exemplo n.º 6
0
        public CedInfo(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                contact_type = OpsObjectHelper.GetItemFromArray(detailsArray, "contact_type").Text;
            }
            catch { }
            try
            {
                id_number = OpsObjectHelper.GetItemFromArray(detailsArray, "id_number").Text;
            }
            catch { }
            try
            {
                id_type = OpsObjectHelper.GetItemFromArray(detailsArray, "id_type").Text;
            }
            catch { }
            try
            {
                id_type_info = OpsObjectHelper.GetItemFromArray(detailsArray, "id_type_info").Text;
            }
            catch { }
            try
            {
                legal_entity_type = OpsObjectHelper.GetItemFromArray(detailsArray, "legal_entity_type").Text;
            }
            catch { }
            try
            {
                legal_entity_type_info = OpsObjectHelper.GetItemFromArray(detailsArray, "legal_entity_type_info").Text;
            }
            catch { }
            try
            {
                locality_city = OpsObjectHelper.GetItemFromArray(detailsArray, "locality_city").Text;
            }
            catch { }
            try
            {
                locality_country = OpsObjectHelper.GetItemFromArray(detailsArray, "locality_country").Text;
            }
            catch { }
            try
            {
                locality_state_prov = OpsObjectHelper.GetItemFromArray(detailsArray, "locality_state_prov").Text;
            }
            catch { }
        }
Exemplo n.º 7
0
        public Contact(item contactItem)
        {
            if (contactItem != null)
            {
                var detailsArray = contactItem.Item as dt_assoc;

                first_name  = OpsObjectHelper.GetItemFromArray(detailsArray, "first_name").Text;
                last_name   = OpsObjectHelper.GetItemFromArray(detailsArray, "last_name").Text;
                phone       = OpsObjectHelper.GetItemFromArray(detailsArray, "phone").Text;
                email       = OpsObjectHelper.GetItemFromArray(detailsArray, "email").Text;
                address1    = OpsObjectHelper.GetItemFromArray(detailsArray, "address1").Text;
                city        = OpsObjectHelper.GetItemFromArray(detailsArray, "city").Text;
                country     = OpsObjectHelper.GetItemFromArray(detailsArray, "country").Text;
                postal_code = OpsObjectHelper.GetItemFromArray(detailsArray, "postal_code").Text;

                //optional values wrapped in try/catch
                try
                {
                    title = OpsObjectHelper.GetItemFromArray(detailsArray, "title").Text;
                }
                catch { }
                try
                {
                    address2 = OpsObjectHelper.GetItemFromArray(detailsArray, "address2").Text;
                }
                catch { }

                try
                {
                    state = OpsObjectHelper.GetItemFromArray(detailsArray, "state").Text;
                }
                catch { }
                try
                {
                    fax = OpsObjectHelper.GetItemFromArray(detailsArray, "fax").Text;
                }
                catch { }
                try
                {
                    lang = OpsObjectHelper.GetItemFromArray(detailsArray, "lang").Text;
                }
                catch { }
                try
                {
                    vat = OpsObjectHelper.GetItemFromArray(detailsArray, "vat").Text;
                }
                catch { }
            }
        }
Exemplo n.º 8
0
        public AuRegistrantInfo(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                eligibility_id = OpsObjectHelper.GetItemFromArray(detailsArray, "eligibility_id").Text;
            }
            catch { }
            try
            {
                eligibility_id_type = OpsObjectHelper.GetItemFromArray(detailsArray, "eligibility_id_type").Text;
            }
            catch { }
            try
            {
                eligibility_name = OpsObjectHelper.GetItemFromArray(detailsArray, "eligibility_name").Text;
            }
            catch { }
            try
            {
                eligibility_type = OpsObjectHelper.GetItemFromArray(detailsArray, "eligibility_type").Text;
            }
            catch { }
            try
            {
                policy_reason = OpsObjectHelper.ToNullableInt32(OpsObjectHelper.GetItemFromArray(detailsArray, "policy_reason").Text);
            }
            catch { }
            try
            {
                registrant_id = OpsObjectHelper.GetItemFromArray(detailsArray, "registrant_id").Text;
            }
            catch { }
            try
            {
                registrant_id_type = OpsObjectHelper.GetItemFromArray(detailsArray, "registrant_id_type").Text;
            }
            catch { }
            try
            {
                registrant_name = OpsObjectHelper.GetItemFromArray(detailsArray, "registrant_name").Text;
            }
            catch { }
        }
Exemplo n.º 9
0
        public Nexus(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                app_purpose = OpsObjectHelper.GetItemFromArray(detailsArray, "app_purpose").Text;
            }
            catch { }
            try
            {
                category = OpsObjectHelper.GetItemFromArray(detailsArray, "category").Text;
            }
            catch { }
            try
            {
                validator = OpsObjectHelper.GetItemFromArray(detailsArray, "validator").Text;
            }
            catch { }
        }
Exemplo n.º 10
0
        public ItRegistrantInfo(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                entity_type = OpsObjectHelper.GetItemFromArray(detailsArray, "entity_type").Text;
            }
            catch { }
            try
            {
                nationality_code = OpsObjectHelper.GetItemFromArray(detailsArray, "nationality_code").Text;
            }
            catch { }
            try
            {
                reg_code = OpsObjectHelper.GetItemFromArray(detailsArray, "reg_code").Text;
            }
            catch { }
        }
Exemplo n.º 11
0
        public RegistrantExtraInfo(item item)
        {
            var detailsArray = item.Item as dt_assoc;

            try
            {
                aero_ens_id = OpsObjectHelper.GetItemFromArray(detailsArray, "aero_ens_id").Text;
            }
            catch { }
            try
            {
                aero_ens_password = OpsObjectHelper.GetItemFromArray(detailsArray, "aero_ens_password").Text;
            }
            catch { }
            try
            {
                coop_verification_code = OpsObjectHelper.GetItemFromArray(detailsArray, "coop_verification_code").Text;
            }
            catch { }
            try
            {
                country_of_birth = OpsObjectHelper.GetItemFromArray(detailsArray, "country_of_birth").Text;
            }
            catch { }
            try
            {
                date_of_birth = OpsObjectHelper.ConvertToNullableDateTime(OpsObjectHelper.GetItemFromArray(detailsArray, "date_of_birth").Text);
            }
            catch { }
            try
            {
                id_card_authority = OpsObjectHelper.GetItemFromArray(detailsArray, "id_card_authority").Text;
            }
            catch { }
            try
            {
                id_card_issue_date = OpsObjectHelper.ConvertToNullableDateTime(OpsObjectHelper.GetItemFromArray(detailsArray, "id_card_issue_date").Text);
            }
            catch { }
            try
            {
                id_card_number = OpsObjectHelper.GetItemFromArray(detailsArray, "id_card_number").Text;
            }
            catch { }
            try
            {
                jobs_admin_type = OpsObjectHelper.GetItemFromArray(detailsArray, "jobs_admin_type").Text;
            }
            catch { }
            try
            {
                jobs_association_member = OpsObjectHelper.GetItemFromArray(detailsArray, "jobs_association_member").Text;
            }
            catch { }
            try
            {
                jobs_industry_type = OpsObjectHelper.GetItemFromArray(detailsArray, "jobs_industry_type").Text;
            }
            catch { }
            try
            {
                jobs_title = OpsObjectHelper.GetItemFromArray(detailsArray, "jobs_title").Text;
            }
            catch { }
            try
            {
                jobs_website = OpsObjectHelper.GetItemFromArray(detailsArray, "jobs_website").Text;
            }
            catch { }
            try
            {
                place_of_birth = OpsObjectHelper.GetItemFromArray(detailsArray, "place_of_birth").Text;
            }
            catch { }
            try
            {
                postal_code_of_birth = OpsObjectHelper.GetItemFromArray(detailsArray, "postal_code_of_birth").Text;
            }
            catch { }
            try
            {
                province_of_birth = OpsObjectHelper.GetItemFromArray(detailsArray, "province_of_birth").Text;
            }
            catch { }
            try
            {
                registration_number = OpsObjectHelper.GetItemFromArray(detailsArray, "registration_number").Text;
            }
            catch { }
            try
            {
                registrant_type = OpsObjectHelper.GetItemFromArray(detailsArray, "registrant_type").Text;
            }
            catch { }
            try
            {
                registrant_vat_id = OpsObjectHelper.GetItemFromArray(detailsArray, "registrant_vat_id").Text;
            }
            catch { }
            try
            {
                siren_siret = OpsObjectHelper.GetItemFromArray(detailsArray, "siren_siret").Text;
            }
            catch { }
            try
            {
                tax_number = OpsObjectHelper.GetItemFromArray(detailsArray, "tax_number").Text;
            }
            catch { }
            try
            {
                trademark_number = OpsObjectHelper.GetItemFromArray(detailsArray, "trademark_number").Text;
            }
            catch { }
            try
            {
                travel_uin = OpsObjectHelper.GetItemFromArray(detailsArray, "travel_uin").Text;
            }
            catch { }
        }