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>();
		}
Beispiel #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]));
 }
Beispiel #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);
 }
Beispiel #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]));
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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]));
 }
Beispiel #8
0
 /// <remarks/>
 public void CancelAsync(string sCLTRID, Credential credential, string sType, string[] sIDArray) {
     this.CancelAsync(sCLTRID, credential, sType, sIDArray, null);
 }
Beispiel #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]));
 }
Beispiel #10
0
 /// <remarks/>
 public void OrderCreditsAsync(string sCLTRID, Credential credential, Shopper shopper, OrderItem[] items, string sROID) {
     this.OrderCreditsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Beispiel #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);
 }
Beispiel #12
0
 /// <remarks/>
 public void PollAsync(string sCLTRID, Credential credential, string sOp) {
     this.PollAsync(sCLTRID, credential, sOp, null);
 }
Beispiel #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]));
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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]));
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #21
0
 /// <remarks/>
 public void UpdateDomainOwnershipAsync(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining) {
     this.UpdateDomainOwnershipAsync(sCLTRID, credential, sResourceID, sLosingOwner, gaining, null);
 }
Beispiel #22
0
 /// <remarks/>
 public void OrderDomainPrivacyAsync(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID) {
     this.OrderDomainPrivacyAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Beispiel #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]));
 }
Beispiel #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]));
 }
Beispiel #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);
 }
Beispiel #26
0
 /// <remarks/>
 public void OrderResourceRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     this.OrderResourceRenewalsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Beispiel #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);
 }
Beispiel #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]));
 }
Beispiel #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]));
 }
Beispiel #30
0
 /// <remarks/>
 public void OrderDomainBackOrdersAsync(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID) {
     this.OrderDomainBackOrdersAsync(sCLTRID, credential, shopper, items, sROID, null);
 }