예제 #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 { }
        }
예제 #2
0
 public ResponseBase(string xml)
 {
     Xml = xml;
     ResponseEnvelope = SerializationHelper.Deserialize <OPS_envelope>(xml);
     Protocol         = OpsObjectHelper.GetResponseDataBlockItem(ResponseEnvelope, "protocol").Text;
     Action           = OpsObjectHelper.GetResponseDataBlockItem(ResponseEnvelope, "action").Text;
     Object           = OpsObjectHelper.GetResponseDataBlockItem(ResponseEnvelope, "object").Text;
     IsSuccess        = OpsObjectHelper.SrsBoolToNetBool(OpsObjectHelper.GetResponseDataBlockItem(ResponseEnvelope, "is_success").Text);
     ResponseCode     = Convert.ToInt64(OpsObjectHelper.GetResponseDataBlockItem(ResponseEnvelope, "response_code").Text);
     ResponseText     = OpsObjectHelper.GetResponseDataBlockItem(ResponseEnvelope, "response_text").Text;
 }
예제 #3
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);
         }
     }
 }