Type.registerNamespace('TM');
TM.LoginService=function() {
TM.LoginService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TM.LoginService.prototype={
GetForm:function(type,succeededCallback, failedCallback, userContext) {
return this._invoke(TM.LoginService.get_path(), 'GetForm',false,{type:type},succeededCallback,failedCallback,userContext); },
SignIn:function(email,pass,succeededCallback, failedCallback, userContext) {
return this._invoke(TM.LoginService.get_path(), 'SignIn',false,{email:email,pass:pass},succeededCallback,failedCallback,userContext); },
SignOut:function(succeededCallback, failedCallback, userContext) {
return this._invoke(TM.LoginService.get_path(), 'SignOut',false,{},succeededCallback,failedCallback,userContext); }}
TM.LoginService.registerClass('TM.LoginService',Sys.Net.WebServiceProxy);
TM.LoginService._staticInstance = new TM.LoginService();
TM.LoginService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; TM.LoginService._staticInstance._path = value; }
TM.LoginService.get_path = function() { return TM.LoginService._staticInstance._path; }
TM.LoginService.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); }
TM.LoginService._staticInstance._timeout = value; }
TM.LoginService.get_timeout = function() { 
return TM.LoginService._staticInstance._timeout; }
TM.LoginService.set_defaultUserContext = function(value) { 
TM.LoginService._staticInstance._userContext = value; }
TM.LoginService.get_defaultUserContext = function() { 
return TM.LoginService._staticInstance._userContext; }
TM.LoginService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; TM.LoginService._staticInstance._succeeded = value; }
TM.LoginService.get_defaultSucceededCallback = function() { 
return TM.LoginService._staticInstance._succeeded; }
TM.LoginService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; TM.LoginService._staticInstance._failed = value; }
TM.LoginService.get_defaultFailedCallback = function() { 
return TM.LoginService._staticInstance._failed; }
TM.LoginService.set_path("/ws/LoginService.asmx");
TM.LoginService.GetForm= function(type,onSuccess,onFailed,userContext) {TM.LoginService._staticInstance.GetForm(type,onSuccess,onFailed,userContext); }
TM.LoginService.SignIn= function(email,pass,onSuccess,onFailed,userContext) {TM.LoginService._staticInstance.SignIn(email,pass,onSuccess,onFailed,userContext); }
TM.LoginService.SignOut= function(onSuccess,onFailed,userContext) {TM.LoginService._staticInstance.SignOut(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Teknomedia.EdgeII.WebServices');
if (typeof(Teknomedia.EdgeII.WebServices.Result) === 'undefined') {
Teknomedia.EdgeII.WebServices.Result=gtc("Teknomedia.EdgeII.WebServices.Result");
Teknomedia.EdgeII.WebServices.Result.registerClass('Teknomedia.EdgeII.WebServices.Result');
}
