var FacilityService=function() {
FacilityService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FacilityService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return FacilityService._staticInstance.get_path();},
GetDetails:function(facilityId,succeededCallback, failedCallback, userContext) {
/// <param name="facilityId" 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(), 'GetDetails',false,{facilityId:facilityId},succeededCallback,failedCallback,userContext); },
GetFacilityData:function(addressId,succeededCallback, failedCallback, userContext) {
/// <param name="addressId" 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(), 'GetFacilityData',false,{addressId:addressId},succeededCallback,failedCallback,userContext); },
GetSearchAttributes:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetSearchAttributes',false,{},succeededCallback,failedCallback,userContext); },
Search:function(appState,succeededCallback, failedCallback, userContext) {
/// <param name="appState" type="AppState">AppState</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(), 'Search',false,{appState:appState},succeededCallback,failedCallback,userContext); },
VerifyAddress:function(address,succeededCallback, failedCallback, userContext) {
/// <param name="address" 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(), 'VerifyAddress',false,{address:address},succeededCallback,failedCallback,userContext); }}
FacilityService.registerClass('FacilityService',Sys.Net.WebServiceProxy);
FacilityService._staticInstance = new FacilityService();
FacilityService.set_path = function(value) {
FacilityService._staticInstance.set_path(value); }
FacilityService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return FacilityService._staticInstance.get_path();}
FacilityService.set_timeout = function(value) {
FacilityService._staticInstance.set_timeout(value); }
FacilityService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return FacilityService._staticInstance.get_timeout(); }
FacilityService.set_defaultUserContext = function(value) { 
FacilityService._staticInstance.set_defaultUserContext(value); }
FacilityService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return FacilityService._staticInstance.get_defaultUserContext(); }
FacilityService.set_defaultSucceededCallback = function(value) { 
 FacilityService._staticInstance.set_defaultSucceededCallback(value); }
FacilityService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return FacilityService._staticInstance.get_defaultSucceededCallback(); }
FacilityService.set_defaultFailedCallback = function(value) { 
FacilityService._staticInstance.set_defaultFailedCallback(value); }
FacilityService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return FacilityService._staticInstance.get_defaultFailedCallback(); }
FacilityService.set_path("/Services/FacilityService.svc");
FacilityService.GetDetails= function(facilityId,onSuccess,onFailed,userContext) {
/// <param name="facilityId" 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>
FacilityService._staticInstance.GetDetails(facilityId,onSuccess,onFailed,userContext); }
FacilityService.GetFacilityData= function(addressId,onSuccess,onFailed,userContext) {
/// <param name="addressId" 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>
FacilityService._staticInstance.GetFacilityData(addressId,onSuccess,onFailed,userContext); }
FacilityService.GetSearchAttributes= function(onSuccess,onFailed,userContext) {
/// <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>
FacilityService._staticInstance.GetSearchAttributes(onSuccess,onFailed,userContext); }
FacilityService.Search= function(appState,onSuccess,onFailed,userContext) {
/// <param name="appState" type="AppState">AppState</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>
FacilityService._staticInstance.Search(appState,onSuccess,onFailed,userContext); }
FacilityService.VerifyAddress= function(address,onSuccess,onFailed,userContext) {
/// <param name="address" 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>
FacilityService._staticInstance.VerifyAddress(address,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AppGeo.Web.Extensions.UI');
if (typeof(AppGeo.Web.Extensions.UI.LegendItemData) === 'undefined') {
AppGeo.Web.Extensions.UI.LegendItemData=gtc("LegendItemData:http://schemas.datacontract.org/2004/07/AppGeo.Web.Extensions.UI");
AppGeo.Web.Extensions.UI.LegendItemData.registerClass('AppGeo.Web.Extensions.UI.LegendItemData');
}
if (typeof(FacilityData) === 'undefined') {
var FacilityData=gtc("FacilityData:http://schemas.datacontract.org/2004/07/");
FacilityData.registerClass('FacilityData');
}
if (typeof(SearchAttribute) === 'undefined') {
var SearchAttribute=gtc("SearchAttribute:http://schemas.datacontract.org/2004/07/");
SearchAttribute.registerClass('SearchAttribute');
}
if (typeof(AppState) === 'undefined') {
var AppState=gtc("AppState:http://schemas.datacontract.org/2004/07/");
AppState.registerClass('AppState');
}
if (typeof(LocationData) === 'undefined') {
var LocationData=gtc("LocationData:http://schemas.datacontract.org/2004/07/");
LocationData.registerClass('LocationData');
}
if (typeof(AppGeo.Web.Extensions.UI.LegendCheckMode) === 'undefined') {
AppGeo.Web.Extensions.UI.LegendCheckMode = function() { throw Error.invalidOperation(); }
AppGeo.Web.Extensions.UI.LegendCheckMode.prototype = {None: 0,Empty: 1,Checked: 2,Unchecked: 3}
AppGeo.Web.Extensions.UI.LegendCheckMode.registerEnum('AppGeo.Web.Extensions.UI.LegendCheckMode', true);
}
if (typeof(AppGeo.Web.Extensions.UI.LegendExpandMode) === 'undefined') {
AppGeo.Web.Extensions.UI.LegendExpandMode = function() { throw Error.invalidOperation(); }
AppGeo.Web.Extensions.UI.LegendExpandMode.prototype = {None: 0,Empty: 1,Expanded: 2,Collapsed: 3}
AppGeo.Web.Extensions.UI.LegendExpandMode.registerEnum('AppGeo.Web.Extensions.UI.LegendExpandMode', true);
}
