var CommentService=function() {
CommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CommentService._staticInstance.get_path();},
SubmitComment:function(Content,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubmitComment',false,{Content:Content},succeededCallback,failedCallback,userContext); },
GetComment:function(PageSize,PageIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetComment',false,{PageSize:PageSize,PageIndex:PageIndex},succeededCallback,failedCallback,userContext); },
ReplyComment:function(CommentID,ReplyContent,CurrPageIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReplyComment',false,{CommentID:CommentID,ReplyContent:ReplyContent,CurrPageIndex:CurrPageIndex},succeededCallback,failedCallback,userContext); },
DeleteComment:function(CommentID,CurrPageIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteComment',false,{CommentID:CommentID,CurrPageIndex:CurrPageIndex},succeededCallback,failedCallback,userContext); }}
CommentService.registerClass('CommentService',Sys.Net.WebServiceProxy);
CommentService._staticInstance = new CommentService();
CommentService.set_path = function(value) { CommentService._staticInstance.set_path(value); }
CommentService.get_path = function() { return CommentService._staticInstance.get_path(); }
CommentService.set_timeout = function(value) { CommentService._staticInstance.set_timeout(value); }
CommentService.get_timeout = function() { return CommentService._staticInstance.get_timeout(); }
CommentService.set_defaultUserContext = function(value) { CommentService._staticInstance.set_defaultUserContext(value); }
CommentService.get_defaultUserContext = function() { return CommentService._staticInstance.get_defaultUserContext(); }
CommentService.set_defaultSucceededCallback = function(value) { CommentService._staticInstance.set_defaultSucceededCallback(value); }
CommentService.get_defaultSucceededCallback = function() { return CommentService._staticInstance.get_defaultSucceededCallback(); }
CommentService.set_defaultFailedCallback = function(value) { CommentService._staticInstance.set_defaultFailedCallback(value); }
CommentService.get_defaultFailedCallback = function() { return CommentService._staticInstance.get_defaultFailedCallback(); }
CommentService.set_path("/service/CommentService.asmx");
CommentService.SubmitComment= function(Content,onSuccess,onFailed,userContext) {CommentService._staticInstance.SubmitComment(Content,onSuccess,onFailed,userContext); }
CommentService.GetComment= function(PageSize,PageIndex,onSuccess,onFailed,userContext) {CommentService._staticInstance.GetComment(PageSize,PageIndex,onSuccess,onFailed,userContext); }
CommentService.ReplyComment= function(CommentID,ReplyContent,CurrPageIndex,onSuccess,onFailed,userContext) {CommentService._staticInstance.ReplyComment(CommentID,ReplyContent,CurrPageIndex,onSuccess,onFailed,userContext); }
CommentService.DeleteComment= function(CommentID,CurrPageIndex,onSuccess,onFailed,userContext) {CommentService._staticInstance.DeleteComment(CommentID,CurrPageIndex,onSuccess,onFailed,userContext); }
