Type.registerNamespace('DNNCentric.RatingAndComments');
DNNCentric.RatingAndComments.RatingController=function() {
DNNCentric.RatingAndComments.RatingController.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DNNCentric.RatingAndComments.RatingController.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DNNCentric.RatingAndComments.RatingController._staticInstance.get_path();},
UpdateRating:function(_UserRating,_UserId,_CommentObjId,_IsUnRegisterUserAllowed,_UserRatingUpdateAllowed,LocalAlreadyRated,LocalLoginToRate,AnonyKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateRating',true,{_UserRating:_UserRating,_UserId:_UserId,_CommentObjId:_CommentObjId,_IsUnRegisterUserAllowed:_IsUnRegisterUserAllowed,_UserRatingUpdateAllowed:_UserRatingUpdateAllowed,LocalAlreadyRated:LocalAlreadyRated,LocalLoginToRate:LocalLoginToRate,AnonyKey:AnonyKey},succeededCallback,failedCallback,userContext); },
UpdatePointResponse:function(strUserId,strCommentId,strUpOrDown,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePointResponse',true,{strUserId:strUserId,strCommentId:strCommentId,strUpOrDown:strUpOrDown},succeededCallback,failedCallback,userContext); }}
DNNCentric.RatingAndComments.RatingController.registerClass('DNNCentric.RatingAndComments.RatingController',Sys.Net.WebServiceProxy);
DNNCentric.RatingAndComments.RatingController._staticInstance = new DNNCentric.RatingAndComments.RatingController();
DNNCentric.RatingAndComments.RatingController.set_path = function(value) { DNNCentric.RatingAndComments.RatingController._staticInstance.set_path(value); }
DNNCentric.RatingAndComments.RatingController.get_path = function() { return DNNCentric.RatingAndComments.RatingController._staticInstance.get_path(); }
DNNCentric.RatingAndComments.RatingController.set_timeout = function(value) { DNNCentric.RatingAndComments.RatingController._staticInstance.set_timeout(value); }
DNNCentric.RatingAndComments.RatingController.get_timeout = function() { return DNNCentric.RatingAndComments.RatingController._staticInstance.get_timeout(); }
DNNCentric.RatingAndComments.RatingController.set_defaultUserContext = function(value) { DNNCentric.RatingAndComments.RatingController._staticInstance.set_defaultUserContext(value); }
DNNCentric.RatingAndComments.RatingController.get_defaultUserContext = function() { return DNNCentric.RatingAndComments.RatingController._staticInstance.get_defaultUserContext(); }
DNNCentric.RatingAndComments.RatingController.set_defaultSucceededCallback = function(value) { DNNCentric.RatingAndComments.RatingController._staticInstance.set_defaultSucceededCallback(value); }
DNNCentric.RatingAndComments.RatingController.get_defaultSucceededCallback = function() { return DNNCentric.RatingAndComments.RatingController._staticInstance.get_defaultSucceededCallback(); }
DNNCentric.RatingAndComments.RatingController.set_defaultFailedCallback = function(value) { DNNCentric.RatingAndComments.RatingController._staticInstance.set_defaultFailedCallback(value); }
DNNCentric.RatingAndComments.RatingController.get_defaultFailedCallback = function() { return DNNCentric.RatingAndComments.RatingController._staticInstance.get_defaultFailedCallback(); }
DNNCentric.RatingAndComments.RatingController.set_path("/DesktopModules/DNNCentric-RatingAndComments/RatingController.asmx");
DNNCentric.RatingAndComments.RatingController.UpdateRating= function(_UserRating,_UserId,_CommentObjId,_IsUnRegisterUserAllowed,_UserRatingUpdateAllowed,LocalAlreadyRated,LocalLoginToRate,AnonyKey,onSuccess,onFailed,userContext) {DNNCentric.RatingAndComments.RatingController._staticInstance.UpdateRating(_UserRating,_UserId,_CommentObjId,_IsUnRegisterUserAllowed,_UserRatingUpdateAllowed,LocalAlreadyRated,LocalLoginToRate,AnonyKey,onSuccess,onFailed,userContext); }
DNNCentric.RatingAndComments.RatingController.UpdatePointResponse= function(strUserId,strCommentId,strUpOrDown,onSuccess,onFailed,userContext) {DNNCentric.RatingAndComments.RatingController._staticInstance.UpdatePointResponse(strUserId,strCommentId,strUpOrDown,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DNNCentric.RatingAndComments.Components');
if (typeof(DNNCentric.RatingAndComments.Components.PRC_DisplayedRatingsInfo) === 'undefined') {
DNNCentric.RatingAndComments.Components.PRC_DisplayedRatingsInfo=gtc("DNNCentric.RatingAndComments.Components.PRC_DisplayedRatingsInfo");
DNNCentric.RatingAndComments.Components.PRC_DisplayedRatingsInfo.registerClass('DNNCentric.RatingAndComments.Components.PRC_DisplayedRatingsInfo');
}
