Type.registerNamespace('CreateThe.Com.Web.CodeBase.WebServices');
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService=function() {
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.get_path();},
RegisterEmail:function(firstName,emailAddress,country,zip,succeededCallback, failedCallback, userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="emailAddress" type="String">System.String</param>
/// <param name="country" type="String">System.String</param>
/// <param name="zip" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RegisterEmail',false,{firstName:firstName,emailAddress:emailAddress,country:country,zip:zip},succeededCallback,failedCallback,userContext); },
UnsubscribeEmail:function(emailAddress,succeededCallback, failedCallback, userContext) {
/// <param name="emailAddress" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'UnsubscribeEmail',false,{emailAddress:emailAddress},succeededCallback,failedCallback,userContext); }}
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.registerClass('CreateThe.Com.Web.CodeBase.WebServices.RegistrationService',Sys.Net.WebServiceProxy);
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance = new CreateThe.Com.Web.CodeBase.WebServices.RegistrationService();
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.set_path = function(value) {
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.set_path(value); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.get_path();}
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.set_timeout = function(value) {
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.set_timeout(value); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.get_timeout(); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.set_defaultUserContext = function(value) { 
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.set_defaultUserContext(value); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.get_defaultUserContext(); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.set_defaultSucceededCallback = function(value) { 
 CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.set_defaultSucceededCallback(value); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.get_defaultSucceededCallback(); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.set_defaultFailedCallback = function(value) { 
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.set_defaultFailedCallback(value); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.get_defaultFailedCallback(); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.set_path("/codebase/webservices/registrationservice.asmx");
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.RegisterEmail= function(firstName,emailAddress,country,zip,onSuccess,onFailed,userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="emailAddress" type="String">System.String</param>
/// <param name="country" type="String">System.String</param>
/// <param name="zip" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.RegisterEmail(firstName,emailAddress,country,zip,onSuccess,onFailed,userContext); }
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService.UnsubscribeEmail= function(emailAddress,onSuccess,onFailed,userContext) {
/// <param name="emailAddress" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
CreateThe.Com.Web.CodeBase.WebServices.RegistrationService._staticInstance.UnsubscribeEmail(emailAddress,onSuccess,onFailed,userContext); }

