Type.registerNamespace('CoffeeMate.Site.Services');
CoffeeMate.Site.Services.CommentService=function() {
CoffeeMate.Site.Services.CommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CoffeeMate.Site.Services.CommentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CoffeeMate.Site.Services.CommentService._staticInstance.get_path();},
SaveComment:function(sComment,gContentId,gCommentType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveComment',false,{sComment:sComment,gContentId:gContentId,gCommentType:gCommentType},succeededCallback,failedCallback,userContext); },
FlagAsInappropriate:function(gCommentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FlagAsInappropriate',false,{gCommentId:gCommentId},succeededCallback,failedCallback,userContext); }}
CoffeeMate.Site.Services.CommentService.registerClass('CoffeeMate.Site.Services.CommentService',Sys.Net.WebServiceProxy);
CoffeeMate.Site.Services.CommentService._staticInstance = new CoffeeMate.Site.Services.CommentService();
CoffeeMate.Site.Services.CommentService.set_path = function(value) { CoffeeMate.Site.Services.CommentService._staticInstance.set_path(value); }
CoffeeMate.Site.Services.CommentService.get_path = function() { return CoffeeMate.Site.Services.CommentService._staticInstance.get_path(); }
CoffeeMate.Site.Services.CommentService.set_timeout = function(value) { CoffeeMate.Site.Services.CommentService._staticInstance.set_timeout(value); }
CoffeeMate.Site.Services.CommentService.get_timeout = function() { return CoffeeMate.Site.Services.CommentService._staticInstance.get_timeout(); }
CoffeeMate.Site.Services.CommentService.set_defaultUserContext = function(value) { CoffeeMate.Site.Services.CommentService._staticInstance.set_defaultUserContext(value); }
CoffeeMate.Site.Services.CommentService.get_defaultUserContext = function() { return CoffeeMate.Site.Services.CommentService._staticInstance.get_defaultUserContext(); }
CoffeeMate.Site.Services.CommentService.set_defaultSucceededCallback = function(value) { CoffeeMate.Site.Services.CommentService._staticInstance.set_defaultSucceededCallback(value); }
CoffeeMate.Site.Services.CommentService.get_defaultSucceededCallback = function() { return CoffeeMate.Site.Services.CommentService._staticInstance.get_defaultSucceededCallback(); }
CoffeeMate.Site.Services.CommentService.set_defaultFailedCallback = function(value) { CoffeeMate.Site.Services.CommentService._staticInstance.set_defaultFailedCallback(value); }
CoffeeMate.Site.Services.CommentService.get_defaultFailedCallback = function() { return CoffeeMate.Site.Services.CommentService._staticInstance.get_defaultFailedCallback(); }
CoffeeMate.Site.Services.CommentService.set_path("/Services/CommentService.asmx");
CoffeeMate.Site.Services.CommentService.SaveComment= function(sComment,gContentId,gCommentType,onSuccess,onFailed,userContext) {CoffeeMate.Site.Services.CommentService._staticInstance.SaveComment(sComment,gContentId,gCommentType,onSuccess,onFailed,userContext); }
CoffeeMate.Site.Services.CommentService.FlagAsInappropriate= function(gCommentId,onSuccess,onFailed,userContext) {CoffeeMate.Site.Services.CommentService._staticInstance.FlagAsInappropriate(gCommentId,onSuccess,onFailed,userContext); }

