Type.registerNamespace('FourRoads.Components.Services');
FourRoads.Components.Services.AuthenticationService=function() {
FourRoads.Components.Services.AuthenticationService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FourRoads.Components.Services.AuthenticationService.prototype={
VerifyUserLogin:function(request,succeededCallback, failedCallback, userContext) {
return this._invoke(FourRoads.Components.Services.AuthenticationService.get_path(), 'VerifyUserLogin',false,{request:request},succeededCallback,failedCallback,userContext); },
Login:function(request,succeededCallback, failedCallback, userContext) {
return this._invoke(FourRoads.Components.Services.AuthenticationService.get_path(), 'Login',false,{request:request},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(FourRoads.Components.Services.AuthenticationService.get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); }}
FourRoads.Components.Services.AuthenticationService.registerClass('FourRoads.Components.Services.AuthenticationService',Sys.Net.WebServiceProxy);
FourRoads.Components.Services.AuthenticationService._staticInstance = new FourRoads.Components.Services.AuthenticationService();
FourRoads.Components.Services.AuthenticationService.set_path = function(value) { FourRoads.Components.Services.AuthenticationService._staticInstance._path = value; }
FourRoads.Components.Services.AuthenticationService.get_path = function() { return FourRoads.Components.Services.AuthenticationService._staticInstance._path; }
FourRoads.Components.Services.AuthenticationService.set_timeout = function(value) { FourRoads.Components.Services.AuthenticationService._staticInstance._timeout = value; }
FourRoads.Components.Services.AuthenticationService.get_timeout = function() { return FourRoads.Components.Services.AuthenticationService._staticInstance._timeout; }
FourRoads.Components.Services.AuthenticationService.set_defaultUserContext = function(value) { FourRoads.Components.Services.AuthenticationService._staticInstance._userContext = value; }
FourRoads.Components.Services.AuthenticationService.get_defaultUserContext = function() { return FourRoads.Components.Services.AuthenticationService._staticInstance._userContext; }
FourRoads.Components.Services.AuthenticationService.set_defaultSucceededCallback = function(value) { FourRoads.Components.Services.AuthenticationService._staticInstance._succeeded = value; }
FourRoads.Components.Services.AuthenticationService.get_defaultSucceededCallback = function() { return FourRoads.Components.Services.AuthenticationService._staticInstance._succeeded; }
FourRoads.Components.Services.AuthenticationService.set_defaultFailedCallback = function(value) { FourRoads.Components.Services.AuthenticationService._staticInstance._failed = value; }
FourRoads.Components.Services.AuthenticationService.get_defaultFailedCallback = function() { return FourRoads.Components.Services.AuthenticationService._staticInstance._failed; }
FourRoads.Components.Services.AuthenticationService.set_path("/Utility/AjaxLogin/AuthenticationService.asmx");
FourRoads.Components.Services.AuthenticationService.VerifyUserLogin= function(request,onSuccess,onFailed,userContext) {FourRoads.Components.Services.AuthenticationService._staticInstance.VerifyUserLogin(request,onSuccess,onFailed,userContext); }
FourRoads.Components.Services.AuthenticationService.Login= function(request,onSuccess,onFailed,userContext) {FourRoads.Components.Services.AuthenticationService._staticInstance.Login(request,onSuccess,onFailed,userContext); }
FourRoads.Components.Services.AuthenticationService.Logout= function(onSuccess,onFailed,userContext) {FourRoads.Components.Services.AuthenticationService._staticInstance.Logout(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(FourRoads.Components.Services.SaltRequest) === 'undefined') {
FourRoads.Components.Services.SaltRequest=gtc("FourRoads.Components.Services.SaltRequest");
FourRoads.Components.Services.SaltRequest.registerClass('FourRoads.Components.Services.SaltRequest');
}
if (typeof(FourRoads.Components.Services.SaltResponse) === 'undefined') {
FourRoads.Components.Services.SaltResponse=gtc("FourRoads.Components.Services.SaltResponse");
FourRoads.Components.Services.SaltResponse.registerClass('FourRoads.Components.Services.SaltResponse');
}
if (typeof(FourRoads.Components.Services.LoginRequest) === 'undefined') {
FourRoads.Components.Services.LoginRequest=gtc("FourRoads.Components.Services.LoginRequest");
FourRoads.Components.Services.LoginRequest.registerClass('FourRoads.Components.Services.LoginRequest');
}
if (typeof(FourRoads.Components.Services.LoginResponse) === 'undefined') {
FourRoads.Components.Services.LoginResponse=gtc("FourRoads.Components.Services.LoginResponse");
FourRoads.Components.Services.LoginResponse.registerClass('FourRoads.Components.Services.LoginResponse');
}
