Type.registerNamespace('YouDo.WebServices');
YouDo.WebServices.CommentsService=function() {
YouDo.WebServices.CommentsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
YouDo.WebServices.CommentsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return YouDo.WebServices.CommentsService._staticInstance.get_path();},
ReplyObject:function(message,messageType,commentId,objectId,objectType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReplyObject',false,{message:message,messageType:messageType,commentId:commentId,objectId:objectId,objectType:objectType},succeededCallback,failedCallback,userContext); },
GetCommentsByObjectTypeAndId2:function(objectType,objectId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentsByObjectTypeAndId2',false,{objectType:objectType,objectId:objectId},succeededCallback,failedCallback,userContext); },
GetCommentTextById:function(objectId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentTextById',false,{objectId:objectId},succeededCallback,failedCallback,userContext); }}
YouDo.WebServices.CommentsService.registerClass('YouDo.WebServices.CommentsService',Sys.Net.WebServiceProxy);
YouDo.WebServices.CommentsService._staticInstance = new YouDo.WebServices.CommentsService();
YouDo.WebServices.CommentsService.set_path = function(value) { YouDo.WebServices.CommentsService._staticInstance.set_path(value); }
YouDo.WebServices.CommentsService.get_path = function() { return YouDo.WebServices.CommentsService._staticInstance.get_path(); }
YouDo.WebServices.CommentsService.set_timeout = function(value) { YouDo.WebServices.CommentsService._staticInstance.set_timeout(value); }
YouDo.WebServices.CommentsService.get_timeout = function() { return YouDo.WebServices.CommentsService._staticInstance.get_timeout(); }
YouDo.WebServices.CommentsService.set_defaultUserContext = function(value) { YouDo.WebServices.CommentsService._staticInstance.set_defaultUserContext(value); }
YouDo.WebServices.CommentsService.get_defaultUserContext = function() { return YouDo.WebServices.CommentsService._staticInstance.get_defaultUserContext(); }
YouDo.WebServices.CommentsService.set_defaultSucceededCallback = function(value) { YouDo.WebServices.CommentsService._staticInstance.set_defaultSucceededCallback(value); }
YouDo.WebServices.CommentsService.get_defaultSucceededCallback = function() { return YouDo.WebServices.CommentsService._staticInstance.get_defaultSucceededCallback(); }
YouDo.WebServices.CommentsService.set_defaultFailedCallback = function(value) { YouDo.WebServices.CommentsService._staticInstance.set_defaultFailedCallback(value); }
YouDo.WebServices.CommentsService.get_defaultFailedCallback = function() { return YouDo.WebServices.CommentsService._staticInstance.get_defaultFailedCallback(); }
YouDo.WebServices.CommentsService.set_path("/WebServices/CommentsService.asmx");
YouDo.WebServices.CommentsService.ReplyObject= function(message,messageType,commentId,objectId,objectType,onSuccess,onFailed,userContext) {YouDo.WebServices.CommentsService._staticInstance.ReplyObject(message,messageType,commentId,objectId,objectType,onSuccess,onFailed,userContext); }
YouDo.WebServices.CommentsService.GetCommentsByObjectTypeAndId2= function(objectType,objectId,onSuccess,onFailed,userContext) {YouDo.WebServices.CommentsService._staticInstance.GetCommentsByObjectTypeAndId2(objectType,objectId,onSuccess,onFailed,userContext); }
YouDo.WebServices.CommentsService.GetCommentTextById= function(objectId,onSuccess,onFailed,userContext) {YouDo.WebServices.CommentsService._staticInstance.GetCommentTextById(objectId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('YouDo.Entities.Comment');
if (typeof(YouDo.Entities.Comment.Comment) === 'undefined') {
YouDo.Entities.Comment.Comment=gtc("YouDo.Entities.Comment.Comment");
YouDo.Entities.Comment.Comment.registerClass('YouDo.Entities.Comment.Comment');
}
if (typeof(YouDo.Entities.Comment.CreatorType) === 'undefined') {
YouDo.Entities.Comment.CreatorType = function() { throw Error.invalidOperation(); }
YouDo.Entities.Comment.CreatorType.prototype = {None: 0,TaskCreator: 1,SolutionCreator: 2,Judge: 3,Moderator: 4,Investor: 5}
YouDo.Entities.Comment.CreatorType.registerEnum('YouDo.Entities.Comment.CreatorType', true);
}
Type.registerNamespace('YouDo');
if (typeof(YouDo.ObjectParentType) === 'undefined') {
YouDo.ObjectParentType = function() { throw Error.invalidOperation(); }
YouDo.ObjectParentType.prototype = {None: 0,Task: 10,Solution: 20,Blog: 30,Comment: 40,News: 50,Forum: 60,Quiz: 70}
YouDo.ObjectParentType.registerEnum('YouDo.ObjectParentType', true);
}
