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();},
AddComment:function(Comment,succeededCallback, failedCallback, userContext) {
/// <param name="Comment" type="UserComment">UserComment</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(), 'AddComment',false,{Comment:Comment},succeededCallback,failedCallback,userContext); },
DeleteComment:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</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(), 'DeleteComment',false,{id:id},succeededCallback,failedCallback,userContext); },
ApproveComment:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</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(), 'ApproveComment',false,{id:id},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_path("/AjaxScripts/CommentsService.asmx");
CommentsService.AddComment= function(Comment,onSuccess,onFailed,userContext) {
/// <param name="Comment" type="UserComment">UserComment</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.AddComment(Comment,onSuccess,onFailed,userContext); }
CommentsService.DeleteComment= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</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.DeleteComment(id,onSuccess,onFailed,userContext); }
CommentsService.ApproveComment= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</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.ApproveComment(id,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(UserComment) === 'undefined') {
var UserComment=gtc("UserComment");
UserComment.registerClass('UserComment');
}
