Type.registerNamespace('BookNow');
BookNow.ws_asm=function() {
BookNow.ws_asm.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BookNow.ws_asm.prototype={
GetCitySuggestions:function(keyword,countryCode,usePaging,pageIndex,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(BookNow.ws_asm.get_path(), 'GetCitySuggestions',false,{keyword:keyword,countryCode:countryCode,usePaging:usePaging,pageIndex:pageIndex,pageSize:pageSize},succeededCallback,failedCallback,userContext); }}
BookNow.ws_asm.registerClass('BookNow.ws_asm',Sys.Net.WebServiceProxy);
BookNow.ws_asm._staticInstance = new BookNow.ws_asm();
BookNow.ws_asm.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; BookNow.ws_asm._staticInstance._path = value; }
BookNow.ws_asm.get_path = function() { return BookNow.ws_asm._staticInstance._path; }
BookNow.ws_asm.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
BookNow.ws_asm._staticInstance._timeout = value; }
BookNow.ws_asm.get_timeout = function() { 
return BookNow.ws_asm._staticInstance._timeout; }
BookNow.ws_asm.set_defaultUserContext = function(value) { 
BookNow.ws_asm._staticInstance._userContext = value; }
BookNow.ws_asm.get_defaultUserContext = function() { 
return BookNow.ws_asm._staticInstance._userContext; }
BookNow.ws_asm.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; BookNow.ws_asm._staticInstance._succeeded = value; }
BookNow.ws_asm.get_defaultSucceededCallback = function() { 
return BookNow.ws_asm._staticInstance._succeeded; }
BookNow.ws_asm.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; BookNow.ws_asm._staticInstance._failed = value; }
BookNow.ws_asm.get_defaultFailedCallback = function() { 
return BookNow.ws_asm._staticInstance._failed; }
BookNow.ws_asm.set_path("/booknow/ws_asm.asmx");
BookNow.ws_asm.GetCitySuggestions= function(keyword,countryCode,usePaging,pageIndex,pageSize,onSuccess,onFailed,userContext) {BookNow.ws_asm._staticInstance.GetCitySuggestions(keyword,countryCode,usePaging,pageIndex,pageSize,onSuccess,onFailed,userContext); }
