Type.registerNamespace('Appian.Services');
Appian.Services.UIService=function() {
Appian.Services.UIService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Appian.Services.UIService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Appian.Services.UIService._staticInstance.get_path();},
SearchAddress:function(addressQuery,countryRegion,pageIndex,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchAddress',true,{addressQuery:addressQuery,countryRegion:countryRegion,pageIndex:pageIndex,pageSize:pageSize},succeededCallback,failedCallback,userContext); },
ValidateAddress:function(addressLine,primaryCity,secondaryCity,countryRegion,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ValidateAddress',true,{addressLine:addressLine,primaryCity:primaryCity,secondaryCity:secondaryCity,countryRegion:countryRegion},succeededCallback,failedCallback,userContext); },
LoadCityNamesFromPartial:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LoadCityNamesFromPartial',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
LoadStreetNamesFromPartial:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LoadStreetNamesFromPartial',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
SearchAddressByMap:function(latitude,longitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchAddressByMap',true,{latitude:latitude,longitude:longitude},succeededCallback,failedCallback,userContext); },
SearchPinsOnMap:function(latitude,longitude,radius,countryRegion,neighbourlySpirit,eatingOut,nightlife,retailTherapy,fitness,mobilePhoneReception,internetAccess,payTVAccess,peaceAndQuiet,lackOfTraffic,safeAndSound,cleanAndGreen,pestFree,costOfLiving,resaleOrRentalValue,publicTransport,medicalFacilities,schools,childcare,localGovernment,powerWaterGas,parksAndRecreational,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchPinsOnMap',true,{latitude:latitude,longitude:longitude,radius:radius,countryRegion:countryRegion,neighbourlySpirit:neighbourlySpirit,eatingOut:eatingOut,nightlife:nightlife,retailTherapy:retailTherapy,fitness:fitness,mobilePhoneReception:mobilePhoneReception,internetAccess:internetAccess,payTVAccess:payTVAccess,peaceAndQuiet:peaceAndQuiet,lackOfTraffic:lackOfTraffic,safeAndSound:safeAndSound,cleanAndGreen:cleanAndGreen,pestFree:pestFree,costOfLiving:costOfLiving,resaleOrRentalValue:resaleOrRentalValue,publicTransport:publicTransport,medicalFacilities:medicalFacilities,schools:schools,childcare:childcare,localGovernment:localGovernment,powerWaterGas:powerWaterGas,parksAndRecreational:parksAndRecreational},succeededCallback,failedCallback,userContext); },
SearchLocationItem:function(latitude,longitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchLocationItem',true,{latitude:latitude,longitude:longitude},succeededCallback,failedCallback,userContext); },
GetLocationItem:function(idAddress,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocationItem',true,{idAddress:idAddress},succeededCallback,failedCallback,userContext); },
GetUserRegionList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserRegionList',true,{},succeededCallback,failedCallback,userContext); },
SearchSponsorsOnMap:function(latitude,longitude,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchSponsorsOnMap',true,{latitude:latitude,longitude:longitude,radius:radius},succeededCallback,failedCallback,userContext); },
GetSponsorshipDetails:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSponsorshipDetails',true,{id:id},succeededCallback,failedCallback,userContext); },
UpdatePinCushion:function(latitude,longitude,idAddress,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePinCushion',true,{latitude:latitude,longitude:longitude,idAddress:idAddress},succeededCallback,failedCallback,userContext); },
GetTooltip:function(key,argument,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTooltip',true,{key:key,argument:argument},succeededCallback,failedCallback,userContext); },
GetPhotos:function(firstRecord,pageSize,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPhotos',true,{firstRecord:firstRecord,pageSize:pageSize,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetVideos:function(firstRecord,pageSize,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVideos',true,{firstRecord:firstRecord,pageSize:pageSize,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetAllMedia:function(firstRecord,pageSize,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllMedia',true,{firstRecord:firstRecord,pageSize:pageSize,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetFacebookFriends:function(list,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFacebookFriends',true,{list:list},succeededCallback,failedCallback,userContext); }}
Appian.Services.UIService.registerClass('Appian.Services.UIService',Sys.Net.WebServiceProxy);
Appian.Services.UIService._staticInstance = new Appian.Services.UIService();
Appian.Services.UIService.set_path = function(value) { Appian.Services.UIService._staticInstance.set_path(value); }
Appian.Services.UIService.get_path = function() { return Appian.Services.UIService._staticInstance.get_path(); }
Appian.Services.UIService.set_timeout = function(value) { Appian.Services.UIService._staticInstance.set_timeout(value); }
Appian.Services.UIService.get_timeout = function() { return Appian.Services.UIService._staticInstance.get_timeout(); }
Appian.Services.UIService.set_defaultUserContext = function(value) { Appian.Services.UIService._staticInstance.set_defaultUserContext(value); }
Appian.Services.UIService.get_defaultUserContext = function() { return Appian.Services.UIService._staticInstance.get_defaultUserContext(); }
Appian.Services.UIService.set_defaultSucceededCallback = function(value) { Appian.Services.UIService._staticInstance.set_defaultSucceededCallback(value); }
Appian.Services.UIService.get_defaultSucceededCallback = function() { return Appian.Services.UIService._staticInstance.get_defaultSucceededCallback(); }
Appian.Services.UIService.set_defaultFailedCallback = function(value) { Appian.Services.UIService._staticInstance.set_defaultFailedCallback(value); }
Appian.Services.UIService.get_defaultFailedCallback = function() { return Appian.Services.UIService._staticInstance.get_defaultFailedCallback(); }
Appian.Services.UIService.set_path("/Services/UIService.asmx");
Appian.Services.UIService.SearchAddress= function(addressQuery,countryRegion,pageIndex,pageSize,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.SearchAddress(addressQuery,countryRegion,pageIndex,pageSize,onSuccess,onFailed,userContext); }
Appian.Services.UIService.ValidateAddress= function(addressLine,primaryCity,secondaryCity,countryRegion,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.ValidateAddress(addressLine,primaryCity,secondaryCity,countryRegion,onSuccess,onFailed,userContext); }
Appian.Services.UIService.LoadCityNamesFromPartial= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.LoadCityNamesFromPartial(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Appian.Services.UIService.LoadStreetNamesFromPartial= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.LoadStreetNamesFromPartial(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Appian.Services.UIService.SearchAddressByMap= function(latitude,longitude,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.SearchAddressByMap(latitude,longitude,onSuccess,onFailed,userContext); }
Appian.Services.UIService.SearchPinsOnMap= function(latitude,longitude,radius,countryRegion,neighbourlySpirit,eatingOut,nightlife,retailTherapy,fitness,mobilePhoneReception,internetAccess,payTVAccess,peaceAndQuiet,lackOfTraffic,safeAndSound,cleanAndGreen,pestFree,costOfLiving,resaleOrRentalValue,publicTransport,medicalFacilities,schools,childcare,localGovernment,powerWaterGas,parksAndRecreational,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.SearchPinsOnMap(latitude,longitude,radius,countryRegion,neighbourlySpirit,eatingOut,nightlife,retailTherapy,fitness,mobilePhoneReception,internetAccess,payTVAccess,peaceAndQuiet,lackOfTraffic,safeAndSound,cleanAndGreen,pestFree,costOfLiving,resaleOrRentalValue,publicTransport,medicalFacilities,schools,childcare,localGovernment,powerWaterGas,parksAndRecreational,onSuccess,onFailed,userContext); }
Appian.Services.UIService.SearchLocationItem= function(latitude,longitude,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.SearchLocationItem(latitude,longitude,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetLocationItem= function(idAddress,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetLocationItem(idAddress,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetUserRegionList= function(onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetUserRegionList(onSuccess,onFailed,userContext); }
Appian.Services.UIService.SearchSponsorsOnMap= function(latitude,longitude,radius,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.SearchSponsorsOnMap(latitude,longitude,radius,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetSponsorshipDetails= function(id,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetSponsorshipDetails(id,onSuccess,onFailed,userContext); }
Appian.Services.UIService.UpdatePinCushion= function(latitude,longitude,idAddress,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.UpdatePinCushion(latitude,longitude,idAddress,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetTooltip= function(key,argument,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetTooltip(key,argument,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetPhotos= function(firstRecord,pageSize,contextKey,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetPhotos(firstRecord,pageSize,contextKey,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetVideos= function(firstRecord,pageSize,contextKey,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetVideos(firstRecord,pageSize,contextKey,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetAllMedia= function(firstRecord,pageSize,contextKey,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetAllMedia(firstRecord,pageSize,contextKey,onSuccess,onFailed,userContext); }
Appian.Services.UIService.GetFacebookFriends= function(list,onSuccess,onFailed,userContext) {Appian.Services.UIService._staticInstance.GetFacebookFriends(list,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Appian.Services.SearchOnPinsJsonResult) === 'undefined') {
Appian.Services.SearchOnPinsJsonResult=gtc("Appian.Services.SearchOnPinsJsonResult");
Appian.Services.SearchOnPinsJsonResult.registerClass('Appian.Services.SearchOnPinsJsonResult');
}
Type.registerNamespace('Appian.Search');
if (typeof(Appian.Search.AdvertisingMapSearchResult) === 'undefined') {
Appian.Search.AdvertisingMapSearchResult=gtc("Appian.Search.AdvertisingMapSearchResult");
Appian.Search.AdvertisingMapSearchResult.registerClass('Appian.Search.AdvertisingMapSearchResult');
}
if (typeof(Appian.Search.AdvertisingSponsorshipSearchResult) === 'undefined') {
Appian.Search.AdvertisingSponsorshipSearchResult=gtc("Appian.Search.AdvertisingSponsorshipSearchResult");
Appian.Search.AdvertisingSponsorshipSearchResult.registerClass('Appian.Search.AdvertisingSponsorshipSearchResult');
}
Type.registerNamespace('Appian.ClassLibrary');
if (typeof(Appian.ClassLibrary.Facebook) === 'undefined') {
Appian.ClassLibrary.Facebook=gtc("Appian.ClassLibrary.Facebook");
Appian.ClassLibrary.Facebook.registerClass('Appian.ClassLibrary.Facebook');
}
