Type.registerNamespace('Kvetch.Services');
Kvetch.Services.CommentService=function() {
Kvetch.Services.CommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Kvetch.Services.CommentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Kvetch.Services.CommentService._staticInstance.get_path();},
GetComments:function(topicId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetComments',false,{topicId:topicId},succeededCallback,failedCallback,userContext); },
PostComment:function(text,author,topicId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostComment',false,{text:text,author:author,topicId:topicId},succeededCallback,failedCallback,userContext); }}
Kvetch.Services.CommentService.registerClass('Kvetch.Services.CommentService',Sys.Net.WebServiceProxy);
Kvetch.Services.CommentService._staticInstance = new Kvetch.Services.CommentService();
Kvetch.Services.CommentService.set_path = function(value) { Kvetch.Services.CommentService._staticInstance.set_path(value); }
Kvetch.Services.CommentService.get_path = function() { return Kvetch.Services.CommentService._staticInstance.get_path(); }
Kvetch.Services.CommentService.set_timeout = function(value) { Kvetch.Services.CommentService._staticInstance.set_timeout(value); }
Kvetch.Services.CommentService.get_timeout = function() { return Kvetch.Services.CommentService._staticInstance.get_timeout(); }
Kvetch.Services.CommentService.set_defaultUserContext = function(value) { Kvetch.Services.CommentService._staticInstance.set_defaultUserContext(value); }
Kvetch.Services.CommentService.get_defaultUserContext = function() { return Kvetch.Services.CommentService._staticInstance.get_defaultUserContext(); }
Kvetch.Services.CommentService.set_defaultSucceededCallback = function(value) { Kvetch.Services.CommentService._staticInstance.set_defaultSucceededCallback(value); }
Kvetch.Services.CommentService.get_defaultSucceededCallback = function() { return Kvetch.Services.CommentService._staticInstance.get_defaultSucceededCallback(); }
Kvetch.Services.CommentService.set_defaultFailedCallback = function(value) { Kvetch.Services.CommentService._staticInstance.set_defaultFailedCallback(value); }
Kvetch.Services.CommentService.get_defaultFailedCallback = function() { return Kvetch.Services.CommentService._staticInstance.get_defaultFailedCallback(); }
Kvetch.Services.CommentService.set_path("/Kvetch/Services/Comment.asmx");
Kvetch.Services.CommentService.GetComments= function(topicId,onSuccess,onFailed,userContext) {Kvetch.Services.CommentService._staticInstance.GetComments(topicId,onSuccess,onFailed,userContext); }
Kvetch.Services.CommentService.PostComment= function(text,author,topicId,onSuccess,onFailed,userContext) {Kvetch.Services.CommentService._staticInstance.PostComment(text,author,topicId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Kvetch.Domain');
if (typeof(Kvetch.Domain.Comment) === 'undefined') {
Kvetch.Domain.Comment=gtc("Kvetch.Domain.Comment");
Kvetch.Domain.Comment.registerClass('Kvetch.Domain.Comment');
}
