Type.registerNamespace('Heineken.WebApp.ScriptServices');
Heineken.WebApp.ScriptServices.SuggestiveSearchService=function() {
Heineken.WebApp.ScriptServices.SuggestiveSearchService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Heineken.WebApp.ScriptServices.SuggestiveSearchService.prototype={
GetCompletionList:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Heineken.WebApp.ScriptServices.SuggestiveSearchService.get_path(), 'GetCompletionList',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); }}
Heineken.WebApp.ScriptServices.SuggestiveSearchService.registerClass('Heineken.WebApp.ScriptServices.SuggestiveSearchService',Sys.Net.WebServiceProxy);
Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance = new Heineken.WebApp.ScriptServices.SuggestiveSearchService();
Heineken.WebApp.ScriptServices.SuggestiveSearchService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._path = value; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.get_path = function() { return Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._path; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.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); }
Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._timeout = value; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.get_timeout = function() { 
return Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._timeout; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.set_defaultUserContext = function(value) { 
Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._userContext = value; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.get_defaultUserContext = function() { 
return Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._userContext; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._succeeded = value; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.get_defaultSucceededCallback = function() { 
return Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._succeeded; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._failed = value; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.get_defaultFailedCallback = function() { 
return Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance._failed; }
Heineken.WebApp.ScriptServices.SuggestiveSearchService.set_path("/ScriptServices/SuggestiveSearchService.asmx");
Heineken.WebApp.ScriptServices.SuggestiveSearchService.GetCompletionList= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Heineken.WebApp.ScriptServices.SuggestiveSearchService._staticInstance.GetCompletionList(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
