Type.registerNamespace('CBVacations.WebServices');
CBVacations.WebServices.CBBuildings=function() {
CBVacations.WebServices.CBBuildings.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CBVacations.WebServices.CBBuildings.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CBVacations.WebServices.CBBuildings._staticInstance.get_path();},
GetAllUnitNames:function(prefixText,count,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" 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(), 'GetAllUnitNames',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetAllBuildingNames:function(prefixText,count,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" 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(), 'GetAllBuildingNames',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); }}
CBVacations.WebServices.CBBuildings.registerClass('CBVacations.WebServices.CBBuildings',Sys.Net.WebServiceProxy);
CBVacations.WebServices.CBBuildings._staticInstance = new CBVacations.WebServices.CBBuildings();
CBVacations.WebServices.CBBuildings.set_path = function(value) {
CBVacations.WebServices.CBBuildings._staticInstance.set_path(value); }
CBVacations.WebServices.CBBuildings.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CBVacations.WebServices.CBBuildings._staticInstance.get_path();}
CBVacations.WebServices.CBBuildings.set_timeout = function(value) {
CBVacations.WebServices.CBBuildings._staticInstance.set_timeout(value); }
CBVacations.WebServices.CBBuildings.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CBVacations.WebServices.CBBuildings._staticInstance.get_timeout(); }
CBVacations.WebServices.CBBuildings.set_defaultUserContext = function(value) { 
CBVacations.WebServices.CBBuildings._staticInstance.set_defaultUserContext(value); }
CBVacations.WebServices.CBBuildings.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CBVacations.WebServices.CBBuildings._staticInstance.get_defaultUserContext(); }
CBVacations.WebServices.CBBuildings.set_defaultSucceededCallback = function(value) { 
 CBVacations.WebServices.CBBuildings._staticInstance.set_defaultSucceededCallback(value); }
CBVacations.WebServices.CBBuildings.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CBVacations.WebServices.CBBuildings._staticInstance.get_defaultSucceededCallback(); }
CBVacations.WebServices.CBBuildings.set_defaultFailedCallback = function(value) { 
CBVacations.WebServices.CBBuildings._staticInstance.set_defaultFailedCallback(value); }
CBVacations.WebServices.CBBuildings.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CBVacations.WebServices.CBBuildings._staticInstance.get_defaultFailedCallback(); }
CBVacations.WebServices.CBBuildings.set_path("/WebServices/CBBuildings.asmx");
CBVacations.WebServices.CBBuildings.GetAllUnitNames= function(prefixText,count,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" 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>
CBVacations.WebServices.CBBuildings._staticInstance.GetAllUnitNames(prefixText,count,onSuccess,onFailed,userContext); }
CBVacations.WebServices.CBBuildings.GetAllBuildingNames= function(prefixText,count,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" 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>
CBVacations.WebServices.CBBuildings._staticInstance.GetAllBuildingNames(prefixText,count,onSuccess,onFailed,userContext); }
