Type.registerNamespace('LiveLife.Web.Scripts.ScriptServices');
LiveLife.Web.Scripts.ScriptServices.WSCommon=function() {
LiveLife.Web.Scripts.ScriptServices.WSCommon.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LiveLife.Web.Scripts.ScriptServices.WSCommon.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_path();},
ChangeLocation:function(location,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ChangeLocation',false,{location:location},succeededCallback,failedCallback,userContext); },
Login:function(userName,password,rememberMe,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{userName:userName,password:password,rememberMe:rememberMe},succeededCallback,failedCallback,userContext); },
SignOut:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SignOut',false,{},succeededCallback,failedCallback,userContext); },
IsAuthenticated:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsAuthenticated',false,{},succeededCallback,failedCallback,userContext); },
CurrentUserName:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CurrentUserName',false,{},succeededCallback,failedCallback,userContext); },
GetProfileSettings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProfileSettings',false,{},succeededCallback,failedCallback,userContext); },
SubscriberAdd:function(d,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubscriberAdd',false,{d:d},succeededCallback,failedCallback,userContext); }}
LiveLife.Web.Scripts.ScriptServices.WSCommon.registerClass('LiveLife.Web.Scripts.ScriptServices.WSCommon',Sys.Net.WebServiceProxy);
LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance = new LiveLife.Web.Scripts.ScriptServices.WSCommon();
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_path = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_path(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_path = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_path(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_timeout = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_timeout(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_timeout = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_timeout(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_defaultUserContext = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_defaultUserContext(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_defaultUserContext = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_defaultUserContext(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_defaultSucceededCallback = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_defaultSucceededCallback(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_defaultSucceededCallback = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_defaultSucceededCallback(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_defaultFailedCallback = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_defaultFailedCallback(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_defaultFailedCallback = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_defaultFailedCallback(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_enableJsonp = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_enableJsonp(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_enableJsonp = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_enableJsonp(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_jsonpCallbackParameter = function(value) { LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.set_jsonpCallbackParameter(value); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.get_jsonpCallbackParameter = function() { return LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.get_jsonpCallbackParameter(); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.set_path("/Scripts/ScriptServices/WSCommon.asmx");
LiveLife.Web.Scripts.ScriptServices.WSCommon.ChangeLocation= function(location,onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.ChangeLocation(location,onSuccess,onFailed,userContext); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.Login= function(userName,password,rememberMe,onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.Login(userName,password,rememberMe,onSuccess,onFailed,userContext); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.SignOut= function(onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.SignOut(onSuccess,onFailed,userContext); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.IsAuthenticated= function(onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.IsAuthenticated(onSuccess,onFailed,userContext); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.CurrentUserName= function(onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.CurrentUserName(onSuccess,onFailed,userContext); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.GetProfileSettings= function(onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.GetProfileSettings(onSuccess,onFailed,userContext); }
LiveLife.Web.Scripts.ScriptServices.WSCommon.SubscriberAdd= function(d,onSuccess,onFailed,userContext) {LiveLife.Web.Scripts.ScriptServices.WSCommon._staticInstance.SubscriberAdd(d,onSuccess,onFailed,userContext); }

