Type.registerNamespace('alpweb.webservices');
alpweb.webservices.UserService=function() {
alpweb.webservices.UserService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
alpweb.webservices.UserService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return alpweb.webservices.UserService._staticInstance.get_path();},
Login:function(email,password,succeededCallback, failedCallback, userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="password" 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(), 'Login',false,{email:email,password:password},succeededCallback,failedCallback,userContext); },
Register:function(email,host,succeededCallback, failedCallback, userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="host" 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(), 'Register',false,{email:email,host:host},succeededCallback,failedCallback,userContext); },
RegisterNew:function(email,host,firstname,lastname,co,streetaddress,zip,city,phone,password1,password2,contactable,choice1,choice2,choice3,succeededCallback, failedCallback, userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="host" type="String">System.String</param>
/// <param name="firstname" type="String">System.String</param>
/// <param name="lastname" type="String">System.String</param>
/// <param name="co" type="String">System.String</param>
/// <param name="streetaddress" type="String">System.String</param>
/// <param name="zip" type="String">System.String</param>
/// <param name="city" type="String">System.String</param>
/// <param name="phone" type="String">System.String</param>
/// <param name="password1" type="String">System.String</param>
/// <param name="password2" type="String">System.String</param>
/// <param name="contactable" type="Boolean">System.Boolean</param>
/// <param name="choice1" type="Boolean">System.Boolean</param>
/// <param name="choice2" type="Boolean">System.Boolean</param>
/// <param name="choice3" type="Boolean">System.Boolean</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(), 'RegisterNew',false,{email:email,host:host,firstname:firstname,lastname:lastname,co:co,streetaddress:streetaddress,zip:zip,city:city,phone:phone,password1:password1,password2:password2,contactable:contactable,choice1:choice1,choice2:choice2,choice3:choice3},succeededCallback,failedCallback,userContext); },
RegisterMany:function(emails,host,succeededCallback, failedCallback, userContext) {
/// <param name="emails" type="String">System.String</param>
/// <param name="host" 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(), 'RegisterMany',false,{emails:emails,host:host},succeededCallback,failedCallback,userContext); },
ValidateReseller:function(reseller,succeededCallback, failedCallback, userContext) {
/// <param name="reseller" 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(), 'ValidateReseller',false,{reseller:reseller},succeededCallback,failedCallback,userContext); },
Confirm:function(guid,name,co,streetaddress,zip,city,phone,password1,password2,contactable,choice1,choice2,choice3,succeededCallback, failedCallback, userContext) {
/// <param name="guid" type="String">System.String</param>
/// <param name="name" type="String">System.String</param>
/// <param name="co" type="String">System.String</param>
/// <param name="streetaddress" type="String">System.String</param>
/// <param name="zip" type="String">System.String</param>
/// <param name="city" type="String">System.String</param>
/// <param name="phone" type="String">System.String</param>
/// <param name="password1" type="String">System.String</param>
/// <param name="password2" type="String">System.String</param>
/// <param name="contactable" type="Boolean">System.Boolean</param>
/// <param name="choice1" type="Boolean">System.Boolean</param>
/// <param name="choice2" type="Boolean">System.Boolean</param>
/// <param name="choice3" type="Boolean">System.Boolean</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(), 'Confirm',false,{guid:guid,name:name,co:co,streetaddress:streetaddress,zip:zip,city:city,phone:phone,password1:password1,password2:password2,contactable:contactable,choice1:choice1,choice2:choice2,choice3:choice3},succeededCallback,failedCallback,userContext); },
RecoverPassword:function(email,succeededCallback, failedCallback, userContext) {
/// <param name="email" 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(), 'RecoverPassword',false,{email:email},succeededCallback,failedCallback,userContext); },
SendMail:function(variables,succeededCallback, failedCallback, userContext) {
/// <param name="variables" type="Object">System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</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(), 'SendMail',false,{variables:variables},succeededCallback,failedCallback,userContext); }}
alpweb.webservices.UserService.registerClass('alpweb.webservices.UserService',Sys.Net.WebServiceProxy);
alpweb.webservices.UserService._staticInstance = new alpweb.webservices.UserService();
alpweb.webservices.UserService.set_path = function(value) {
alpweb.webservices.UserService._staticInstance.set_path(value); }
alpweb.webservices.UserService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return alpweb.webservices.UserService._staticInstance.get_path();}
alpweb.webservices.UserService.set_timeout = function(value) {
alpweb.webservices.UserService._staticInstance.set_timeout(value); }
alpweb.webservices.UserService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return alpweb.webservices.UserService._staticInstance.get_timeout(); }
alpweb.webservices.UserService.set_defaultUserContext = function(value) { 
alpweb.webservices.UserService._staticInstance.set_defaultUserContext(value); }
alpweb.webservices.UserService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return alpweb.webservices.UserService._staticInstance.get_defaultUserContext(); }
alpweb.webservices.UserService.set_defaultSucceededCallback = function(value) { 
 alpweb.webservices.UserService._staticInstance.set_defaultSucceededCallback(value); }
alpweb.webservices.UserService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return alpweb.webservices.UserService._staticInstance.get_defaultSucceededCallback(); }
alpweb.webservices.UserService.set_defaultFailedCallback = function(value) { 
alpweb.webservices.UserService._staticInstance.set_defaultFailedCallback(value); }
alpweb.webservices.UserService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return alpweb.webservices.UserService._staticInstance.get_defaultFailedCallback(); }
alpweb.webservices.UserService.set_path("/webservices/UserService.asmx");
alpweb.webservices.UserService.Login= function(email,password,onSuccess,onFailed,userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="password" 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>
alpweb.webservices.UserService._staticInstance.Login(email,password,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.Register= function(email,host,onSuccess,onFailed,userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="host" 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>
alpweb.webservices.UserService._staticInstance.Register(email,host,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.RegisterNew= function(email,host,firstname,lastname,co,streetaddress,zip,city,phone,password1,password2,contactable,choice1,choice2,choice3,onSuccess,onFailed,userContext) {
/// <param name="email" type="String">System.String</param>
/// <param name="host" type="String">System.String</param>
/// <param name="firstname" type="String">System.String</param>
/// <param name="lastname" type="String">System.String</param>
/// <param name="co" type="String">System.String</param>
/// <param name="streetaddress" type="String">System.String</param>
/// <param name="zip" type="String">System.String</param>
/// <param name="city" type="String">System.String</param>
/// <param name="phone" type="String">System.String</param>
/// <param name="password1" type="String">System.String</param>
/// <param name="password2" type="String">System.String</param>
/// <param name="contactable" type="Boolean">System.Boolean</param>
/// <param name="choice1" type="Boolean">System.Boolean</param>
/// <param name="choice2" type="Boolean">System.Boolean</param>
/// <param name="choice3" type="Boolean">System.Boolean</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>
alpweb.webservices.UserService._staticInstance.RegisterNew(email,host,firstname,lastname,co,streetaddress,zip,city,phone,password1,password2,contactable,choice1,choice2,choice3,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.RegisterMany= function(emails,host,onSuccess,onFailed,userContext) {
/// <param name="emails" type="String">System.String</param>
/// <param name="host" 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>
alpweb.webservices.UserService._staticInstance.RegisterMany(emails,host,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.ValidateReseller= function(reseller,onSuccess,onFailed,userContext) {
/// <param name="reseller" 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>
alpweb.webservices.UserService._staticInstance.ValidateReseller(reseller,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.Confirm= function(guid,name,co,streetaddress,zip,city,phone,password1,password2,contactable,choice1,choice2,choice3,onSuccess,onFailed,userContext) {
/// <param name="guid" type="String">System.String</param>
/// <param name="name" type="String">System.String</param>
/// <param name="co" type="String">System.String</param>
/// <param name="streetaddress" type="String">System.String</param>
/// <param name="zip" type="String">System.String</param>
/// <param name="city" type="String">System.String</param>
/// <param name="phone" type="String">System.String</param>
/// <param name="password1" type="String">System.String</param>
/// <param name="password2" type="String">System.String</param>
/// <param name="contactable" type="Boolean">System.Boolean</param>
/// <param name="choice1" type="Boolean">System.Boolean</param>
/// <param name="choice2" type="Boolean">System.Boolean</param>
/// <param name="choice3" type="Boolean">System.Boolean</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>
alpweb.webservices.UserService._staticInstance.Confirm(guid,name,co,streetaddress,zip,city,phone,password1,password2,contactable,choice1,choice2,choice3,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.RecoverPassword= function(email,onSuccess,onFailed,userContext) {
/// <param name="email" 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>
alpweb.webservices.UserService._staticInstance.RecoverPassword(email,onSuccess,onFailed,userContext); }
alpweb.webservices.UserService.SendMail= function(variables,onSuccess,onFailed,userContext) {
/// <param name="variables" type="Object">System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</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>
alpweb.webservices.UserService._staticInstance.SendMail(variables,onSuccess,onFailed,userContext); }
