var Location=function() {
Location.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Location.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Location._staticInstance.get_path();},
GetNearestLocations:function(pLat,pLon,maxLocations,succeededCallback, failedCallback, userContext) {
/// <param name="pLat" type="Number">System.Single</param>
/// <param name="pLon" type="Number">System.Single</param>
/// <param name="maxLocations" type="Number">System.Int32</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(), 'GetNearestLocations',true,{pLat:pLat,pLon:pLon,maxLocations:maxLocations},succeededCallback,failedCallback,userContext); },
GetNearestLocationsFilter:function(pLat,pLon,maxLocations,authorized,sales,install,certInstall,repair,premier,wholesale,succeededCallback, failedCallback, userContext) {
/// <param name="pLat" type="Number">System.Single</param>
/// <param name="pLon" type="Number">System.Single</param>
/// <param name="maxLocations" type="Number">System.Int32</param>
/// <param name="authorized" type="Boolean">System.Boolean</param>
/// <param name="sales" type="Boolean">System.Boolean</param>
/// <param name="install" type="Boolean">System.Boolean</param>
/// <param name="certInstall" type="Boolean">System.Boolean</param>
/// <param name="repair" type="Boolean">System.Boolean</param>
/// <param name="premier" type="Boolean">System.Boolean</param>
/// <param name="wholesale" type="Boolean">System.Boolean</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(), 'GetNearestLocationsFilter',true,{pLat:pLat,pLon:pLon,maxLocations:maxLocations,authorized:authorized,sales:sales,install:install,certInstall:certInstall,repair:repair,premier:premier,wholesale:wholesale},succeededCallback,failedCallback,userContext); },
GetUncodedLocations:function(randomizer,succeededCallback, failedCallback, userContext) {
/// <param name="randomizer" 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(), 'GetUncodedLocations',true,{randomizer:randomizer},succeededCallback,failedCallback,userContext); },
SearchLocations:function(randomizer,search,uscountry,state,succeededCallback, failedCallback, userContext) {
/// <param name="randomizer" type="String">System.String</param>
/// <param name="search" type="String">System.String</param>
/// <param name="uscountry" type="Boolean">System.Boolean</param>
/// <param name="state" 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(), 'SearchLocations',true,{randomizer:randomizer,search:search,uscountry:uscountry,state:state},succeededCallback,failedCallback,userContext); },
UpdateLocation:function(pLocation,succeededCallback, failedCallback, userContext) {
/// <param name="pLocation" type="Loc">Loc</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(), 'UpdateLocation',true,{pLocation:pLocation},succeededCallback,failedCallback,userContext); },
DeleteLocation:function(pLocationId,succeededCallback, failedCallback, userContext) {
/// <param name="pLocationId" type="Number">System.Int32</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(), 'DeleteLocation',true,{pLocationId:pLocationId},succeededCallback,failedCallback,userContext); }}
Location.registerClass('Location',Sys.Net.WebServiceProxy);
Location._staticInstance = new Location();
Location.set_path = function(value) {
Location._staticInstance.set_path(value); }
Location.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Location._staticInstance.get_path();}
Location.set_timeout = function(value) {
Location._staticInstance.set_timeout(value); }
Location.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Location._staticInstance.get_timeout(); }
Location.set_defaultUserContext = function(value) { 
Location._staticInstance.set_defaultUserContext(value); }
Location.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Location._staticInstance.get_defaultUserContext(); }
Location.set_defaultSucceededCallback = function(value) { 
 Location._staticInstance.set_defaultSucceededCallback(value); }
Location.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Location._staticInstance.get_defaultSucceededCallback(); }
Location.set_defaultFailedCallback = function(value) { 
Location._staticInstance.set_defaultFailedCallback(value); }
Location.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Location._staticInstance.get_defaultFailedCallback(); }
Location.set_path("/Services/Location.svc");
Location.GetNearestLocations= function(pLat,pLon,maxLocations,onSuccess,onFailed,userContext) {
/// <param name="pLat" type="Number">System.Single</param>
/// <param name="pLon" type="Number">System.Single</param>
/// <param name="maxLocations" type="Number">System.Int32</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>
Location._staticInstance.GetNearestLocations(pLat,pLon,maxLocations,onSuccess,onFailed,userContext); }
Location.GetNearestLocationsFilter= function(pLat,pLon,maxLocations,authorized,sales,install,certInstall,repair,premier,wholesale,onSuccess,onFailed,userContext) {
/// <param name="pLat" type="Number">System.Single</param>
/// <param name="pLon" type="Number">System.Single</param>
/// <param name="maxLocations" type="Number">System.Int32</param>
/// <param name="authorized" type="Boolean">System.Boolean</param>
/// <param name="sales" type="Boolean">System.Boolean</param>
/// <param name="install" type="Boolean">System.Boolean</param>
/// <param name="certInstall" type="Boolean">System.Boolean</param>
/// <param name="repair" type="Boolean">System.Boolean</param>
/// <param name="premier" type="Boolean">System.Boolean</param>
/// <param name="wholesale" type="Boolean">System.Boolean</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>
Location._staticInstance.GetNearestLocationsFilter(pLat,pLon,maxLocations,authorized,sales,install,certInstall,repair,premier,wholesale,onSuccess,onFailed,userContext); }
Location.GetUncodedLocations= function(randomizer,onSuccess,onFailed,userContext) {
/// <param name="randomizer" 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>
Location._staticInstance.GetUncodedLocations(randomizer,onSuccess,onFailed,userContext); }
Location.SearchLocations= function(randomizer,search,uscountry,state,onSuccess,onFailed,userContext) {
/// <param name="randomizer" type="String">System.String</param>
/// <param name="search" type="String">System.String</param>
/// <param name="uscountry" type="Boolean">System.Boolean</param>
/// <param name="state" 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>
Location._staticInstance.SearchLocations(randomizer,search,uscountry,state,onSuccess,onFailed,userContext); }
Location.UpdateLocation= function(pLocation,onSuccess,onFailed,userContext) {
/// <param name="pLocation" type="Loc">Loc</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>
Location._staticInstance.UpdateLocation(pLocation,onSuccess,onFailed,userContext); }
Location.DeleteLocation= function(pLocationId,onSuccess,onFailed,userContext) {
/// <param name="pLocationId" type="Number">System.Int32</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>
Location._staticInstance.DeleteLocation(pLocationId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Loc) === 'undefined') {
var Loc=gtc("Loc:http://schemas.datacontract.org/2004/07/");
Loc.registerClass('Loc');
}
