public void BuildOpsEnvelope(string version, string registrantIp) { ObjectCollection = OpsObjectHelper.BuildOpsEnvelope(version, "get_deleted_domains", "DOMAIN", registrantIp); if (!String.IsNullOrEmpty(admin_email)) { ObjectCollection.AttributesArray.Items.Add(new item("admin_email", admin_email)); } if (!String.IsNullOrEmpty(billing_email)) { ObjectCollection.AttributesArray.Items.Add(new item("billing_email", billing_email)); } if (del_from.HasValue) { ObjectCollection.AttributesArray.Items.Add(new item("del_from", del_from.Value.ToString("yyyy-MM-dd"))); } if (del_to.HasValue) { ObjectCollection.AttributesArray.Items.Add(new item("del_to", del_to.Value.ToString("yyyy-MM-dd"))); } if (!String.IsNullOrEmpty(domain)) { ObjectCollection.AttributesArray.Items.Add(new item("domain", domain)); } if (exp_from.HasValue) { ObjectCollection.AttributesArray.Items.Add(new item("exp_from", exp_from.Value.ToString("yyyy-MM-dd"))); } if (exp_to.HasValue) { ObjectCollection.AttributesArray.Items.Add(new item("exp_to", exp_to.Value.ToString("yyyy-MM-dd"))); } if (limit.HasValue) { ObjectCollection.AttributesArray.Items.Add(new item("limit", limit.Value.ToString())); } if (!String.IsNullOrEmpty(owner_email)) { ObjectCollection.AttributesArray.Items.Add(new item("owner_email", owner_email)); } if (page.HasValue) { ObjectCollection.AttributesArray.Items.Add(new item("page", page.ToString())); } if (!String.IsNullOrEmpty(tech_email)) { ObjectCollection.AttributesArray.Items.Add(new item("tech_email", tech_email)); } }
public void BuildOpsEnvelope(string version, string registrantIp) { ObjectCollection = OpsObjectHelper.BuildOpsEnvelope(version, "get_balance", "balance", registrantIp); }
public void BuildOpsEnvelope(string version, string registrantIp) { ObjectCollection = OpsObjectHelper.BuildOpsEnvelope(version, "GET", "DOMAIN", registrantIp); ObjectCollection.AttributesArray.Items.Add(new item("domain", domain)); ObjectCollection.AttributesArray.Items.Add(new item("type", type)); }