var Security=function() {
Security.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Security.prototype={
Login:function(Email,Password,succeededCallback, failedCallback, userContext) {
return this._invoke(Security.get_path(), 'Login',false,{Email:Email,Password:Password},succeededCallback,failedCallback,userContext); },
Subscribe:function(Email,Password,Fullname,succeededCallback, failedCallback, userContext) {
return this._invoke(Security.get_path(), 'Subscribe',false,{Email:Email,Password:Password,Fullname:Fullname},succeededCallback,failedCallback,userContext); }}
Security.registerClass('Security',Sys.Net.WebServiceProxy);
Security._staticInstance = new Security();
Security.set_path = function(value) { Security._staticInstance._path = value; }
Security.get_path = function() { return Security._staticInstance._path; }
Security.set_timeout = function(value) { Security._staticInstance._timeout = value; }
Security.get_timeout = function() { return Security._staticInstance._timeout; }
Security.set_defaultUserContext = function(value) { Security._staticInstance._userContext = value; }
Security.get_defaultUserContext = function() { return Security._staticInstance._userContext; }
Security.set_defaultSucceededCallback = function(value) { Security._staticInstance._succeeded = value; }
Security.get_defaultSucceededCallback = function() { return Security._staticInstance._succeeded; }
Security.set_defaultFailedCallback = function(value) { Security._staticInstance._failed = value; }
Security.get_defaultFailedCallback = function() { return Security._staticInstance._failed; }
Security.set_path("/Services/Security.asmx");
Security.Login= function(Email,Password,onSuccess,onFailed,userContext) {Security._staticInstance.Login(Email,Password,onSuccess,onFailed,userContext); }
Security.Subscribe= function(Email,Password,Fullname,onSuccess,onFailed,userContext) {Security._staticInstance.Subscribe(Email,Password,Fullname,onSuccess,onFailed,userContext); }
