Type.registerNamespace('Nrk.Untouched.WebService');
Nrk.Untouched.WebService.Authentication=function() {
Nrk.Untouched.WebService.Authentication.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Nrk.Untouched.WebService.Authentication.prototype={
Login:function(userName,password,createPersistentCookie,succeededCallback, failedCallback, userContext) {
return this._invoke(Nrk.Untouched.WebService.Authentication.get_path(), 'Login',false,{userName:userName,password:password,createPersistentCookie:createPersistentCookie},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Nrk.Untouched.WebService.Authentication.get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); }}
Nrk.Untouched.WebService.Authentication.registerClass('Nrk.Untouched.WebService.Authentication',Sys.Net.WebServiceProxy);
Nrk.Untouched.WebService.Authentication._staticInstance = new Nrk.Untouched.WebService.Authentication();
Nrk.Untouched.WebService.Authentication.set_path = function(value) { Nrk.Untouched.WebService.Authentication._staticInstance._path = value; }
Nrk.Untouched.WebService.Authentication.get_path = function() { return Nrk.Untouched.WebService.Authentication._staticInstance._path; }
Nrk.Untouched.WebService.Authentication.set_timeout = function(value) { Nrk.Untouched.WebService.Authentication._staticInstance._timeout = value; }
Nrk.Untouched.WebService.Authentication.get_timeout = function() { return Nrk.Untouched.WebService.Authentication._staticInstance._timeout; }
Nrk.Untouched.WebService.Authentication.set_defaultUserContext = function(value) { Nrk.Untouched.WebService.Authentication._staticInstance._userContext = value; }
Nrk.Untouched.WebService.Authentication.get_defaultUserContext = function() { return Nrk.Untouched.WebService.Authentication._staticInstance._userContext; }
Nrk.Untouched.WebService.Authentication.set_defaultSucceededCallback = function(value) { Nrk.Untouched.WebService.Authentication._staticInstance._succeeded = value; }
Nrk.Untouched.WebService.Authentication.get_defaultSucceededCallback = function() { return Nrk.Untouched.WebService.Authentication._staticInstance._succeeded; }
Nrk.Untouched.WebService.Authentication.set_defaultFailedCallback = function(value) { Nrk.Untouched.WebService.Authentication._staticInstance._failed = value; }
Nrk.Untouched.WebService.Authentication.get_defaultFailedCallback = function() { return Nrk.Untouched.WebService.Authentication._staticInstance._failed; }
Nrk.Untouched.WebService.Authentication.set_path("/urort/_websvc/Authentication.asmx");
Nrk.Untouched.WebService.Authentication.Login= function(userName,password,createPersistentCookie,onSuccess,onFailed,userContext) {Nrk.Untouched.WebService.Authentication._staticInstance.Login(userName,password,createPersistentCookie,onSuccess,onFailed,userContext); }
Nrk.Untouched.WebService.Authentication.Logout= function(onSuccess,onFailed,userContext) {Nrk.Untouched.WebService.Authentication._staticInstance.Logout(onSuccess,onFailed,userContext); }
