var Services=function() {
Services.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Services.prototype={
GetProducts:function(categoryID,succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetProducts',false,{categoryID:categoryID},succeededCallback,failedCallback,userContext); },
GetProduct:function(productID,succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetProduct',false,{productID:productID},succeededCallback,failedCallback,userContext); },
GetCategories:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetCategories',false,{},succeededCallback,failedCallback,userContext); },
GetCategory:function(categoryGUID,succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetCategory',false,{categoryGUID:categoryGUID},succeededCallback,failedCallback,userContext); },
TransactCreditCartOrder:function(order,succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'TransactCreditCartOrder',false,{order:order},succeededCallback,failedCallback,userContext); },
GetRandomBannerAd:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetRandomBannerAd',false,{},succeededCallback,failedCallback,userContext); },
GetNextBannerAd:function(CurrentIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetNextBannerAd',false,{CurrentIndex:CurrentIndex},succeededCallback,failedCallback,userContext); },
GetBannerAdverts:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetBannerAdverts',false,{},succeededCallback,failedCallback,userContext); },
GetRandomNews:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Services.get_path(), 'GetRandomNews',false,{},succeededCallback,failedCallback,userContext); }}
Services.registerClass('Services',Sys.Net.WebServiceProxy);
Services._staticInstance = new Services();
Services.set_path = function(value) { Services._staticInstance._path = value; }
Services.get_path = function() { return Services._staticInstance._path; }
Services.set_timeout = function(value) { Services._staticInstance._timeout = value; }
Services.get_timeout = function() { return Services._staticInstance._timeout; }
Services.set_defaultUserContext = function(value) { Services._staticInstance._userContext = value; }
Services.get_defaultUserContext = function() { return Services._staticInstance._userContext; }
Services.set_defaultSucceededCallback = function(value) { Services._staticInstance._succeeded = value; }
Services.get_defaultSucceededCallback = function() { return Services._staticInstance._succeeded; }
Services.set_defaultFailedCallback = function(value) { Services._staticInstance._failed = value; }
Services.get_defaultFailedCallback = function() { return Services._staticInstance._failed; }
Services.set_path("/Services.asmx");
Services.GetProducts= function(categoryID,onSuccess,onFailed,userContext) {Services._staticInstance.GetProducts(categoryID,onSuccess,onFailed,userContext); }
Services.GetProduct= function(productID,onSuccess,onFailed,userContext) {Services._staticInstance.GetProduct(productID,onSuccess,onFailed,userContext); }
Services.GetCategories= function(onSuccess,onFailed,userContext) {Services._staticInstance.GetCategories(onSuccess,onFailed,userContext); }
Services.GetCategory= function(categoryGUID,onSuccess,onFailed,userContext) {Services._staticInstance.GetCategory(categoryGUID,onSuccess,onFailed,userContext); }
Services.TransactCreditCartOrder= function(order,onSuccess,onFailed,userContext) {Services._staticInstance.TransactCreditCartOrder(order,onSuccess,onFailed,userContext); }
Services.GetRandomBannerAd= function(onSuccess,onFailed,userContext) {Services._staticInstance.GetRandomBannerAd(onSuccess,onFailed,userContext); }
Services.GetNextBannerAd= function(CurrentIndex,onSuccess,onFailed,userContext) {Services._staticInstance.GetNextBannerAd(CurrentIndex,onSuccess,onFailed,userContext); }
Services.GetBannerAdverts= function(onSuccess,onFailed,userContext) {Services._staticInstance.GetBannerAdverts(onSuccess,onFailed,userContext); }
Services.GetRandomNews= function(onSuccess,onFailed,userContext) {Services._staticInstance.GetRandomNews(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Commerce.Common');
if (typeof(Commerce.Common.Product) === 'undefined') {
Commerce.Common.Product=gtc("Commerce.Common.Product");
Commerce.Common.Product.registerClass('Commerce.Common.Product');
}
if (typeof(Commerce.Common.Category) === 'undefined') {
Commerce.Common.Category=gtc("Commerce.Common.Category");
Commerce.Common.Category.registerClass('Commerce.Common.Category');
}
if (typeof(Commerce.Common.Order) === 'undefined') {
Commerce.Common.Order=gtc("Commerce.Common.Order");
Commerce.Common.Order.registerClass('Commerce.Common.Order');
}
if (typeof(Commerce.Common.Transaction) === 'undefined') {
Commerce.Common.Transaction=gtc("Commerce.Common.Transaction");
Commerce.Common.Transaction.registerClass('Commerce.Common.Transaction');
}
if (typeof(Commerce.Common.BannerAdvert) === 'undefined') {
Commerce.Common.BannerAdvert=gtc("Commerce.Common.BannerAdvert");
Commerce.Common.BannerAdvert.registerClass('Commerce.Common.BannerAdvert');
}
Type.registerNamespace('AjaxControlToolkit');
if (typeof(AjaxControlToolkit.Slide) === 'undefined') {
AjaxControlToolkit.Slide=gtc("AjaxControlToolkit.Slide");
AjaxControlToolkit.Slide.registerClass('AjaxControlToolkit.Slide');
}
if (typeof(Commerce.Common.News) === 'undefined') {
Commerce.Common.News=gtc("Commerce.Common.News");
Commerce.Common.News.registerClass('Commerce.Common.News');
}
