if(typeof MapShake == "undefined") MapShake={};
if(typeof MapShake.Web == "undefined") MapShake.Web={};
if(typeof MapShake.Web.Ajax == "undefined") MapShake.Web.Ajax={};
MapShake.Web.Ajax.Discussion_class = function() {};
Object.extend(MapShake.Web.Ajax.Discussion_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	SubmitPost: function(from, subject, body, discussionId, mapId, replyOnPostId) {
		return this.invoke("SubmitPost", {"from":from, "subject":subject, "body":body, "discussionId":discussionId, "mapId":mapId, "replyOnPostId":replyOnPostId}, this.SubmitPost.getArguments().slice(6));
	},
	MarkPostAsSpam: function(postId) {
		return this.invoke("MarkPostAsSpam", {"postId":postId}, this.MarkPostAsSpam.getArguments().slice(1));
	},
	SubmitPostVote: function(isQuality, postId) {
		return this.invoke("SubmitPostVote", {"isQuality":isQuality, "postId":postId}, this.SubmitPostVote.getArguments().slice(2));
	},
	url: '/ajaxpro/MapShake.Web.Ajax.Discussion,MapShake.Facades.ashx'
}));
MapShake.Web.Ajax.Discussion = new MapShake.Web.Ajax.Discussion_class();

