var CommentsService=function() {
CommentsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CommentsService._staticInstance.get_path();},
SetCommentsCount:function(itemId,commentsCount,itemType,succeededCallback, failedCallback, userContext) {
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="commentsCount" type="Number">System.Int32</param>
/// <param name="itemType" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SetCommentsCount',false,{itemId:itemId,commentsCount:commentsCount,itemType:itemType},succeededCallback,failedCallback,userContext); },
GetCommentsCount:function(itemId,itemType,succeededCallback, failedCallback, userContext) {
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="itemType" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCommentsCount',false,{itemId:itemId,itemType:itemType},succeededCallback,failedCallback,userContext); }}
CommentsService.registerClass('CommentsService',Sys.Net.WebServiceProxy);
CommentsService._staticInstance = new CommentsService();
CommentsService.set_path = function(value) {
CommentsService._staticInstance.set_path(value); }
CommentsService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CommentsService._staticInstance.get_path();}
CommentsService.set_timeout = function(value) {
CommentsService._staticInstance.set_timeout(value); }
CommentsService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CommentsService._staticInstance.get_timeout(); }
CommentsService.set_defaultUserContext = function(value) { 
CommentsService._staticInstance.set_defaultUserContext(value); }
CommentsService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CommentsService._staticInstance.get_defaultUserContext(); }
CommentsService.set_defaultSucceededCallback = function(value) { 
 CommentsService._staticInstance.set_defaultSucceededCallback(value); }
CommentsService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CommentsService._staticInstance.get_defaultSucceededCallback(); }
CommentsService.set_defaultFailedCallback = function(value) { 
CommentsService._staticInstance.set_defaultFailedCallback(value); }
CommentsService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CommentsService._staticInstance.get_defaultFailedCallback(); }
CommentsService.set_enableJsonp = function(value) { CommentsService._staticInstance.set_enableJsonp(value); }
CommentsService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return CommentsService._staticInstance.get_enableJsonp(); }
CommentsService.set_jsonpCallbackParameter = function(value) { CommentsService._staticInstance.set_jsonpCallbackParameter(value); }
CommentsService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return CommentsService._staticInstance.get_jsonpCallbackParameter(); }
CommentsService.set_path("/WebServices/CommentsService.asmx");
CommentsService.SetCommentsCount= function(itemId,commentsCount,itemType,onSuccess,onFailed,userContext) {
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="commentsCount" type="Number">System.Int32</param>
/// <param name="itemType" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
CommentsService._staticInstance.SetCommentsCount(itemId,commentsCount,itemType,onSuccess,onFailed,userContext); }
CommentsService.GetCommentsCount= function(itemId,itemType,onSuccess,onFailed,userContext) {
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="itemType" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
CommentsService._staticInstance.GetCommentsCount(itemId,itemType,onSuccess,onFailed,userContext); }

