Type.registerNamespace('Map.WebServices');
Map.WebServices.Locations=function() {
Map.WebServices.Locations.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Map.WebServices.Locations.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Map.WebServices.Locations._staticInstance.get_path();},
SaveLocation:function(locationId,lat,lon,primaryName,parentLocationID,otherNames,succeededCallback, failedCallback, userContext) {
/// <param name="locationId" type="Number">System.Int64</param>
/// <param name="lat" type="Number">System.Decimal</param>
/// <param name="lon" type="Number">System.Decimal</param>
/// <param name="primaryName" type="String">System.String</param>
/// <param name="parentLocationID" type="Number">System.Int64</param>
/// <param name="otherNames" type="Array">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(), 'SaveLocation',false,{locationId:locationId,lat:lat,lon:lon,primaryName:primaryName,parentLocationID:parentLocationID,otherNames:otherNames},succeededCallback,failedCallback,userContext); },
GetLocationParent:function(LocationID,succeededCallback, failedCallback, userContext) {
/// <param name="LocationID" 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(), 'GetLocationParent',false,{LocationID:LocationID},succeededCallback,failedCallback,userContext); },
GetLocation:function(LocationID,succeededCallback, failedCallback, userContext) {
/// <param name="LocationID" 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(), 'GetLocation',false,{LocationID:LocationID},succeededCallback,failedCallback,userContext); },
GetLocationsForParentLocationID:function(ParentLocationID,succeededCallback, failedCallback, userContext) {
/// <param name="ParentLocationID" type="Number">System.Int64</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(), 'GetLocationsForParentLocationID',false,{ParentLocationID:ParentLocationID},succeededCallback,failedCallback,userContext); },
GetLocations:function(FilterToGetOnlyUnlocatedLocations,succeededCallback, failedCallback, userContext) {
/// <param name="FilterToGetOnlyUnlocatedLocations" 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(), 'GetLocations',false,{FilterToGetOnlyUnlocatedLocations:FilterToGetOnlyUnlocatedLocations},succeededCallback,failedCallback,userContext); }}
Map.WebServices.Locations.registerClass('Map.WebServices.Locations',Sys.Net.WebServiceProxy);
Map.WebServices.Locations._staticInstance = new Map.WebServices.Locations();
Map.WebServices.Locations.set_path = function(value) {
Map.WebServices.Locations._staticInstance.set_path(value); }
Map.WebServices.Locations.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Map.WebServices.Locations._staticInstance.get_path();}
Map.WebServices.Locations.set_timeout = function(value) {
Map.WebServices.Locations._staticInstance.set_timeout(value); }
Map.WebServices.Locations.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Map.WebServices.Locations._staticInstance.get_timeout(); }
Map.WebServices.Locations.set_defaultUserContext = function(value) { 
Map.WebServices.Locations._staticInstance.set_defaultUserContext(value); }
Map.WebServices.Locations.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Map.WebServices.Locations._staticInstance.get_defaultUserContext(); }
Map.WebServices.Locations.set_defaultSucceededCallback = function(value) { 
 Map.WebServices.Locations._staticInstance.set_defaultSucceededCallback(value); }
Map.WebServices.Locations.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Map.WebServices.Locations._staticInstance.get_defaultSucceededCallback(); }
Map.WebServices.Locations.set_defaultFailedCallback = function(value) { 
Map.WebServices.Locations._staticInstance.set_defaultFailedCallback(value); }
Map.WebServices.Locations.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Map.WebServices.Locations._staticInstance.get_defaultFailedCallback(); }
Map.WebServices.Locations.set_path("/WebServices/Locations.asmx");
Map.WebServices.Locations.SaveLocation= function(locationId,lat,lon,primaryName,parentLocationID,otherNames,onSuccess,onFailed,userContext) {
/// <param name="locationId" type="Number">System.Int64</param>
/// <param name="lat" type="Number">System.Decimal</param>
/// <param name="lon" type="Number">System.Decimal</param>
/// <param name="primaryName" type="String">System.String</param>
/// <param name="parentLocationID" type="Number">System.Int64</param>
/// <param name="otherNames" type="Array">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>
Map.WebServices.Locations._staticInstance.SaveLocation(locationId,lat,lon,primaryName,parentLocationID,otherNames,onSuccess,onFailed,userContext); }
Map.WebServices.Locations.GetLocationParent= function(LocationID,onSuccess,onFailed,userContext) {
/// <param name="LocationID" 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>
Map.WebServices.Locations._staticInstance.GetLocationParent(LocationID,onSuccess,onFailed,userContext); }
Map.WebServices.Locations.GetLocation= function(LocationID,onSuccess,onFailed,userContext) {
/// <param name="LocationID" 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>
Map.WebServices.Locations._staticInstance.GetLocation(LocationID,onSuccess,onFailed,userContext); }
Map.WebServices.Locations.GetLocationsForParentLocationID= function(ParentLocationID,onSuccess,onFailed,userContext) {
/// <param name="ParentLocationID" type="Number">System.Int64</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>
Map.WebServices.Locations._staticInstance.GetLocationsForParentLocationID(ParentLocationID,onSuccess,onFailed,userContext); }
Map.WebServices.Locations.GetLocations= function(FilterToGetOnlyUnlocatedLocations,onSuccess,onFailed,userContext) {
/// <param name="FilterToGetOnlyUnlocatedLocations" 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>
Map.WebServices.Locations._staticInstance.GetLocations(FilterToGetOnlyUnlocatedLocations,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Map.Models');
if (typeof(Map.Models.usp_GetLocationParentsResult) === 'undefined') {
Map.Models.usp_GetLocationParentsResult=gtc("Map.Models.usp_GetLocationParentsResult");
Map.Models.usp_GetLocationParentsResult.registerClass('Map.Models.usp_GetLocationParentsResult');
}
if (typeof(Map.Models.Location) === 'undefined') {
Map.Models.Location=gtc("Map.Models.Location");
Map.Models.Location.registerClass('Map.Models.Location');
}
