/// <summary> /// Prepare a new .com domain for registration /// </summary> /// <param name="secondLevelDomain">e.g. "dontstayin" of "www.dontstayin.com"</param> public DotComDomain(string secondLevelDomain) { this.secondLevelDomain = secondLevelDomain.ToLower(); if (!IsSecondLevelDomainNameValid()) { throw new Exception("Invalid second-level domain: " + this.secondLevelDomain); } this.topLevelDomain = "com"; shopper = new Shopper() { user = "******", pwd = "Blind78bat" //user = "******", //pwd = "Blind78bat", //firstname = "David", //lastname = "Brophy", //email = "*****@*****.**", //phone = "+44.2078355599" }; registrant = new ContactInfo() { fname = "David", lname = "Brophy", org = "Development Hell Limited", sa1 = "90-92 Pentonville Road", sa2 = "London", city = "London", sp = "London", pc = "N1 8HS", cc = "United Kingdom", email = "*****@*****.**", phone = "+44.2078355599", }; credentials = new Credential() { Account = "dontstayin", Password = "******" // TODO: read from database }; wapi = new WAPI(); }
/// <remarks/> public void UpdateDomainContactAsync(string sCLTRID, Credential credential, Domain[] domainArray, ContactInfo registrant, ContactInfo admin, ContactInfo billing, ContactInfo tech, object userState) { if ((this.UpdateDomainContactOperationCompleted == null)) { this.UpdateDomainContactOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainContactOperationCompleted); } this.InvokeAsync("UpdateDomainContact", new object[] { sCLTRID, credential, domainArray, registrant, admin, billing, tech}, this.UpdateDomainContactOperationCompleted, userState); }
/// <remarks/> public void UpdateDomainContactAsync(string sCLTRID, Credential credential, Domain[] domainArray, ContactInfo registrant, ContactInfo admin, ContactInfo billing, ContactInfo tech) { this.UpdateDomainContactAsync(sCLTRID, credential, domainArray, registrant, admin, billing, tech, null); }
public string UpdateDomainContact(string sCLTRID, Credential credential, Domain[] domainArray, ContactInfo registrant, ContactInfo admin, ContactInfo billing, ContactInfo tech) { object[] results = this.Invoke("UpdateDomainContact", new object[] { sCLTRID, credential, domainArray, registrant, admin, billing, tech}); return ((string)(results[0])); }
/// <remarks/> public void UpdateDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant, object userState) { if ((this.UpdateDomainAlertOperationCompleted == null)) { this.UpdateDomainAlertOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainAlertOperationCompleted); } this.InvokeAsync("UpdateDomainAlert", new object[] { sCLTRID, credential, domainAlert, sDomainMonitorID, registrant}, this.UpdateDomainAlertOperationCompleted, userState); }
/// <remarks/> public void UpdateDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant) { this.UpdateDomainAlertAsync(sCLTRID, credential, domainAlert, sDomainMonitorID, registrant, null); }
public string UpdateDomainAlert(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant) { object[] results = this.Invoke("UpdateDomainAlert", new object[] { sCLTRID, credential, domainAlert, sDomainMonitorID, registrant}); return ((string)(results[0])); }
/// <remarks/> public void SetupDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, ContactInfo registrant) { this.SetupDomainAlertAsync(sCLTRID, credential, domainAlert, registrant, null); }
public string SetupDomainAlert(string sCLTRID, Credential credential, DomainAlert domainAlert, ContactInfo registrant) { object[] results = this.Invoke("SetupDomainAlert", new object[] { sCLTRID, credential, domainAlert, registrant}); return ((string)(results[0])); }