Type.registerNamespace('MightyPlace.WebServices');
MightyPlace.WebServices.LoginService=function() {
MightyPlace.WebServices.LoginService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MightyPlace.WebServices.LoginService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MightyPlace.WebServices.LoginService._staticInstance.get_path();},
GetAccountByUserNamePassword:function(username,password,succeededCallback, failedCallback, userContext) {
/// <param name="username" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetAccountByUserNamePassword',false,{username:username,password:password},succeededCallback,failedCallback,userContext); },
Logout:function(isNew,succeededCallback, failedCallback, userContext) {
/// <param name="isNew" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Logout',false,{isNew:isNew},succeededCallback,failedCallback,userContext); },
GetCurrentAccount:function(DefaultTabID,DefaultSubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCurrentAccount',false,{DefaultTabID:DefaultTabID,DefaultSubTabID:DefaultSubTabID},succeededCallback,failedCallback,userContext); },
GetGuestTabs:function(DefaultTabID,DefaultSubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetGuestTabs',false,{DefaultTabID:DefaultTabID,DefaultSubTabID:DefaultSubTabID},succeededCallback,failedCallback,userContext); },
GetUserTabs:function(DefaultTabID,DefaultSubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetUserTabs',false,{DefaultTabID:DefaultTabID,DefaultSubTabID:DefaultSubTabID},succeededCallback,failedCallback,userContext); },
isTabLoginRequired:function(TabID,SubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="TabID" type="String">System.String</param>
/// <param name="SubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'isTabLoginRequired',false,{TabID:TabID,SubTabID:SubTabID},succeededCallback,failedCallback,userContext); },
SelectTab:function(TabID,SubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="TabID" type="String">System.String</param>
/// <param name="SubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SelectTab',false,{TabID:TabID,SubTabID:SubTabID},succeededCallback,failedCallback,userContext); },
SendForgottenUserEmail:function(EmailAddress,succeededCallback, failedCallback, userContext) {
/// <param name="EmailAddress" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SendForgottenUserEmail',false,{EmailAddress:EmailAddress},succeededCallback,failedCallback,userContext); },
SendNewUserEmail:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SendNewUserEmail',false,{},succeededCallback,failedCallback,userContext); },
GetCurrentLocation:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCurrentLocation',false,{},succeededCallback,failedCallback,userContext); },
GetCurrentLogin:function(DefaultTabID,DefaultSubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCurrentLogin',false,{DefaultTabID:DefaultTabID,DefaultSubTabID:DefaultSubTabID},succeededCallback,failedCallback,userContext); },
IsSessionActive:function(DefaultTabID,DefaultSubTabID,succeededCallback, failedCallback, userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'IsSessionActive',false,{DefaultTabID:DefaultTabID,DefaultSubTabID:DefaultSubTabID},succeededCallback,failedCallback,userContext); },
SaveSession:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SaveSession',false,{},succeededCallback,failedCallback,userContext); }}
MightyPlace.WebServices.LoginService.registerClass('MightyPlace.WebServices.LoginService',Sys.Net.WebServiceProxy);
MightyPlace.WebServices.LoginService._staticInstance = new MightyPlace.WebServices.LoginService();
MightyPlace.WebServices.LoginService.set_path = function(value) {
MightyPlace.WebServices.LoginService._staticInstance.set_path(value); }
MightyPlace.WebServices.LoginService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_path();}
MightyPlace.WebServices.LoginService.set_timeout = function(value) {
MightyPlace.WebServices.LoginService._staticInstance.set_timeout(value); }
MightyPlace.WebServices.LoginService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_timeout(); }
MightyPlace.WebServices.LoginService.set_defaultUserContext = function(value) { 
MightyPlace.WebServices.LoginService._staticInstance.set_defaultUserContext(value); }
MightyPlace.WebServices.LoginService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_defaultUserContext(); }
MightyPlace.WebServices.LoginService.set_defaultSucceededCallback = function(value) { 
 MightyPlace.WebServices.LoginService._staticInstance.set_defaultSucceededCallback(value); }
MightyPlace.WebServices.LoginService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_defaultSucceededCallback(); }
MightyPlace.WebServices.LoginService.set_defaultFailedCallback = function(value) { 
MightyPlace.WebServices.LoginService._staticInstance.set_defaultFailedCallback(value); }
MightyPlace.WebServices.LoginService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_defaultFailedCallback(); }
MightyPlace.WebServices.LoginService.set_enableJsonp = function(value) { MightyPlace.WebServices.LoginService._staticInstance.set_enableJsonp(value); }
MightyPlace.WebServices.LoginService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_enableJsonp(); }
MightyPlace.WebServices.LoginService.set_jsonpCallbackParameter = function(value) { MightyPlace.WebServices.LoginService._staticInstance.set_jsonpCallbackParameter(value); }
MightyPlace.WebServices.LoginService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return MightyPlace.WebServices.LoginService._staticInstance.get_jsonpCallbackParameter(); }
MightyPlace.WebServices.LoginService.set_path("/WebServices/LoginService.asmx");
MightyPlace.WebServices.LoginService.GetAccountByUserNamePassword= function(username,password,onSuccess,onFailed,userContext) {
/// <param name="username" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.GetAccountByUserNamePassword(username,password,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.Logout= function(isNew,onSuccess,onFailed,userContext) {
/// <param name="isNew" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.Logout(isNew,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.GetCurrentAccount= function(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.GetCurrentAccount(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.GetGuestTabs= function(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.GetGuestTabs(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.GetUserTabs= function(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.GetUserTabs(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.isTabLoginRequired= function(TabID,SubTabID,onSuccess,onFailed,userContext) {
/// <param name="TabID" type="String">System.String</param>
/// <param name="SubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.isTabLoginRequired(TabID,SubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.SelectTab= function(TabID,SubTabID,onSuccess,onFailed,userContext) {
/// <param name="TabID" type="String">System.String</param>
/// <param name="SubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.SelectTab(TabID,SubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.SendForgottenUserEmail= function(EmailAddress,onSuccess,onFailed,userContext) {
/// <param name="EmailAddress" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.SendForgottenUserEmail(EmailAddress,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.SendNewUserEmail= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.SendNewUserEmail(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.GetCurrentLocation= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.GetCurrentLocation(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.GetCurrentLogin= function(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.GetCurrentLogin(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.IsSessionActive= function(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext) {
/// <param name="DefaultTabID" type="String">System.String</param>
/// <param name="DefaultSubTabID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.IsSessionActive(DefaultTabID,DefaultSubTabID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.LoginService.SaveSession= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MightyPlace.WebServices.LoginService._staticInstance.SaveSession(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('MightyPlace.Common');
if (typeof(MightyPlace.Common.Account) === 'undefined') {
MightyPlace.Common.Account=gtc("MightyPlace.Common.Account");
MightyPlace.Common.Account.registerClass('MightyPlace.Common.Account');
}
if (typeof(MightyPlace.Common.CurrentLogin) === 'undefined') {
MightyPlace.Common.CurrentLogin=gtc("MightyPlace.Common.CurrentLogin");
MightyPlace.Common.CurrentLogin.registerClass('MightyPlace.Common.CurrentLogin');
}

