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 { } }
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; }
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); } } }