var CommentsService=function() {
CommentsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentsService.prototype={
DeleteComment:function(CommentTypeID,ObjectID,CommentID,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentsService.get_path(), 'DeleteComment',false,{CommentTypeID:CommentTypeID,ObjectID:ObjectID,CommentID:CommentID},succeededCallback,failedCallback,userContext); },
AddComments:function(ObjectType,ObjectID,text,UserID,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentsService.get_path(), 'AddComments',false,{ObjectType:ObjectType,ObjectID:ObjectID,text:text,UserID:UserID},succeededCallback,failedCallback,userContext); }}
CommentsService.registerClass('CommentsService',Sys.Net.WebServiceProxy);
CommentsService._staticInstance = new CommentsService();
CommentsService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CommentsService._staticInstance._path = value; }
CommentsService.get_path = function() { return CommentsService._staticInstance._path; }
CommentsService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
CommentsService._staticInstance._timeout = value; }
CommentsService.get_timeout = function() { 
return CommentsService._staticInstance._timeout; }
CommentsService.set_defaultUserContext = function(value) { 
CommentsService._staticInstance._userContext = value; }
CommentsService.get_defaultUserContext = function() { 
return CommentsService._staticInstance._userContext; }
CommentsService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CommentsService._staticInstance._succeeded = value; }
CommentsService.get_defaultSucceededCallback = function() { 
return CommentsService._staticInstance._succeeded; }
CommentsService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CommentsService._staticInstance._failed = value; }
CommentsService.get_defaultFailedCallback = function() { 
return CommentsService._staticInstance._failed; }
CommentsService.set_path("/mods/Comments.asmx");
CommentsService.DeleteComment= function(CommentTypeID,ObjectID,CommentID,onSuccess,onFailed,userContext) {CommentsService._staticInstance.DeleteComment(CommentTypeID,ObjectID,CommentID,onSuccess,onFailed,userContext); }
CommentsService.AddComments= function(ObjectType,ObjectID,text,UserID,onSuccess,onFailed,userContext) {CommentsService._staticInstance.AddComments(ObjectType,ObjectID,text,UserID,onSuccess,onFailed,userContext); }
