コード例 #1
0
ファイル: DotComDomain.cs プロジェクト: davelondon/dontstayin
		/// <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();
		}
コード例 #2
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <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);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <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);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 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]));
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <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);
 }
コード例 #6
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void UpdateDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant) {
     this.UpdateDomainAlertAsync(sCLTRID, credential, domainAlert, sDomainMonitorID, registrant, null);
 }
コード例 #7
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 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]));
 }
コード例 #8
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void SetupDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, ContactInfo registrant) {
     this.SetupDomainAlertAsync(sCLTRID, credential, domainAlert, registrant, null);
 }
コード例 #9
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 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]));
 }