Type.registerNamespace('CodingStaff.Modules.Comments');
CodingStaff.Modules.Comments.CommentsService=function() {
CodingStaff.Modules.Comments.CommentsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CodingStaff.Modules.Comments.CommentsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CodingStaff.Modules.Comments.CommentsService._staticInstance.get_path();},
GetCAPTCHAImgUrl: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(), 'GetCAPTCHAImgUrl',false,{},succeededCallback,failedCallback,userContext); },
TestCAPTCHA:function(captcha,succeededCallback, failedCallback, userContext) {
/// <param name="captcha" type="String">System.String</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(), 'TestCAPTCHA',false,{captcha:captcha},succeededCallback,failedCallback,userContext); },
TestUniqueUserName:function(nick,succeededCallback, failedCallback, userContext) {
/// <param name="nick" type="String">System.String</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(), 'TestUniqueUserName',false,{nick:nick},succeededCallback,failedCallback,userContext); },
GetGravatarUrl:function(email,succeededCallback, failedCallback, userContext) {
/// <param name="email" type="String">System.String</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(), 'GetGravatarUrl',false,{email:email},succeededCallback,failedCallback,userContext); },
GetCommentCount:function(moduleId,itemId,rootId,succeededCallback, failedCallback, userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="rootId" 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(), 'GetCommentCount',false,{moduleId:moduleId,itemId:itemId,rootId:rootId},succeededCallback,failedCallback,userContext); },
LoadComments:function(moduleId,itemId,rootId,pageS,pageN,newestTop,succeededCallback, failedCallback, userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="rootId" type="Number">System.Int32</param>
/// <param name="pageS" type="Number">System.Int32</param>
/// <param name="pageN" type="Number">System.Int32</param>
/// <param name="newestTop" type="Boolean">System.Boolean</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(), 'LoadComments',false,{moduleId:moduleId,itemId:itemId,rootId:rootId,pageS:pageS,pageN:pageN,newestTop:newestTop},succeededCallback,failedCallback,userContext); },
GetCommentById:function(moduleId,commentId,succeededCallback, failedCallback, userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" 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(), 'GetCommentById',false,{moduleId:moduleId,commentId:commentId},succeededCallback,failedCallback,userContext); },
UpdateComment:function(moduleId,commentId,content,rating,approved,succeededCallback, failedCallback, userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" type="Number">System.Int32</param>
/// <param name="content" type="String">System.String</param>
/// <param name="rating" type="Number">System.Int32</param>
/// <param name="approved" type="Boolean">System.Boolean</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(), 'UpdateComment',false,{moduleId:moduleId,commentId:commentId,content:content,rating:rating,approved:approved},succeededCallback,failedCallback,userContext); },
ApproveComment:function(moduleId,commentId,succeededCallback, failedCallback, userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" 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,{moduleId:moduleId,commentId:commentId},succeededCallback,failedCallback,userContext); },
DeleteComment:function(moduleId,commentId,succeededCallback, failedCallback, userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" 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,{moduleId:moduleId,commentId:commentId},succeededCallback,failedCallback,userContext); },
PostComment:function(parentCommentId,moduleId,itemId,commentBody,user,email,webSite,captcha,rating,reciveCommens,succeededCallback, failedCallback, userContext) {
/// <param name="parentCommentId" type="Number">System.Int32</param>
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="commentBody" type="String">System.String</param>
/// <param name="user" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="webSite" type="String">System.String</param>
/// <param name="captcha" type="String">System.String</param>
/// <param name="rating" type="Number">System.Int32</param>
/// <param name="reciveCommens" type="Boolean">System.Boolean</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(), 'PostComment',false,{parentCommentId:parentCommentId,moduleId:moduleId,itemId:itemId,commentBody:commentBody,user:user,email:email,webSite:webSite,captcha:captcha,rating:rating,reciveCommens:reciveCommens},succeededCallback,failedCallback,userContext); }}
CodingStaff.Modules.Comments.CommentsService.registerClass('CodingStaff.Modules.Comments.CommentsService',Sys.Net.WebServiceProxy);
CodingStaff.Modules.Comments.CommentsService._staticInstance = new CodingStaff.Modules.Comments.CommentsService();
CodingStaff.Modules.Comments.CommentsService.set_path = function(value) {
CodingStaff.Modules.Comments.CommentsService._staticInstance.set_path(value); }
CodingStaff.Modules.Comments.CommentsService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CodingStaff.Modules.Comments.CommentsService._staticInstance.get_path();}
CodingStaff.Modules.Comments.CommentsService.set_timeout = function(value) {
CodingStaff.Modules.Comments.CommentsService._staticInstance.set_timeout(value); }
CodingStaff.Modules.Comments.CommentsService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CodingStaff.Modules.Comments.CommentsService._staticInstance.get_timeout(); }
CodingStaff.Modules.Comments.CommentsService.set_defaultUserContext = function(value) { 
CodingStaff.Modules.Comments.CommentsService._staticInstance.set_defaultUserContext(value); }
CodingStaff.Modules.Comments.CommentsService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CodingStaff.Modules.Comments.CommentsService._staticInstance.get_defaultUserContext(); }
CodingStaff.Modules.Comments.CommentsService.set_defaultSucceededCallback = function(value) { 
 CodingStaff.Modules.Comments.CommentsService._staticInstance.set_defaultSucceededCallback(value); }
CodingStaff.Modules.Comments.CommentsService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CodingStaff.Modules.Comments.CommentsService._staticInstance.get_defaultSucceededCallback(); }
CodingStaff.Modules.Comments.CommentsService.set_defaultFailedCallback = function(value) { 
CodingStaff.Modules.Comments.CommentsService._staticInstance.set_defaultFailedCallback(value); }
CodingStaff.Modules.Comments.CommentsService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CodingStaff.Modules.Comments.CommentsService._staticInstance.get_defaultFailedCallback(); }
CodingStaff.Modules.Comments.CommentsService.set_path("/DesktopModules/CodingStaff.Comments/CommentsService.asmx");
CodingStaff.Modules.Comments.CommentsService.GetCAPTCHAImgUrl= 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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.GetCAPTCHAImgUrl(onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.TestCAPTCHA= function(captcha,onSuccess,onFailed,userContext) {
/// <param name="captcha" type="String">System.String</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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.TestCAPTCHA(captcha,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.TestUniqueUserName= function(nick,onSuccess,onFailed,userContext) {
/// <param name="nick" type="String">System.String</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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.TestUniqueUserName(nick,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.GetGravatarUrl= function(email,onSuccess,onFailed,userContext) {
/// <param name="email" type="String">System.String</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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.GetGravatarUrl(email,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.GetCommentCount= function(moduleId,itemId,rootId,onSuccess,onFailed,userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="rootId" 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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.GetCommentCount(moduleId,itemId,rootId,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.LoadComments= function(moduleId,itemId,rootId,pageS,pageN,newestTop,onSuccess,onFailed,userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="rootId" type="Number">System.Int32</param>
/// <param name="pageS" type="Number">System.Int32</param>
/// <param name="pageN" type="Number">System.Int32</param>
/// <param name="newestTop" type="Boolean">System.Boolean</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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.LoadComments(moduleId,itemId,rootId,pageS,pageN,newestTop,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.GetCommentById= function(moduleId,commentId,onSuccess,onFailed,userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" 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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.GetCommentById(moduleId,commentId,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.UpdateComment= function(moduleId,commentId,content,rating,approved,onSuccess,onFailed,userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" type="Number">System.Int32</param>
/// <param name="content" type="String">System.String</param>
/// <param name="rating" type="Number">System.Int32</param>
/// <param name="approved" type="Boolean">System.Boolean</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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.UpdateComment(moduleId,commentId,content,rating,approved,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.ApproveComment= function(moduleId,commentId,onSuccess,onFailed,userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" 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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.ApproveComment(moduleId,commentId,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.DeleteComment= function(moduleId,commentId,onSuccess,onFailed,userContext) {
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="commentId" 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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.DeleteComment(moduleId,commentId,onSuccess,onFailed,userContext); }
CodingStaff.Modules.Comments.CommentsService.PostComment= function(parentCommentId,moduleId,itemId,commentBody,user,email,webSite,captcha,rating,reciveCommens,onSuccess,onFailed,userContext) {
/// <param name="parentCommentId" type="Number">System.Int32</param>
/// <param name="moduleId" type="Number">System.Int32</param>
/// <param name="itemId" type="Number">System.Int32</param>
/// <param name="commentBody" type="String">System.String</param>
/// <param name="user" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="webSite" type="String">System.String</param>
/// <param name="captcha" type="String">System.String</param>
/// <param name="rating" type="Number">System.Int32</param>
/// <param name="reciveCommens" type="Boolean">System.Boolean</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>
CodingStaff.Modules.Comments.CommentsService._staticInstance.PostComment(parentCommentId,moduleId,itemId,commentBody,user,email,webSite,captcha,rating,reciveCommens,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(CodingStaff.Modules.Comments.CommentEntry) === 'undefined') {
CodingStaff.Modules.Comments.CommentEntry=gtc("CodingStaff.Modules.Comments.CommentEntry");
CodingStaff.Modules.Comments.CommentEntry.registerClass('CodingStaff.Modules.Comments.CommentEntry');
}
if (typeof(CodingStaff.Modules.Comments.ServiceResult) === 'undefined') {
CodingStaff.Modules.Comments.ServiceResult = function() { throw Error.invalidOperation(); }
CodingStaff.Modules.Comments.ServiceResult.prototype = {Success: 0,InvalidSecurity: 1,InvalidInput: 2,InvalidCAPTCHA: 3,ErrorOnCreateUser: 4,DuplicateUserName: 5,DuplicateEmail: 6,UnexpectedError: 7,InvalidEmail: 8,InvalidUserName: 9}
CodingStaff.Modules.Comments.ServiceResult.registerEnum('CodingStaff.Modules.Comments.ServiceResult', true);
}

