if(typeof MauiMagazine == "undefined") MauiMagazine={};
if(typeof MauiMagazine.Data == "undefined") MauiMagazine.Data={};
MauiMagazine.Data.CommentObject_class = function() {};
Object.extend(MauiMagazine.Data.CommentObject_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	SelectItemByStory: function(story_id) {
		return this.invoke("SelectItemByStory", {"story_id":story_id}, this.SelectItemByStory.getArguments().slice(1));
	},
	SelectItemByRestaurant: function(restaurant_id) {
		return this.invoke("SelectItemByRestaurant", {"restaurant_id":restaurant_id}, this.SelectItemByRestaurant.getArguments().slice(1));
	},
	SelectItemById: function(comment_id) {
		return this.invoke("SelectItemById", {"comment_id":comment_id}, this.SelectItemById.getArguments().slice(1));
	},
	DeleteById: function(comment_id) {
		return this.invoke("DeleteById", {"comment_id":comment_id}, this.DeleteById.getArguments().slice(1));
	},
	DeactivateById: function(comment_id) {
		return this.invoke("DeactivateById", {"comment_id":comment_id}, this.DeactivateById.getArguments().slice(1));
	},
	IsAdmin: function() {
		return this.invoke("IsAdmin", {}, this.IsAdmin.getArguments().slice(0));
	},
	SendReport: function(comment_id, text) {
		return this.invoke("SendReport", {"comment_id":comment_id, "text":text}, this.SendReport.getArguments().slice(2));
	},
	url: '/ajaxpro/MauiMagazine.Data.CommentObject,MauiMagazine.ashx'
}));
MauiMagazine.Data.CommentObject = new MauiMagazine.Data.CommentObject_class();

