var AjaxWebService=function() {
AjaxWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AjaxWebService.prototype={
AddVote:function(table,key,id,userId,against,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'AddVote',false,{table:table,key:key,id:id,userId:userId,against:against},succeededCallback,failedCallback,userContext); },
AddComment:function(c_table,key,id,text,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'AddComment',false,{c_table:c_table,key:key,id:id,text:text,userId:userId},succeededCallback,failedCallback,userContext); },
VoteForSeker:function(type,optionId,sekerId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'VoteForSeker',false,{type:type,optionId:optionId,sekerId:sekerId},succeededCallback,failedCallback,userContext); },
VoteForBlogSeker:function(blogId,optionId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'VoteForBlogSeker',false,{blogId:blogId,optionId:optionId},succeededCallback,failedCallback,userContext); },
PostTextById:function(postId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'PostTextById',false,{postId:postId},succeededCallback,failedCallback,userContext); },
CommentTextById:function(table,key,teamId,commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'CommentTextById',false,{table:table,key:key,teamId:teamId,commentId:commentId},succeededCallback,failedCallback,userContext); },
AddPost:function(postTitle,postText,userId,threadId,forumId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'AddPost',false,{postTitle:postTitle,postText:postText,userId:userId,threadId:threadId,forumId:forumId},succeededCallback,failedCallback,userContext); },
EditPost:function(postId,postText,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'EditPost',false,{postId:postId,postText:postText,userId:userId},succeededCallback,failedCallback,userContext); },
EditPostTitle:function(postId,postTitle,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'EditPostTitle',false,{postId:postId,postTitle:postTitle,userId:userId},succeededCallback,failedCallback,userContext); },
DeletePost:function(postId,forumId,userId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'DeletePost',false,{postId:postId,forumId:forumId,userId:userId},succeededCallback,failedCallback,userContext); },
GetUpdateOfBlog:function(blogId,updateId,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'GetUpdateOfBlog',false,{blogId:blogId,updateId:updateId},succeededCallback,failedCallback,userContext); },
PreviewText:function(text,popupImages,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'PreviewText',false,{text:text,popupImages:popupImages},succeededCallback,failedCallback,userContext); },
GetAllBlogs:function(game,order,page,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'GetAllBlogs',false,{game:game,order:order,page:page},succeededCallback,failedCallback,userContext); },
GetAllBlogsCount:function(game,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'GetAllBlogsCount',false,{game:game},succeededCallback,failedCallback,userContext); },
GetAllPlayers:function(game,category,position,order,userId,onlyInShortlist,page,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'GetAllPlayers',false,{game:game,category:category,position:position,order:order,userId:userId,onlyInShortlist:onlyInShortlist,page:page},succeededCallback,failedCallback,userContext); },
GetAllPlayersCount:function(game,category,position,userId,onlyInShortlist,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'GetAllPlayersCount',false,{game:game,category:category,position:position,userId:userId,onlyInShortlist:onlyInShortlist},succeededCallback,failedCallback,userContext); },
CheckExistRequest:function(dbId,dbName,succeededCallback, failedCallback, userContext) {
return this._invoke(AjaxWebService.get_path(), 'CheckExistRequest',false,{dbId:dbId,dbName:dbName},succeededCallback,failedCallback,userContext); }}
AjaxWebService.registerClass('AjaxWebService',Sys.Net.WebServiceProxy);
AjaxWebService._staticInstance = new AjaxWebService();
AjaxWebService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; AjaxWebService._staticInstance._path = value; }
AjaxWebService.get_path = function() { return AjaxWebService._staticInstance._path; }
AjaxWebService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
AjaxWebService._staticInstance._timeout = value; }
AjaxWebService.get_timeout = function() { 
return AjaxWebService._staticInstance._timeout; }
AjaxWebService.set_defaultUserContext = function(value) { 
AjaxWebService._staticInstance._userContext = value; }
AjaxWebService.get_defaultUserContext = function() { 
return AjaxWebService._staticInstance._userContext; }
AjaxWebService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; AjaxWebService._staticInstance._succeeded = value; }
AjaxWebService.get_defaultSucceededCallback = function() { 
return AjaxWebService._staticInstance._succeeded; }
AjaxWebService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; AjaxWebService._staticInstance._failed = value; }
AjaxWebService.get_defaultFailedCallback = function() { 
return AjaxWebService._staticInstance._failed; }
AjaxWebService.set_path("/AjaxWebService.asmx");
AjaxWebService.AddVote= function(table,key,id,userId,against,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.AddVote(table,key,id,userId,against,onSuccess,onFailed,userContext); }
AjaxWebService.AddComment= function(c_table,key,id,text,userId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.AddComment(c_table,key,id,text,userId,onSuccess,onFailed,userContext); }
AjaxWebService.VoteForSeker= function(type,optionId,sekerId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.VoteForSeker(type,optionId,sekerId,onSuccess,onFailed,userContext); }
AjaxWebService.VoteForBlogSeker= function(blogId,optionId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.VoteForBlogSeker(blogId,optionId,onSuccess,onFailed,userContext); }
AjaxWebService.PostTextById= function(postId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.PostTextById(postId,onSuccess,onFailed,userContext); }
AjaxWebService.CommentTextById= function(table,key,teamId,commentId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.CommentTextById(table,key,teamId,commentId,onSuccess,onFailed,userContext); }
AjaxWebService.AddPost= function(postTitle,postText,userId,threadId,forumId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.AddPost(postTitle,postText,userId,threadId,forumId,onSuccess,onFailed,userContext); }
AjaxWebService.EditPost= function(postId,postText,userId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.EditPost(postId,postText,userId,onSuccess,onFailed,userContext); }
AjaxWebService.EditPostTitle= function(postId,postTitle,userId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.EditPostTitle(postId,postTitle,userId,onSuccess,onFailed,userContext); }
AjaxWebService.DeletePost= function(postId,forumId,userId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.DeletePost(postId,forumId,userId,onSuccess,onFailed,userContext); }
AjaxWebService.GetUpdateOfBlog= function(blogId,updateId,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.GetUpdateOfBlog(blogId,updateId,onSuccess,onFailed,userContext); }
AjaxWebService.PreviewText= function(text,popupImages,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.PreviewText(text,popupImages,onSuccess,onFailed,userContext); }
AjaxWebService.GetAllBlogs= function(game,order,page,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.GetAllBlogs(game,order,page,onSuccess,onFailed,userContext); }
AjaxWebService.GetAllBlogsCount= function(game,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.GetAllBlogsCount(game,onSuccess,onFailed,userContext); }
AjaxWebService.GetAllPlayers= function(game,category,position,order,userId,onlyInShortlist,page,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.GetAllPlayers(game,category,position,order,userId,onlyInShortlist,page,onSuccess,onFailed,userContext); }
AjaxWebService.GetAllPlayersCount= function(game,category,position,userId,onlyInShortlist,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.GetAllPlayersCount(game,category,position,userId,onlyInShortlist,onSuccess,onFailed,userContext); }
AjaxWebService.CheckExistRequest= function(dbId,dbName,onSuccess,onFailed,userContext) {AjaxWebService._staticInstance.CheckExistRequest(dbId,dbName,onSuccess,onFailed,userContext); }
