if(typeof Btv == "undefined") Btv={};
if(typeof Btv.Discussion == "undefined") Btv.Discussion={};
Btv.Discussion.DataQueries_class = function() {};
ajaxProPrototypes.Object.extend(Btv.Discussion.DataQueries_class.prototype, ajaxProPrototypes.Object.extend(new AjaxPro.AjaxClass(), {
	CreateNewThread: function(forumId, contextTypeID, contextID, title, postBody) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.CreateNewThread.arguments)[5]) || (null);
		return this.invoke(false, v, "POST", "CreateNewThread", {"forumId":forumId, "contextTypeID":contextTypeID, "contextID":contextID, "title":title, "postBody":postBody}, ajaxProPrototypes.Function.argumentsToArray(this.CreateNewThread.arguments).slice(6));
	},
	CreateNewPost: function(threadId, postText) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.CreateNewPost.arguments)[2]) || (null);
		return this.invoke(false, v, "POST", "CreateNewPost", {"threadId":threadId, "postText":postText}, ajaxProPrototypes.Function.argumentsToArray(this.CreateNewPost.arguments).slice(3));
	},
	RemovePost: function(threadId, postId, userId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.RemovePost.arguments)[3]) || (null);
		return this.invoke(false, v, "POST", "RemovePost", {"threadId":threadId, "postId":postId, "userId":userId}, ajaxProPrototypes.Function.argumentsToArray(this.RemovePost.arguments).slice(4));
	},
	GetForumIdByContext: function(contextTypeId, contextId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetForumIdByContext.arguments)[2]) || (null);
		return this.invoke(false, v, "POST", "GetForumIdByContext", {"contextTypeId":contextTypeId, "contextId":contextId}, ajaxProPrototypes.Function.argumentsToArray(this.GetForumIdByContext.arguments).slice(3));
	},
	GetThreadsByContext: function(contextTypeId, contextId, firstIndex, lastIndex) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetThreadsByContext.arguments)[4]) || (null);
		return this.invoke(false, v, "POST", "GetThreadsByContext", {"contextTypeId":contextTypeId, "contextId":contextId, "firstIndex":firstIndex, "lastIndex":lastIndex}, ajaxProPrototypes.Function.argumentsToArray(this.GetThreadsByContext.arguments).slice(5));
	},
	GetStickyThreadsByContext: function(contextTypeId, contextId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetStickyThreadsByContext.arguments)[2]) || (null);
		return this.invoke(false, v, "POST", "GetStickyThreadsByContext", {"contextTypeId":contextTypeId, "contextId":contextId}, ajaxProPrototypes.Function.argumentsToArray(this.GetStickyThreadsByContext.arguments).slice(3));
	},
	MakeThreadSticky: function(threadId, stickyExpiration) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.MakeThreadSticky.arguments)[2]) || (null);
		return this.invoke(false, v, "POST", "MakeThreadSticky", {"threadId":threadId, "stickyExpiration":stickyExpiration}, ajaxProPrototypes.Function.argumentsToArray(this.MakeThreadSticky.arguments).slice(3));
	},
	MakeThreadUnticky: function(threadId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.MakeThreadUnticky.arguments)[1]) || (null);
		return this.invoke(false, v, "POST", "MakeThreadUnticky", {"threadId":threadId}, ajaxProPrototypes.Function.argumentsToArray(this.MakeThreadUnticky.arguments).slice(2));
	},
	SetThreadStickyOrder: function(threadItems) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.SetThreadStickyOrder.arguments)[1]) || (null);
		return this.invoke(false, v, "POST", "SetThreadStickyOrder", {"threadItems":threadItems}, ajaxProPrototypes.Function.argumentsToArray(this.SetThreadStickyOrder.arguments).slice(2));
	},
	GetThreads: function(userId, forumId, viewTypeId, sortTypeId, firstIndex, lastIndex) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetThreads.arguments)[6]) || (null);
		return this.invoke(false, v, "POST", "GetThreads", {"userId":userId, "forumId":forumId, "viewTypeId":viewTypeId, "sortTypeId":sortTypeId, "firstIndex":firstIndex, "lastIndex":lastIndex}, ajaxProPrototypes.Function.argumentsToArray(this.GetThreads.arguments).slice(7));
	},
	GetThreadPosts: function(threadId, firstIndex, lastIndex, userId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetThreadPosts.arguments)[4]) || (null);
		return this.invoke(false, v, "POST", "GetThreadPosts", {"threadId":threadId, "firstIndex":firstIndex, "lastIndex":lastIndex, "userId":userId}, ajaxProPrototypes.Function.argumentsToArray(this.GetThreadPosts.arguments).slice(5));
	},
	GetComments: function(contentTypeId, contentId, firstIndex, lastIndex, userId, selectNewestFirst) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetComments.arguments)[6]) || (null);
		return this.invoke(false, v, "POST", "GetComments", {"contentTypeId":contentTypeId, "contentId":contentId, "firstIndex":firstIndex, "lastIndex":lastIndex, "userId":userId, "selectNewestFirst":selectNewestFirst}, ajaxProPrototypes.Function.argumentsToArray(this.GetComments.arguments).slice(7));
	},
	UserReadThread: function(userId, threadId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.UserReadThread.arguments)[2]) || (null);
		return this.invoke(false, v, "POST", "UserReadThread", {"userId":userId, "threadId":threadId}, ajaxProPrototypes.Function.argumentsToArray(this.UserReadThread.arguments).slice(3));
	},
	GetUserRepliedThreads: function(userId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetUserRepliedThreads.arguments)[1]) || (null);
		return this.invoke(false, v, "POST", "GetUserRepliedThreads", {"userId":userId}, ajaxProPrototypes.Function.argumentsToArray(this.GetUserRepliedThreads.arguments).slice(2));
	},
	GetUserCreatedThreads: function(userId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetUserCreatedThreads.arguments)[1]) || (null);
		return this.invoke(false, v, "POST", "GetUserCreatedThreads", {"userId":userId}, ajaxProPrototypes.Function.argumentsToArray(this.GetUserCreatedThreads.arguments).slice(2));
	},
	GetUserRecentlyViewedThreads: function(contextTypeId, contextId, userId) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetUserRecentlyViewedThreads.arguments)[3]) || (null);
		return this.invoke(false, v, "POST", "GetUserRecentlyViewedThreads", {"contextTypeId":contextTypeId, "contextId":contextId, "userId":userId}, ajaxProPrototypes.Function.argumentsToArray(this.GetUserRecentlyViewedThreads.arguments).slice(4));
	},
	GetActiveMembersToday: function() {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetActiveMembersToday.arguments)[0]) || (null);
		return this.invoke(false, v, "POST", "GetActiveMembersToday", {}, ajaxProPrototypes.Function.argumentsToArray(this.GetActiveMembersToday.arguments).slice(1));
	},
	GetActiveMembersAllTime: function() {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.GetActiveMembersAllTime.arguments)[0]) || (null);
		return this.invoke(false, v, "POST", "GetActiveMembersAllTime", {}, ajaxProPrototypes.Function.argumentsToArray(this.GetActiveMembersAllTime.arguments).slice(1));
	},
	VoteOnPost: function(postId, vote) {
		var v = (ajaxProPrototypes.Function.argumentsToArray(this.VoteOnPost.arguments)[2]) || (null);
		return this.invoke(false, v, "POST", "VoteOnPost", {"postId":postId, "vote":vote}, ajaxProPrototypes.Function.argumentsToArray(this.VoteOnPost.arguments).slice(3));
	},
	url: '/ajaxpro/Btv.Discussion.DataQueries,App_Code.ashx?typeVersion=11.01'
}));
Btv.Discussion.DataQueries = new Btv.Discussion.DataQueries_class();

