
var CommentHelper=function() {
CommentHelper.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentHelper.prototype={
CommentSentimentSaveComment:function(articleId,sentiment,savedComment,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentHelper.get_path(), 'CommentSentimentSaveComment',false,{articleId:articleId,sentiment:sentiment,savedComment:savedComment},succeededCallback,failedCallback,userContext); },
CommentSentiment:function(articleId,sentiment,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentHelper.get_path(), 'CommentSentiment',false,{articleId:articleId,sentiment:sentiment},succeededCallback,failedCallback,userContext); },
AddCommentNotLoggedIn:function(savedComment,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentHelper.get_path(), 'AddCommentNotLoggedIn',false,{savedComment:savedComment},succeededCallback,failedCallback,userContext); },
AddCommentFromJS:function(uid,ArticleId,rawText,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentHelper.get_path(), 'AddCommentFromJS',false,{uid:uid,ArticleId:ArticleId,rawText:rawText},succeededCallback,failedCallback,userContext); },
GetNewCommentHTML:function(cid,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentHelper.get_path(), 'GetNewCommentHTML',false,{cid:cid},succeededCallback,failedCallback,userContext); }}
CommentHelper.registerClass('CommentHelper',Sys.Net.WebServiceProxy);
CommentHelper._staticInstance = new CommentHelper();
CommentHelper.set_path = function(value) { CommentHelper._staticInstance.set_path(value); }
CommentHelper.get_path = function() { return CommentHelper._staticInstance.get_path(); }
CommentHelper.set_timeout = function(value) { CommentHelper._staticInstance.set_timeout(value); }
CommentHelper.get_timeout = function() { return CommentHelper._staticInstance.get_timeout(); }
CommentHelper.set_defaultUserContext = function(value) { CommentHelper._staticInstance.set_defaultUserContext(value); }
CommentHelper.get_defaultUserContext = function() { return CommentHelper._staticInstance.get_defaultUserContext(); }
CommentHelper.set_defaultSucceededCallback = function(value) { CommentHelper._staticInstance.set_defaultSucceededCallback(value); }
CommentHelper.get_defaultSucceededCallback = function() { return CommentHelper._staticInstance.get_defaultSucceededCallback(); }
CommentHelper.set_defaultFailedCallback = function(value) { CommentHelper._staticInstance.set_defaultFailedCallback(value); }
CommentHelper.get_defaultFailedCallback = function() { return CommentHelper._staticInstance.get_defaultFailedCallback(); }
CommentHelper.set_path("/Services/Comment.asmx");
CommentHelper.CommentSentimentSaveComment= function(articleId,sentiment,savedComment,onSuccess,onFailed,userContext) {CommentHelper._staticInstance.CommentSentimentSaveComment(articleId,sentiment,savedComment,onSuccess,onFailed,userContext); }
CommentHelper.CommentSentiment= function(articleId,sentiment,onSuccess,onFailed,userContext) {CommentHelper._staticInstance.CommentSentiment(articleId,sentiment,onSuccess,onFailed,userContext); }
CommentHelper.AddCommentNotLoggedIn= function(savedComment,onSuccess,onFailed,userContext) {CommentHelper._staticInstance.AddCommentNotLoggedIn(savedComment,onSuccess,onFailed,userContext); }
CommentHelper.AddCommentFromJS= function(uid,ArticleId,rawText,onSuccess,onFailed,userContext) {CommentHelper._staticInstance.AddCommentFromJS(uid,ArticleId,rawText,onSuccess,onFailed,userContext); }
CommentHelper.GetNewCommentHTML= function(cid,onSuccess,onFailed,userContext) {CommentHelper._staticInstance.GetNewCommentHTML(cid,onSuccess,onFailed,userContext); }
