var commentservice=function() {
commentservice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
commentservice.prototype={
AddComment:function(txt,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'AddComment',false,{txt:txt},succeededCallback,failedCallback,userContext); },
AddBetParentComment:function(txt,refId,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'AddBetParentComment',false,{txt:txt,refId:refId,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); },
AddParentComment:function(txt,refId,refType,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'AddParentComment',false,{txt:txt,refId:refId,refType:refType,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); },
AddChildComment:function(txt,parentId,refId,refType,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'AddChildComment',false,{txt:txt,parentId:parentId,refId:refId,refType:refType,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); },
AddBetChildComment:function(txt,parentId,refId,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'AddBetChildComment',false,{txt:txt,parentId:parentId,refId:refId,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); },
FlagComment:function(commentId,reason,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'FlagComment',false,{commentId:commentId,reason:reason},succeededCallback,failedCallback,userContext); },
GetCommentReplies:function(parentCommentId,refID,refType,isLoggedIn,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'GetCommentReplies',false,{parentCommentId:parentCommentId,refID:refID,refType:refType,isLoggedIn:isLoggedIn,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); },
GetCommentsPaged:function(pageIndex,numRows,refID,refType,isLoggedIn,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'GetCommentsPaged',false,{pageIndex:pageIndex,numRows:numRows,refID:refID,refType:refType,isLoggedIn:isLoggedIn,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); },
AddBetParentCommentAndRating:function(rating,comment,settleUserId,refId,baseUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(commentservice.get_path(), 'AddBetParentCommentAndRating',false,{rating:rating,comment:comment,settleUserId:settleUserId,refId:refId,baseUrl:baseUrl},succeededCallback,failedCallback,userContext); }}
commentservice.registerClass('commentservice',Sys.Net.WebServiceProxy);
commentservice._staticInstance = new commentservice();
commentservice.set_path = function(value) { commentservice._staticInstance._path = value; }
commentservice.get_path = function() { return commentservice._staticInstance._path; }
commentservice.set_timeout = function(value) { commentservice._staticInstance._timeout = value; }
commentservice.get_timeout = function() { return commentservice._staticInstance._timeout; }
commentservice.set_defaultUserContext = function(value) { commentservice._staticInstance._userContext = value; }
commentservice.get_defaultUserContext = function() { return commentservice._staticInstance._userContext; }
commentservice.set_defaultSucceededCallback = function(value) { commentservice._staticInstance._succeeded = value; }
commentservice.get_defaultSucceededCallback = function() { return commentservice._staticInstance._succeeded; }
commentservice.set_defaultFailedCallback = function(value) { commentservice._staticInstance._failed = value; }
commentservice.get_defaultFailedCallback = function() { return commentservice._staticInstance._failed; }
commentservice.set_path("/services/commentservice.asmx");
commentservice.AddComment= function(txt,onSuccess,onFailed,userContext) {commentservice._staticInstance.AddComment(txt,onSuccess,onFailed,userContext); }
commentservice.AddBetParentComment= function(txt,refId,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.AddBetParentComment(txt,refId,baseUrl,onSuccess,onFailed,userContext); }
commentservice.AddParentComment= function(txt,refId,refType,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.AddParentComment(txt,refId,refType,baseUrl,onSuccess,onFailed,userContext); }
commentservice.AddChildComment= function(txt,parentId,refId,refType,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.AddChildComment(txt,parentId,refId,refType,baseUrl,onSuccess,onFailed,userContext); }
commentservice.AddBetChildComment= function(txt,parentId,refId,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.AddBetChildComment(txt,parentId,refId,baseUrl,onSuccess,onFailed,userContext); }
commentservice.FlagComment= function(commentId,reason,onSuccess,onFailed,userContext) {commentservice._staticInstance.FlagComment(commentId,reason,onSuccess,onFailed,userContext); }
commentservice.GetCommentReplies= function(parentCommentId,refID,refType,isLoggedIn,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.GetCommentReplies(parentCommentId,refID,refType,isLoggedIn,baseUrl,onSuccess,onFailed,userContext); }
commentservice.GetCommentsPaged= function(pageIndex,numRows,refID,refType,isLoggedIn,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.GetCommentsPaged(pageIndex,numRows,refID,refType,isLoggedIn,baseUrl,onSuccess,onFailed,userContext); }
commentservice.AddBetParentCommentAndRating= function(rating,comment,settleUserId,refId,baseUrl,onSuccess,onFailed,userContext) {commentservice._staticInstance.AddBetParentCommentAndRating(rating,comment,settleUserId,refId,baseUrl,onSuccess,onFailed,userContext); }
