var Auth=function() {
Auth.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Auth.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Auth._staticInstance.get_path();},
Authenticate:function(emailAddress,Password,guid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Authenticate',false,{emailAddress:emailAddress,Password:Password,guid:guid},succeededCallback,failedCallback,userContext); },
getNewProfileGuid:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getNewProfileGuid',false,{},succeededCallback,failedCallback,userContext); },
refreshProfileGuid:function(guid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'refreshProfileGuid',false,{guid:guid},succeededCallback,failedCallback,userContext); },
getUserProfileGuid:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getUserProfileGuid',false,{userId:userId},succeededCallback,failedCallback,userContext); },
createUser:function(CurrentProfileGuid,email,userName,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'createUser',false,{CurrentProfileGuid:CurrentProfileGuid,email:email,userName:userName,password:password},succeededCallback,failedCallback,userContext); },
ResetPassword:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ResetPassword',false,{email:email},succeededCallback,failedCallback,userContext); },
getBasicUserInfo:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getBasicUserInfo',false,{userId:userId},succeededCallback,failedCallback,userContext); },
getUserProfile:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getUserProfile',false,{userId:userId},succeededCallback,failedCallback,userContext); },
saveUserProfile:function(user,userId,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'saveUserProfile',false,{user:user,userId:userId,password:password},succeededCallback,failedCallback,userContext); },
checkMailExistence:function(emailAddress,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'checkMailExistence',false,{emailAddress:emailAddress},succeededCallback,failedCallback,userContext); },
getLocations:function(Type,parentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getLocations',false,{Type:Type,parentId:parentId},succeededCallback,failedCallback,userContext); },
getLocationsByKeyword:function(Type,parentId,keyword,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getLocationsByKeyword',false,{Type:Type,parentId:parentId,keyword:keyword,count:count},succeededCallback,failedCallback,userContext); },
GetUserImage:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserImage',false,{userId:userId},succeededCallback,failedCallback,userContext); },
SaveUserImage:function(userId,imageName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveUserImage',false,{userId:userId,imageName:imageName},succeededCallback,failedCallback,userContext); }}
Auth.registerClass('Auth',Sys.Net.WebServiceProxy);
Auth._staticInstance = new Auth();
Auth.set_path = function(value) { Auth._staticInstance.set_path(value); }
Auth.get_path = function() { return Auth._staticInstance.get_path(); }
Auth.set_timeout = function(value) { Auth._staticInstance.set_timeout(value); }
Auth.get_timeout = function() { return Auth._staticInstance.get_timeout(); }
Auth.set_defaultUserContext = function(value) { Auth._staticInstance.set_defaultUserContext(value); }
Auth.get_defaultUserContext = function() { return Auth._staticInstance.get_defaultUserContext(); }
Auth.set_defaultSucceededCallback = function(value) { Auth._staticInstance.set_defaultSucceededCallback(value); }
Auth.get_defaultSucceededCallback = function() { return Auth._staticInstance.get_defaultSucceededCallback(); }
Auth.set_defaultFailedCallback = function(value) { Auth._staticInstance.set_defaultFailedCallback(value); }
Auth.get_defaultFailedCallback = function() { return Auth._staticInstance.get_defaultFailedCallback(); }
Auth.set_enableJsonp = function(value) { Auth._staticInstance.set_enableJsonp(value); }
Auth.get_enableJsonp = function() { return Auth._staticInstance.get_enableJsonp(); }
Auth.set_jsonpCallbackParameter = function(value) { Auth._staticInstance.set_jsonpCallbackParameter(value); }
Auth.get_jsonpCallbackParameter = function() { return Auth._staticInstance.get_jsonpCallbackParameter(); }
Auth.set_path("/_services/Auth.asmx");
Auth.Authenticate= function(emailAddress,Password,guid,onSuccess,onFailed,userContext) {Auth._staticInstance.Authenticate(emailAddress,Password,guid,onSuccess,onFailed,userContext); }
Auth.getNewProfileGuid= function(onSuccess,onFailed,userContext) {Auth._staticInstance.getNewProfileGuid(onSuccess,onFailed,userContext); }
Auth.refreshProfileGuid= function(guid,onSuccess,onFailed,userContext) {Auth._staticInstance.refreshProfileGuid(guid,onSuccess,onFailed,userContext); }
Auth.getUserProfileGuid= function(userId,onSuccess,onFailed,userContext) {Auth._staticInstance.getUserProfileGuid(userId,onSuccess,onFailed,userContext); }
Auth.createUser= function(CurrentProfileGuid,email,userName,password,onSuccess,onFailed,userContext) {Auth._staticInstance.createUser(CurrentProfileGuid,email,userName,password,onSuccess,onFailed,userContext); }
Auth.ResetPassword= function(email,onSuccess,onFailed,userContext) {Auth._staticInstance.ResetPassword(email,onSuccess,onFailed,userContext); }
Auth.getBasicUserInfo= function(userId,onSuccess,onFailed,userContext) {Auth._staticInstance.getBasicUserInfo(userId,onSuccess,onFailed,userContext); }
Auth.getUserProfile= function(userId,onSuccess,onFailed,userContext) {Auth._staticInstance.getUserProfile(userId,onSuccess,onFailed,userContext); }
Auth.saveUserProfile= function(user,userId,password,onSuccess,onFailed,userContext) {Auth._staticInstance.saveUserProfile(user,userId,password,onSuccess,onFailed,userContext); }
Auth.checkMailExistence= function(emailAddress,onSuccess,onFailed,userContext) {Auth._staticInstance.checkMailExistence(emailAddress,onSuccess,onFailed,userContext); }
Auth.getLocations= function(Type,parentId,onSuccess,onFailed,userContext) {Auth._staticInstance.getLocations(Type,parentId,onSuccess,onFailed,userContext); }
Auth.getLocationsByKeyword= function(Type,parentId,keyword,count,onSuccess,onFailed,userContext) {Auth._staticInstance.getLocationsByKeyword(Type,parentId,keyword,count,onSuccess,onFailed,userContext); }
Auth.GetUserImage= function(userId,onSuccess,onFailed,userContext) {Auth._staticInstance.GetUserImage(userId,onSuccess,onFailed,userContext); }
Auth.SaveUserImage= function(userId,imageName,onSuccess,onFailed,userContext) {Auth._staticInstance.SaveUserImage(userId,imageName,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SpotLocal.Library.Authentication');
if (typeof(SpotLocal.Library.Authentication.User) === 'undefined') {
SpotLocal.Library.Authentication.User=gtc("SpotLocal.Library.Authentication.User");
SpotLocal.Library.Authentication.User.registerClass('SpotLocal.Library.Authentication.User');
}
Type.registerNamespace('SpotLocal.Library.Geo');
if (typeof(SpotLocal.Library.Geo.Location) === 'undefined') {
SpotLocal.Library.Geo.Location=gtc("SpotLocal.Library.Geo.Location");
SpotLocal.Library.Geo.Location.registerClass('SpotLocal.Library.Geo.Location');
}

