Beispiel #1
0
		/// <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();
		}
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 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]));
 }
Beispiel #5
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);
 }
Beispiel #6
0
 /// <remarks/>
 public void UpdateDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant) {
     this.UpdateDomainAlertAsync(sCLTRID, credential, domainAlert, sDomainMonitorID, registrant, null);
 }
Beispiel #7
0
 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]));
 }
Beispiel #8
0
 /// <remarks/>
 public void SetupDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, ContactInfo registrant) {
     this.SetupDomainAlertAsync(sCLTRID, credential, domainAlert, registrant, null);
 }
Beispiel #9
0
 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]));
 }