コード例 #1
0
ファイル: LiveTest.cs プロジェクト: davelondon/dontstayin
		public void TestAvailability()
		{
			WAPI wapi = new WAPI();
			Credential credentials = new Credential()
			{
				Account = "dontstayin",
				Password = "******"
			};

			string cltrid = Guid.NewGuid().ToString();
			string response = wapi.CheckAvailability(cltrid, credentials, new string[] { "google.com" }, null, null);
		}
コード例 #2
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();
		}
コード例 #3
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void CancelAsync(string sCLTRID, Credential credential, string sType, string[] sIDArray) {
     this.CancelAsync(sCLTRID, credential, sType, sIDArray, null);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string CheckUser(string sCLTRID, Credential credential, string sType, string sUser, string sPwd) {
     object[] results = this.Invoke("CheckUser", new object[] {
                 sCLTRID,
                 credential,
                 sType,
                 sUser,
                 sPwd});
     return ((string)(results[0]));
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string Poll(string sCLTRID, Credential credential, string sOp) {
     object[] results = this.Invoke("Poll", new object[] {
                 sCLTRID,
                 credential,
                 sOp});
     return ((string)(results[0]));
 }
コード例 #6
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void ResetPasswordAsync(string sCLTRID, Credential credential, string sUser, string sPwd, string sEmail, string sPwdHint, object userState) {
     if ((this.ResetPasswordOperationCompleted == null)) {
         this.ResetPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnResetPasswordOperationCompleted);
     }
     this.InvokeAsync("ResetPassword", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sPwd,
                 sEmail,
                 sPwdHint}, this.ResetPasswordOperationCompleted, userState);
 }
コード例 #7
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void SetShopperInfoAsync(string sCLTRID, Credential credential, string sUser, string sEmail, string sFirstName, string sLastName, string sPhone, string sFax, string sCompany, string sAddress, string sCity, string sState, string sZip, string sCountry, string sShopperPin) {
     this.SetShopperInfoAsync(sCLTRID, credential, sUser, sEmail, sFirstName, sLastName, sPhone, sFax, sCompany, sAddress, sCity, sState, sZip, sCountry, sShopperPin, null);
 }
コード例 #8
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void UpdateDomainOwnershipAsync(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining) {
     this.UpdateDomainOwnershipAsync(sCLTRID, credential, sResourceID, sLosingOwner, gaining, null);
 }
コード例 #9
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string ResetPassword(string sCLTRID, Credential credential, string sUser, string sPwd, string sEmail, string sPwdHint) {
     object[] results = this.Invoke("ResetPassword", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sPwd,
                 sEmail,
                 sPwdHint});
     return ((string)(results[0]));
 }
コード例 #10
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderPrivateDomainRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, DomainRenewal[] items, ResourceRenewal[] dbpItems, string sROID) {
     this.OrderPrivateDomainRenewalsAsync(sCLTRID, credential, shopper, items, dbpItems, sROID, null);
 }
コード例 #11
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderDomainPrivacyAsync(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID) {
     this.OrderDomainPrivacyAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
コード例 #12
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string OrderDomains(string sCLTRID, Credential credential, Shopper shopper, DomainRegistration[] items, DomainByProxy[] dbpItems, string sROID) {
     object[] results = this.Invoke("OrderDomains", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 dbpItems,
                 sROID});
     return ((string)(results[0]));
 }
コード例 #13
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderDomainsAsync(string sCLTRID, Credential credential, Shopper shopper, DomainRegistration[] items, DomainByProxy[] dbpItems, string sROID) {
     this.OrderDomainsAsync(sCLTRID, credential, shopper, items, dbpItems, sROID, null);
 }
コード例 #14
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderCreditsAsync(string sCLTRID, Credential credential, Shopper shopper, OrderItem[] items, string sROID) {
     this.OrderCreditsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
コード例 #15
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void PollAsync(string sCLTRID, Credential credential, string sOp, object userState) {
     if ((this.PollOperationCompleted == null)) {
         this.PollOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPollOperationCompleted);
     }
     this.InvokeAsync("Poll", new object[] {
                 sCLTRID,
                 credential,
                 sOp}, this.PollOperationCompleted, userState);
 }
コード例 #16
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void PollAsync(string sCLTRID, Credential credential, string sOp) {
     this.PollAsync(sCLTRID, credential, sOp, null);
 }
コード例 #17
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void CancelAsync(string sCLTRID, Credential credential, string sType, string[] sIDArray, object userState) {
     if ((this.CancelOperationCompleted == null)) {
         this.CancelOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCancelOperationCompleted);
     }
     this.InvokeAsync("Cancel", new object[] {
                 sCLTRID,
                 credential,
                 sType,
                 sIDArray}, this.CancelOperationCompleted, userState);
 }
コード例 #18
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string OrderResourceRenewals(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     object[] results = this.Invoke("OrderResourceRenewals", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID});
     return ((string)(results[0]));
 }
コード例 #19
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string UpdateDomainOwnership(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining) {
     object[] results = this.Invoke("UpdateDomainOwnership", new object[] {
                 sCLTRID,
                 credential,
                 sResourceID,
                 sLosingOwner,
                 gaining});
     return ((string)(results[0]));
 }
