addNamespace("RMT.Commons");
RMT.Commons.Posts_class = Class.create();
RMT.Commons.Posts_class.prototype = (new AjaxPro.Request()).extend({
	setTop: function(postid, type, callback) {
		return this.invoke("setTop", {"postid":postid, "type":type}, callback);
	},
	insertPost: function(title, sort, repost, reporttype, content, color, email, host, user, face, callback) {
		return this.invoke("insertPost", {"title":title, "sort":sort, "repost":repost, "reporttype":reporttype, "content":content, "color":color, "email":email, "host":host, "user":user, "face":face}, callback);
	},
	deletePost: function(id, callback) {
		return this.invoke("deletePost", {"id":id}, callback);
	},
	getPostFile: function(folder, postid, callback) {
		return this.invoke("getPostFile", {"folder":folder, "postid":postid}, callback);
	},
	getPostInfo: function(postid, callback) {
		return this.invoke("getPostInfo", {"postid":postid}, callback);
	},
	getSortInfo: function(sortid, pageindex, callback) {
		return this.invoke("getSortInfo", {"sortid":sortid, "pageindex":pageindex}, callback);
	},
	initialize: function() {
		this.url = "/ajaxpro/RMT.Commons.Posts,RMTLib.ashx";
	}
})
RMT.Commons.Posts = new RMT.Commons.Posts_class();

