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();},
GetComments:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetComments',false,{},succeededCallback,failedCallback,userContext); },
AddComment:function(comment,agentId,succeededCallback, failedCallback, userContext) {
/// <param name="comment" type="String">System.String</param>
/// <param name="agentId" 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(), 'AddComment',false,{comment:comment,agentId:agentId},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() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CommentService._staticInstance.get_path();}
CommentService.set_timeout = function(value) {
CommentService._staticInstance.set_timeout(value); }
CommentService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CommentService._staticInstance.get_timeout(); }
CommentService.set_defaultUserContext = function(value) { 
CommentService._staticInstance.set_defaultUserContext(value); }
CommentService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CommentService._staticInstance.get_defaultUserContext(); }
CommentService.set_defaultSucceededCallback = function(value) { 
 CommentService._staticInstance.set_defaultSucceededCallback(value); }
CommentService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CommentService._staticInstance.get_defaultSucceededCallback(); }
CommentService.set_defaultFailedCallback = function(value) { 
CommentService._staticInstance.set_defaultFailedCallback(value); }
CommentService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CommentService._staticInstance.get_defaultFailedCallback(); }
CommentService.set_enableJsonp = function(value) { CommentService._staticInstance.set_enableJsonp(value); }
CommentService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return CommentService._staticInstance.get_enableJsonp(); }
CommentService.set_jsonpCallbackParameter = function(value) { CommentService._staticInstance.set_jsonpCallbackParameter(value); }
CommentService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return CommentService._staticInstance.get_jsonpCallbackParameter(); }
CommentService.set_path("/CommentService.asmx");
CommentService.GetComments= function(onSuccess,onFailed,userContext) {
/// <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>
CommentService._staticInstance.GetComments(onSuccess,onFailed,userContext); }
CommentService.AddComment= function(comment,agentId,onSuccess,onFailed,userContext) {
/// <param name="comment" type="String">System.String</param>
/// <param name="agentId" 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>
CommentService._staticInstance.AddComment(comment,agentId,onSuccess,onFailed,userContext); }
