예제 #1
0
 public BelongsToRspResponse(string responseXml) : base(responseXml)
 {
     if (IsSuccess)
     {
         belongs_to_rsp = OpsObjectHelper.SrsBoolToNetBool(OpsObjectHelper.GetResponseAttributeItem(ResponseEnvelope, "belongs_to_rsp").Text);
         var domainExpiryNode = OpsObjectHelper.GetResponseAttributeItem(ResponseEnvelope, "domain_expdate");
         if (domainExpiryNode != null)
         {
             domain_expdate = OpsObjectHelper.ConvertToNullableDateTime(domainExpiryNode.Text);
         }
     }
 }
예제 #2
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 { }
        }