Пример #1
0
		public OteCertificationRegistrar(params string[] domainNames)
		{
			wapi = new WAPI();
			cred = new Credential();
			cred.Account = "dontstayin";
			cred.Password = "******"; // TODO read this from database

			this.domainNames = domainNames;
			for (int i = 0; i < domainNames.Length; i++)
			{
				this.domainNames[i] = this.domainNames[i].ToLower();
			}

			orderDomainTransactionID = Guid.NewGuid().ToString();
			orderPrivacyTransactionID = Guid.NewGuid().ToString();
			otherTransactionIDs = new List<string>();
		}
Пример #2
0
 public string NameGenDB(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[] results = this.Invoke("NameGenDB", new object[] {
                 sCLTRID,
                 credential,
                 sKey,
                 nMaxResults,
                 bExcludeTaken,
                 sTLDs,
                 bAddPrefix,
                 bAddSuffix,
                 bAddDashes,
                 bAddRelated,
                 bAdvancedSplit,
                 bBaseOnTop});
     return ((string)(results[0]));
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 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]));
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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);
 }
Пример #7
0
 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]));
 }
Пример #8
0
 /// <remarks/>
 public void CancelAsync(string sCLTRID, Credential credential, string sType, string[] sIDArray) {
     this.CancelAsync(sCLTRID, credential, sType, sIDArray, null);
 }
Пример #9
0
 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]));
 }
Пример #10
0
 /// <remarks/>
 public void OrderCreditsAsync(string sCLTRID, Credential credential, Shopper shopper, OrderItem[] items, string sROID) {
     this.OrderCreditsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Пример #11
0
 /// <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);
 }
Пример #12
0
 /// <remarks/>
 public void PollAsync(string sCLTRID, Credential credential, string sOp) {
     this.PollAsync(sCLTRID, credential, sOp, null);
 }
Пример #13
0
 public string Poll(string sCLTRID, Credential credential, string sOp) {
     object[] results = this.Invoke("Poll", new object[] {
                 sCLTRID,
                 credential,
                 sOp});
     return ((string)(results[0]));
 }
Пример #14
0
 /// <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);
 }
Пример #15
0
 /// <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);
 }
Пример #16
0
 /// <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);
 }
Пример #17
0
 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]));
 }
Пример #18
0
 /// <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);
 }
Пример #19
0
 /// <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);
 }
Пример #20
0
 /// <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);
 }
Пример #21
0
 /// <remarks/>
 public void UpdateDomainOwnershipAsync(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining) {
     this.UpdateDomainOwnershipAsync(sCLTRID, credential, sResourceID, sLosingOwner, gaining, null);
 }
Пример #22
0
 /// <remarks/>
 public void OrderDomainPrivacyAsync(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID) {
     this.OrderDomainPrivacyAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Пример #23
0
 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]));
 }
Пример #24
0
 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]));
 }
Пример #25
0
 /// <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);
 }
Пример #26
0
 /// <remarks/>
 public void OrderResourceRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     this.OrderResourceRenewalsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Пример #27
0
 /// <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);
 }
Пример #28
0
 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]));
 }
Пример #29
0
 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]));
 }
Пример #30
0
 /// <remarks/>
 public void OrderDomainBackOrdersAsync(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID) {
     this.OrderDomainBackOrdersAsync(sCLTRID, credential, shopper, items, sROID, null);
 }