Type.registerNamespace('Barbar.Portal.BL.Web.AjaxServices');
Barbar.Portal.BL.Web.AjaxServices.RatingService=function() {
Barbar.Portal.BL.Web.AjaxServices.RatingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Barbar.Portal.BL.Web.AjaxServices.RatingService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.get_path();},
Rate:function(productID,productRankID,timestamp,succeededCallback, failedCallback, userContext) {
/// <param name="productID" type="Number">System.Int32</param>
/// <param name="productRankID" type="Number">System.Int32</param>
/// <param name="timestamp" 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(), 'Rate',false,{productID:productID,productRankID:productRankID,timestamp:timestamp},succeededCallback,failedCallback,userContext); }}
Barbar.Portal.BL.Web.AjaxServices.RatingService.registerClass('Barbar.Portal.BL.Web.AjaxServices.RatingService',Sys.Net.WebServiceProxy);
Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance = new Barbar.Portal.BL.Web.AjaxServices.RatingService();
Barbar.Portal.BL.Web.AjaxServices.RatingService.set_path = function(value) {
Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.set_path(value); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.get_path();}
Barbar.Portal.BL.Web.AjaxServices.RatingService.set_timeout = function(value) {
Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.set_timeout(value); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.get_timeout(); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.set_defaultUserContext = function(value) { 
Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.set_defaultUserContext(value); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.get_defaultUserContext(); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.set_defaultSucceededCallback = function(value) { 
 Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.set_defaultSucceededCallback(value); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.get_defaultSucceededCallback(); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.set_defaultFailedCallback = function(value) { 
Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.set_defaultFailedCallback(value); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.get_defaultFailedCallback(); }
Barbar.Portal.BL.Web.AjaxServices.RatingService.set_path("/AjaxServices/RatingService.asmx");
Barbar.Portal.BL.Web.AjaxServices.RatingService.Rate= function(productID,productRankID,timestamp,onSuccess,onFailed,userContext) {
/// <param name="productID" type="Number">System.Int32</param>
/// <param name="productRankID" type="Number">System.Int32</param>
/// <param name="timestamp" 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>
Barbar.Portal.BL.Web.AjaxServices.RatingService._staticInstance.Rate(productID,productRankID,timestamp,onSuccess,onFailed,userContext); }
