var Locations=function() {
Locations.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Locations.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Locations._staticInstance.get_path();},
SearchSuburbs:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchSuburbs',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetDistrictsByState:function(State,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDistrictsByState',false,{State:State},succeededCallback,failedCallback,userContext); },
GetSuburbsByDistrict:function(districtCode,maxHierarchy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSuburbsByDistrict',false,{districtCode:districtCode,maxHierarchy:maxHierarchy},succeededCallback,failedCallback,userContext); },
FindDistrict:function(State,District,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindDistrict',false,{State:State,District:District},succeededCallback,failedCallback,userContext); },
FindSuburb:function(State,District,Suburb,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindSuburb',false,{State:State,District:District,Suburb:Suburb},succeededCallback,failedCallback,userContext); },
GetSuburbById:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSuburbById',false,{id:id},succeededCallback,failedCallback,userContext); }}
Locations.registerClass('Locations',Sys.Net.WebServiceProxy);
Locations._staticInstance = new Locations();
Locations.set_path = function(value) { Locations._staticInstance.set_path(value); }
Locations.get_path = function() { return Locations._staticInstance.get_path(); }
Locations.set_timeout = function(value) { Locations._staticInstance.set_timeout(value); }
Locations.get_timeout = function() { return Locations._staticInstance.get_timeout(); }
Locations.set_defaultUserContext = function(value) { Locations._staticInstance.set_defaultUserContext(value); }
Locations.get_defaultUserContext = function() { return Locations._staticInstance.get_defaultUserContext(); }
Locations.set_defaultSucceededCallback = function(value) { Locations._staticInstance.set_defaultSucceededCallback(value); }
Locations.get_defaultSucceededCallback = function() { return Locations._staticInstance.get_defaultSucceededCallback(); }
Locations.set_defaultFailedCallback = function(value) { Locations._staticInstance.set_defaultFailedCallback(value); }
Locations.get_defaultFailedCallback = function() { return Locations._staticInstance.get_defaultFailedCallback(); }
Locations.set_path("/TWC/WebServices/Locations.svc");
Locations.SearchSuburbs= function(prefixText,count,onSuccess,onFailed,userContext) {Locations._staticInstance.SearchSuburbs(prefixText,count,onSuccess,onFailed,userContext); }
Locations.GetDistrictsByState= function(State,onSuccess,onFailed,userContext) {Locations._staticInstance.GetDistrictsByState(State,onSuccess,onFailed,userContext); }
Locations.GetSuburbsByDistrict= function(districtCode,maxHierarchy,onSuccess,onFailed,userContext) {Locations._staticInstance.GetSuburbsByDistrict(districtCode,maxHierarchy,onSuccess,onFailed,userContext); }
Locations.FindDistrict= function(State,District,onSuccess,onFailed,userContext) {Locations._staticInstance.FindDistrict(State,District,onSuccess,onFailed,userContext); }
Locations.FindSuburb= function(State,District,Suburb,onSuccess,onFailed,userContext) {Locations._staticInstance.FindSuburb(State,District,Suburb,onSuccess,onFailed,userContext); }
Locations.GetSuburbById= function(id,onSuccess,onFailed,userContext) {Locations._staticInstance.GetSuburbById(id,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('System.Collections.Generic');
if (typeof(System.Collections.Generic.KeyValuePairOfstringstring) === 'undefined') {
System.Collections.Generic.KeyValuePairOfstringstring=gtc("KeyValuePairOfstringstring:http://schemas.datacontract.org/2004/07/System.Collections.Generic");
System.Collections.Generic.KeyValuePairOfstringstring.registerClass('System.Collections.Generic.KeyValuePairOfstringstring');
}
Type.registerNamespace('TWC.EntityEngine');
if (typeof(TWC.EntityEngine.SavedLocation) === 'undefined') {
TWC.EntityEngine.SavedLocation=gtc("SavedLocation:http://schemas.datacontract.org/2004/07/TWC.EntityEngine");
TWC.EntityEngine.SavedLocation.registerClass('TWC.EntityEngine.SavedLocation');
}
