Type.registerNamespace('Medyasoft');
Medyasoft.AjaxServices=function() {
Medyasoft.AjaxServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Medyasoft.AjaxServices.prototype={
GetProducts:function(Keyword,LangID,succeededCallback, failedCallback, userContext) {
return this._invoke(Medyasoft.AjaxServices.get_path(), 'GetProducts',false,{Keyword:Keyword,LangID:LangID},succeededCallback,failedCallback,userContext); },
GetProductChilds:function(ProductID,succeededCallback, failedCallback, userContext) {
return this._invoke(Medyasoft.AjaxServices.get_path(), 'GetProductChilds',false,{ProductID:ProductID},succeededCallback,failedCallback,userContext); },
GetPoll:function(PollID,BarLength,succeededCallback, failedCallback, userContext) {
return this._invoke(Medyasoft.AjaxServices.get_path(), 'GetPoll',false,{PollID:PollID,BarLength:BarLength},succeededCallback,failedCallback,userContext); },
PollVote:function(PollID,Collection,succeededCallback, failedCallback, userContext) {
return this._invoke(Medyasoft.AjaxServices.get_path(), 'PollVote',false,{PollID:PollID,Collection:Collection},succeededCallback,failedCallback,userContext); }}
Medyasoft.AjaxServices.registerClass('Medyasoft.AjaxServices',Sys.Net.WebServiceProxy);
Medyasoft.AjaxServices._staticInstance = new Medyasoft.AjaxServices();
Medyasoft.AjaxServices.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Medyasoft.AjaxServices._staticInstance._path = value; }
Medyasoft.AjaxServices.get_path = function() { return Medyasoft.AjaxServices._staticInstance._path; }
Medyasoft.AjaxServices.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); }
Medyasoft.AjaxServices._staticInstance._timeout = value; }
Medyasoft.AjaxServices.get_timeout = function() { 
return Medyasoft.AjaxServices._staticInstance._timeout; }
Medyasoft.AjaxServices.set_defaultUserContext = function(value) { 
Medyasoft.AjaxServices._staticInstance._userContext = value; }
Medyasoft.AjaxServices.get_defaultUserContext = function() { 
return Medyasoft.AjaxServices._staticInstance._userContext; }
Medyasoft.AjaxServices.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Medyasoft.AjaxServices._staticInstance._succeeded = value; }
Medyasoft.AjaxServices.get_defaultSucceededCallback = function() { 
return Medyasoft.AjaxServices._staticInstance._succeeded; }
Medyasoft.AjaxServices.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Medyasoft.AjaxServices._staticInstance._failed = value; }
Medyasoft.AjaxServices.get_defaultFailedCallback = function() { 
return Medyasoft.AjaxServices._staticInstance._failed; }
Medyasoft.AjaxServices.set_path("/AjaxServices.asmx");
Medyasoft.AjaxServices.GetProducts= function(Keyword,LangID,onSuccess,onFailed,userContext) {Medyasoft.AjaxServices._staticInstance.GetProducts(Keyword,LangID,onSuccess,onFailed,userContext); }
Medyasoft.AjaxServices.GetProductChilds= function(ProductID,onSuccess,onFailed,userContext) {Medyasoft.AjaxServices._staticInstance.GetProductChilds(ProductID,onSuccess,onFailed,userContext); }
Medyasoft.AjaxServices.GetPoll= function(PollID,BarLength,onSuccess,onFailed,userContext) {Medyasoft.AjaxServices._staticInstance.GetPoll(PollID,BarLength,onSuccess,onFailed,userContext); }
Medyasoft.AjaxServices.PollVote= function(PollID,Collection,onSuccess,onFailed,userContext) {Medyasoft.AjaxServices._staticInstance.PollVote(PollID,Collection,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Medyasoft.AjaxServices_QuickProduct) === 'undefined') {
Medyasoft.AjaxServices_QuickProduct=gtc("Medyasoft.AjaxServices+QuickProduct");
Medyasoft.AjaxServices_QuickProduct.registerClass('Medyasoft.AjaxServices_QuickProduct');
}
if (typeof(Medyasoft.AjaxServices_ChildList) === 'undefined') {
Medyasoft.AjaxServices_ChildList=gtc("Medyasoft.AjaxServices+ChildList");
Medyasoft.AjaxServices_ChildList.registerClass('Medyasoft.AjaxServices_ChildList');
}
if (typeof(Medyasoft.AjaxServices_WPoll) === 'undefined') {
Medyasoft.AjaxServices_WPoll=gtc("Medyasoft.AjaxServices+WPoll");
Medyasoft.AjaxServices_WPoll.registerClass('Medyasoft.AjaxServices_WPoll');
}
