var NewsWebService=function() {
NewsWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
NewsWebService.prototype={
GetComments:function(newsId,parentComment,parentGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'GetComments',false,{newsId:newsId,parentComment:parentComment,parentGuid:parentGuid},succeededCallback,failedCallback,userContext); },
GetComment:function(commentId,parentGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'GetComment',false,{commentId:commentId,parentGuid:parentGuid},succeededCallback,failedCallback,userContext); },
SetUserVoteComment:function(commentId,voteUp,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'SetUserVoteComment',false,{commentId:commentId,voteUp:voteUp},succeededCallback,failedCallback,userContext); },
PostComment:function(newsId,commentId,comment,parentBlockHasComment,parentGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'PostComment',false,{newsId:newsId,commentId:commentId,comment:comment,parentBlockHasComment:parentBlockHasComment,parentGuid:parentGuid},succeededCallback,failedCallback,userContext); },
CreateReport:function(newsId,commentId,reportType,content,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'CreateReport',false,{newsId:newsId,commentId:commentId,reportType:reportType,content:content},succeededCallback,failedCallback,userContext); },
EditComment:function(commentId,body,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'EditComment',false,{commentId:commentId,body:body},succeededCallback,failedCallback,userContext); },
DeleteComment:function(commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(NewsWebService.get_path(), 'DeleteComment',false,{commentId:commentId},succeededCallback,failedCallback,userContext); }}
NewsWebService.registerClass('NewsWebService',Sys.Net.WebServiceProxy);
NewsWebService._staticInstance = new NewsWebService();
NewsWebService.set_path = function(value) { NewsWebService._staticInstance._path = value; }
NewsWebService.get_path = function() { return NewsWebService._staticInstance._path; }
NewsWebService.set_timeout = function(value) { NewsWebService._staticInstance._timeout = value; }
NewsWebService.get_timeout = function() { return NewsWebService._staticInstance._timeout; }
NewsWebService.set_defaultUserContext = function(value) { NewsWebService._staticInstance._userContext = value; }
NewsWebService.get_defaultUserContext = function() { return NewsWebService._staticInstance._userContext; }
NewsWebService.set_defaultSucceededCallback = function(value) { NewsWebService._staticInstance._succeeded = value; }
NewsWebService.get_defaultSucceededCallback = function() { return NewsWebService._staticInstance._succeeded; }
NewsWebService.set_defaultFailedCallback = function(value) { NewsWebService._staticInstance._failed = value; }
NewsWebService.get_defaultFailedCallback = function() { return NewsWebService._staticInstance._failed; }
NewsWebService.set_path("/WebServices/NewsWebService.asmx");
NewsWebService.GetComments= function(newsId,parentComment,parentGuid,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.GetComments(newsId,parentComment,parentGuid,onSuccess,onFailed,userContext); }
NewsWebService.GetComment= function(commentId,parentGuid,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.GetComment(commentId,parentGuid,onSuccess,onFailed,userContext); }
NewsWebService.SetUserVoteComment= function(commentId,voteUp,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.SetUserVoteComment(commentId,voteUp,onSuccess,onFailed,userContext); }
NewsWebService.PostComment= function(newsId,commentId,comment,parentBlockHasComment,parentGuid,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.PostComment(newsId,commentId,comment,parentBlockHasComment,parentGuid,onSuccess,onFailed,userContext); }
NewsWebService.CreateReport= function(newsId,commentId,reportType,content,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.CreateReport(newsId,commentId,reportType,content,onSuccess,onFailed,userContext); }
NewsWebService.EditComment= function(commentId,body,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.EditComment(commentId,body,onSuccess,onFailed,userContext); }
NewsWebService.DeleteComment= function(commentId,onSuccess,onFailed,userContext) {NewsWebService._staticInstance.DeleteComment(commentId,onSuccess,onFailed,userContext); }

