var OfferbugAJAX=function() {
OfferbugAJAX.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
OfferbugAJAX.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return OfferbugAJAX._staticInstance.get_path();},
GetDepartments: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(), 'GetDepartments',false,{},succeededCallback,failedCallback,userContext); },
GetProductsInDept:function(deptCode,numProducts,succeededCallback, failedCallback, userContext) {
/// <param name="deptCode" type="String">System.String</param>
/// <param name="numProducts" 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(), 'GetProductsInDept',false,{deptCode:deptCode,numProducts:numProducts},succeededCallback,failedCallback,userContext); },
LoadProduct:function(ProductNumber,succeededCallback, failedCallback, userContext) {
/// <param name="ProductNumber" 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(), 'LoadProduct',false,{ProductNumber:ProductNumber},succeededCallback,failedCallback,userContext); },
BestSellers: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(), 'BestSellers',false,{},succeededCallback,failedCallback,userContext); },
PastDeals:function(page,succeededCallback, failedCallback, userContext) {
/// <param name="page" 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(), 'PastDeals',false,{page:page},succeededCallback,failedCallback,userContext); }}
OfferbugAJAX.registerClass('OfferbugAJAX',Sys.Net.WebServiceProxy);
OfferbugAJAX._staticInstance = new OfferbugAJAX();
OfferbugAJAX.set_path = function(value) {
OfferbugAJAX._staticInstance.set_path(value); }
OfferbugAJAX.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return OfferbugAJAX._staticInstance.get_path();}
OfferbugAJAX.set_timeout = function(value) {
OfferbugAJAX._staticInstance.set_timeout(value); }
OfferbugAJAX.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return OfferbugAJAX._staticInstance.get_timeout(); }
OfferbugAJAX.set_defaultUserContext = function(value) { 
OfferbugAJAX._staticInstance.set_defaultUserContext(value); }
OfferbugAJAX.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return OfferbugAJAX._staticInstance.get_defaultUserContext(); }
OfferbugAJAX.set_defaultSucceededCallback = function(value) { 
 OfferbugAJAX._staticInstance.set_defaultSucceededCallback(value); }
OfferbugAJAX.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return OfferbugAJAX._staticInstance.get_defaultSucceededCallback(); }
OfferbugAJAX.set_defaultFailedCallback = function(value) { 
OfferbugAJAX._staticInstance.set_defaultFailedCallback(value); }
OfferbugAJAX.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return OfferbugAJAX._staticInstance.get_defaultFailedCallback(); }
OfferbugAJAX.set_enableJsonp = function(value) { OfferbugAJAX._staticInstance.set_enableJsonp(value); }
OfferbugAJAX.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return OfferbugAJAX._staticInstance.get_enableJsonp(); }
OfferbugAJAX.set_jsonpCallbackParameter = function(value) { OfferbugAJAX._staticInstance.set_jsonpCallbackParameter(value); }
OfferbugAJAX.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return OfferbugAJAX._staticInstance.get_jsonpCallbackParameter(); }
OfferbugAJAX.set_path("/OfferbugAJAX.asmx");
OfferbugAJAX.GetDepartments= 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>
OfferbugAJAX._staticInstance.GetDepartments(onSuccess,onFailed,userContext); }
OfferbugAJAX.GetProductsInDept= function(deptCode,numProducts,onSuccess,onFailed,userContext) {
/// <param name="deptCode" type="String">System.String</param>
/// <param name="numProducts" 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>
OfferbugAJAX._staticInstance.GetProductsInDept(deptCode,numProducts,onSuccess,onFailed,userContext); }
OfferbugAJAX.LoadProduct= function(ProductNumber,onSuccess,onFailed,userContext) {
/// <param name="ProductNumber" 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>
OfferbugAJAX._staticInstance.LoadProduct(ProductNumber,onSuccess,onFailed,userContext); }
OfferbugAJAX.BestSellers= 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>
OfferbugAJAX._staticInstance.BestSellers(onSuccess,onFailed,userContext); }
OfferbugAJAX.PastDeals= function(page,onSuccess,onFailed,userContext) {
/// <param name="page" 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>
OfferbugAJAX._staticInstance.PastDeals(page,onSuccess,onFailed,userContext); }

