var WebService=function() {
WebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebService.prototype={
IsUserAvailable:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'IsUserAvailable',false,{username:username},succeededCallback,failedCallback,userContext); },
ResendEmail:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ResendEmail',false,{username:username},succeededCallback,failedCallback,userContext); },
ResendSMS:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ResendSMS',false,{username:username},succeededCallback,failedCallback,userContext); },
SendEmailCode:function(username,email,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'SendEmailCode',false,{username:username,email:email},succeededCallback,failedCallback,userContext); },
ChangeEmailID:function(username,email,ecode,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ChangeEmailID',false,{username:username,email:email,ecode:ecode},succeededCallback,failedCallback,userContext); },
SendSMSCode:function(username,mobile,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'SendSMSCode',false,{username:username,mobile:mobile},succeededCallback,failedCallback,userContext); },
ChangeMobileNo:function(username,mobile,smscode,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ChangeMobileNo',false,{username:username,mobile:mobile,smscode:smscode},succeededCallback,failedCallback,userContext); },
IsValidSystemUser:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'IsValidSystemUser',false,{username:username},succeededCallback,failedCallback,userContext); }}
WebService.registerClass('WebService',Sys.Net.WebServiceProxy);
WebService._staticInstance = new WebService();
WebService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; WebService._staticInstance._path = value; }
WebService.get_path = function() { return WebService._staticInstance._path; }
WebService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
WebService._staticInstance._timeout = value; }
WebService.get_timeout = function() { 
return WebService._staticInstance._timeout; }
WebService.set_defaultUserContext = function(value) { 
WebService._staticInstance._userContext = value; }
WebService.get_defaultUserContext = function() { 
return WebService._staticInstance._userContext; }
WebService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; WebService._staticInstance._succeeded = value; }
WebService.get_defaultSucceededCallback = function() { 
return WebService._staticInstance._succeeded; }
WebService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; WebService._staticInstance._failed = value; }
WebService.get_defaultFailedCallback = function() { 
return WebService._staticInstance._failed; }
WebService.set_path("/WebService.asmx");
WebService.IsUserAvailable= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.IsUserAvailable(username,onSuccess,onFailed,userContext); }
WebService.ResendEmail= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.ResendEmail(username,onSuccess,onFailed,userContext); }
WebService.ResendSMS= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.ResendSMS(username,onSuccess,onFailed,userContext); }
WebService.SendEmailCode= function(username,email,onSuccess,onFailed,userContext) {WebService._staticInstance.SendEmailCode(username,email,onSuccess,onFailed,userContext); }
WebService.ChangeEmailID= function(username,email,ecode,onSuccess,onFailed,userContext) {WebService._staticInstance.ChangeEmailID(username,email,ecode,onSuccess,onFailed,userContext); }
WebService.SendSMSCode= function(username,mobile,onSuccess,onFailed,userContext) {WebService._staticInstance.SendSMSCode(username,mobile,onSuccess,onFailed,userContext); }
WebService.ChangeMobileNo= function(username,mobile,smscode,onSuccess,onFailed,userContext) {WebService._staticInstance.ChangeMobileNo(username,mobile,smscode,onSuccess,onFailed,userContext); }
WebService.IsValidSystemUser= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.IsValidSystemUser(username,onSuccess,onFailed,userContext); }

