Type.registerNamespace('Loves.VirtualEarthAjax');
Loves.VirtualEarthAjax.MapService=function() {
Loves.VirtualEarthAjax.MapService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Loves.VirtualEarthAjax.MapService.prototype={
GetClusteredMapData:function(encodedBounds,zoomLevel,storeType,succeededCallback, failedCallback, userContext) {
return this._invoke(Loves.VirtualEarthAjax.MapService.get_path(), 'GetClusteredMapData',true,{encodedBounds:encodedBounds,zoomLevel:zoomLevel,storeType:storeType},succeededCallback,failedCallback,userContext); },
GetPushPin:function(encodedBounds,startIndex,storeType,succeededCallback, failedCallback, userContext) {
return this._invoke(Loves.VirtualEarthAjax.MapService.get_path(), 'GetPushPin',true,{encodedBounds:encodedBounds,startIndex:startIndex,storeType:storeType},succeededCallback,failedCallback,userContext); },
GetDetail:function(StoreID,succeededCallback, failedCallback, userContext) {
return this._invoke(Loves.VirtualEarthAjax.MapService.get_path(), 'GetDetail',true,{StoreID:StoreID},succeededCallback,failedCallback,userContext); },
GetStoreCount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Loves.VirtualEarthAjax.MapService.get_path(), 'GetStoreCount',true,{},succeededCallback,failedCallback,userContext); }}
Loves.VirtualEarthAjax.MapService.registerClass('Loves.VirtualEarthAjax.MapService',Sys.Net.WebServiceProxy);
Loves.VirtualEarthAjax.MapService._staticInstance = new Loves.VirtualEarthAjax.MapService();
Loves.VirtualEarthAjax.MapService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Loves.VirtualEarthAjax.MapService._staticInstance._path = value; }
Loves.VirtualEarthAjax.MapService.get_path = function() { return Loves.VirtualEarthAjax.MapService._staticInstance._path; }
Loves.VirtualEarthAjax.MapService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Loves.VirtualEarthAjax.MapService._staticInstance._timeout = value; }
Loves.VirtualEarthAjax.MapService.get_timeout = function() { 
return Loves.VirtualEarthAjax.MapService._staticInstance._timeout; }
Loves.VirtualEarthAjax.MapService.set_defaultUserContext = function(value) { 
Loves.VirtualEarthAjax.MapService._staticInstance._userContext = value; }
Loves.VirtualEarthAjax.MapService.get_defaultUserContext = function() { 
return Loves.VirtualEarthAjax.MapService._staticInstance._userContext; }
Loves.VirtualEarthAjax.MapService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Loves.VirtualEarthAjax.MapService._staticInstance._succeeded = value; }
Loves.VirtualEarthAjax.MapService.get_defaultSucceededCallback = function() { 
return Loves.VirtualEarthAjax.MapService._staticInstance._succeeded; }
Loves.VirtualEarthAjax.MapService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Loves.VirtualEarthAjax.MapService._staticInstance._failed = value; }
Loves.VirtualEarthAjax.MapService.get_defaultFailedCallback = function() { 
return Loves.VirtualEarthAjax.MapService._staticInstance._failed; }
Loves.VirtualEarthAjax.MapService.set_path("/DesktopModules/Loves.VirtualEarthAjax/MapService.asmx");
Loves.VirtualEarthAjax.MapService.GetClusteredMapData= function(encodedBounds,zoomLevel,storeType,onSuccess,onFailed,userContext) {Loves.VirtualEarthAjax.MapService._staticInstance.GetClusteredMapData(encodedBounds,zoomLevel,storeType,onSuccess,onFailed,userContext); }
Loves.VirtualEarthAjax.MapService.GetPushPin= function(encodedBounds,startIndex,storeType,onSuccess,onFailed,userContext) {Loves.VirtualEarthAjax.MapService._staticInstance.GetPushPin(encodedBounds,startIndex,storeType,onSuccess,onFailed,userContext); }
Loves.VirtualEarthAjax.MapService.GetDetail= function(StoreID,onSuccess,onFailed,userContext) {Loves.VirtualEarthAjax.MapService._staticInstance.GetDetail(StoreID,onSuccess,onFailed,userContext); }
Loves.VirtualEarthAjax.MapService.GetStoreCount= function(onSuccess,onFailed,userContext) {Loves.VirtualEarthAjax.MapService._staticInstance.GetStoreCount(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Loves.VirtualEarthAjax.PinData) === 'undefined') {
Loves.VirtualEarthAjax.PinData=gtc("Loves.VirtualEarthAjax.PinData");
Loves.VirtualEarthAjax.PinData.registerClass('Loves.VirtualEarthAjax.PinData');
}
if (typeof(Loves.VirtualEarthAjax.LovesStoreInfo) === 'undefined') {
Loves.VirtualEarthAjax.LovesStoreInfo=gtc("Loves.VirtualEarthAjax.LovesStoreInfo");
Loves.VirtualEarthAjax.LovesStoreInfo.registerClass('Loves.VirtualEarthAjax.LovesStoreInfo');
}