コード例 #20
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderResourceRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     this.OrderResourceRenewalsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
コード例 #21
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void UpdateDomainOwnershipAsync(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining, object userState) {
     if ((this.UpdateDomainOwnershipOperationCompleted == null)) {
         this.UpdateDomainOwnershipOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainOwnershipOperationCompleted);
     }
     this.InvokeAsync("UpdateDomainOwnership", new object[] {
                 sCLTRID,
                 credential,
                 sResourceID,
                 sLosingOwner,
                 gaining}, this.UpdateDomainOwnershipOperationCompleted, userState);
 }
コード例 #22
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string OrderDomainBackOrders(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID) {
     object[] results = this.Invoke("OrderDomainBackOrders", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID});
     return ((string)(results[0]));
 }
コード例 #23
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void ResetPasswordAsync(string sCLTRID, Credential credential, string sUser, string sPwd, string sEmail, string sPwdHint) {
     this.ResetPasswordAsync(sCLTRID, credential, sUser, sPwd, sEmail, sPwdHint, null);
 }
コード例 #24
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderDomainBackOrdersAsync(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID) {
     this.OrderDomainBackOrdersAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
コード例 #25
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string SetShopperInfo(string sCLTRID, Credential credential, string sUser, string sEmail, string sFirstName, string sLastName, string sPhone, string sFax, string sCompany, string sAddress, string sCity, string sState, string sZip, string sCountry, string sShopperPin) {
     object[] results = this.Invoke("SetShopperInfo", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sEmail,
                 sFirstName,
                 sLastName,
                 sPhone,
                 sFax,
                 sCompany,
                 sAddress,
                 sCity,
                 sState,
                 sZip,
                 sCountry,
                 sShopperPin});
     return ((string)(results[0]));
 }
コード例 #26
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void NameGenDBAsync(string sCLTRID, Credential credential, string sKey, int nMaxResults, bool bExcludeTaken, string sTLDs, bool bAddPrefix, bool bAddSuffix, bool bAddDashes, bool bAddRelated, bool bAdvancedSplit, bool bBaseOnTop) {
     this.NameGenDBAsync(sCLTRID, credential, sKey, nMaxResults, bExcludeTaken, sTLDs, bAddPrefix, bAddSuffix, bAddDashes, bAddRelated, bAdvancedSplit, bBaseOnTop, null);
 }
コード例 #27
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void SetShopperInfoAsync(
             string sCLTRID, 
             Credential credential, 
             string sUser, 
             string sEmail, 
             string sFirstName, 
             string sLastName, 
             string sPhone, 
             string sFax, 
             string sCompany, 
             string sAddress, 
             string sCity, 
             string sState, 
             string sZip, 
             string sCountry, 
             string sShopperPin, 
             object userState) {
     if ((this.SetShopperInfoOperationCompleted == null)) {
         this.SetShopperInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetShopperInfoOperationCompleted);
     }
     this.InvokeAsync("SetShopperInfo", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sEmail,
                 sFirstName,
                 sLastName,
                 sPhone,
                 sFax,
                 sCompany,
                 sAddress,
                 sCity,
                 sState,
                 sZip,
                 sCountry,
                 sShopperPin}, this.SetShopperInfoOperationCompleted, userState);
 }
コード例 #28
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 public string Cancel(string sCLTRID, Credential credential, string sType, string[] sIDArray) {
     object[] results = this.Invoke("Cancel", new object[] {
                 sCLTRID,
                 credential,
                 sType,
                 sIDArray});
     return ((string)(results[0]));
 }
コード例 #29
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void OrderDomainBackOrdersAsync(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID, object userState) {
     if ((this.OrderDomainBackOrdersOperationCompleted == null)) {
         this.OrderDomainBackOrdersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnOrderDomainBackOrdersOperationCompleted);
     }
     this.InvokeAsync("OrderDomainBackOrders", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID}, this.OrderDomainBackOrdersOperationCompleted, userState);
 }
コード例 #30
0
ファイル: Reference.cs プロジェクト: davelondon/dontstayin
 /// <remarks/>
 public void NameGenDBAsync(string sCLTRID, Credential credential, string sKey, int nMaxResults, bool bExcludeTaken, string sTLDs, bool bAddPrefix, bool bAddSuffix, bool bAddDashes, bool bAddRelated, bool bAdvancedSplit, bool bBaseOnTop, object userState) {
     if ((this.NameGenDBOperationCompleted == null)) {
         this.NameGenDBOperationCompleted = new System.Threading.SendOrPostCallback(this.OnNameGenDBOperationCompleted);
     }
     this.InvokeAsync("NameGenDB", new object[] {
                 sCLTRID,
                 credential,
                 sKey,
                 nMaxResults,
                 bExcludeTaken,
                 sTLDs,
                 bAddPrefix,
                 bAddSuffix,
                 bAddDashes,
                 bAddRelated,
                 bAdvancedSplit,
                 bBaseOnTop}, this.NameGenDBOperationCompleted, userState);
 }