if(typeof TwentyFour == "undefined") TwentyFour={};
if(typeof TwentyFour.Classifieds == "undefined") TwentyFour.Classifieds={};
if(typeof TwentyFour.Classifieds.Web == "undefined") TwentyFour.Classifieds.Web={};
if(typeof TwentyFour.Classifieds.Web.Ajax == "undefined") TwentyFour.Classifieds.Web.Ajax={};
TwentyFour.Classifieds.Web.Ajax_class = function() {};
Object.extend(TwentyFour.Classifieds.Web.Ajax_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	IsAdExpiringSoon: function(Id, days) {
		return this.invoke("IsAdExpiringSoon", {"Id":Id, "days":days}, this.IsAdExpiringSoon.getArguments().slice(2));
	},
	ApproveAd: function(adId) {
		return this.invoke("ApproveAd", {"adId":adId}, this.ApproveAd.getArguments().slice(1));
	},
	UpdateAdSoldTag: function(adId, isSold) {
		return this.invoke("UpdateAdSoldTag", {"adId":adId, "isSold":isSold}, this.UpdateAdSoldTag.getArguments().slice(2));
	},
	GetAllCategories: function() {
		return this.invoke("GetAllCategories", {}, this.GetAllCategories.getArguments().slice(0));
	},
	GetAllProvinces: function() {
		return this.invoke("GetAllProvinces", {}, this.GetAllProvinces.getArguments().slice(0));
	},
	GetLatestFeaturedAds: function(adCount) {
		return this.invoke("GetLatestFeaturedAds", {"adCount":adCount}, this.GetLatestFeaturedAds.getArguments().slice(1));
	},
	GetCategoryFeaturedAds: function(catid) {
		return this.invoke("GetCategoryFeaturedAds", {"catid":catid}, this.GetCategoryFeaturedAds.getArguments().slice(1));
	},
	GetCategoryFakeAds: function(categoryId) {
		return this.invoke("GetCategoryFakeAds", {"categoryId":categoryId}, this.GetCategoryFakeAds.getArguments().slice(1));
	},
	GetAllModelsByMake: function(makeId) {
		return this.invoke("GetAllModelsByMake", {"makeId":makeId}, this.GetAllModelsByMake.getArguments().slice(1));
	},
	GetAllCitiesByProvince: function(provinceId) {
		return this.invoke("GetAllCitiesByProvince", {"provinceId":provinceId}, this.GetAllCitiesByProvince.getArguments().slice(1));
	},
	EmailAdvert: function(adId, fromEmail, fromName, toEmail, toName, comments) {
		return this.invoke("EmailAdvert", {"adId":adId, "fromEmail":fromEmail, "fromName":fromName, "toEmail":toEmail, "toName":toName, "comments":comments}, this.EmailAdvert.getArguments().slice(6));
	},
	ContactSeller: function(adId, fromEmail, fromName, comments, contactNumber) {
		return this.invoke("ContactSeller", {"adId":adId, "fromEmail":fromEmail, "fromName":fromName, "comments":comments, "contactNumber":contactNumber}, this.ContactSeller.getArguments().slice(5));
	},
	ReplyToBuyer: function(id, comments) {
		return this.invoke("ReplyToBuyer", {"id":id, "comments":comments}, this.ReplyToBuyer.getArguments().slice(2));
	},
	DeletePrivateMessage: function(id) {
		return this.invoke("DeletePrivateMessage", {"id":id}, this.DeletePrivateMessage.getArguments().slice(1));
	},
	GetPrivateMessageBody: function(id, markAsRead) {
		return this.invoke("GetPrivateMessageBody", {"id":id, "markAsRead":markAsRead}, this.GetPrivateMessageBody.getArguments().slice(2));
	},
	GetPrivateMessageInbox: function(index, pageSize) {
		return this.invoke("GetPrivateMessageInbox", {"index":index, "pageSize":pageSize}, this.GetPrivateMessageInbox.getArguments().slice(2));
	},
	BookmarkAdvert: function(adId) {
		return this.invoke("BookmarkAdvert", {"adId":adId}, this.BookmarkAdvert.getArguments().slice(1));
	},
	GetBookmarkedAdsByUser: function(pageSize, pageNo) {
		return this.invoke("GetBookmarkedAdsByUser", {"pageSize":pageSize, "pageNo":pageNo}, this.GetBookmarkedAdsByUser.getArguments().slice(2));
	},
	GetAdAlertsByUser: function(pageSize, pageNo) {
		return this.invoke("GetAdAlertsByUser", {"pageSize":pageSize, "pageNo":pageNo}, this.GetAdAlertsByUser.getArguments().slice(2));
	},
	CreateAdAlert: function(categoryId, classificationId, keywords, filterCategory) {
		return this.invoke("CreateAdAlert", {"categoryId":categoryId, "classificationId":classificationId, "keywords":keywords, "filterCategory":filterCategory}, this.CreateAdAlert.getArguments().slice(4));
	},
	DeleteAdAlert: function(adAlertId) {
		return this.invoke("DeleteAdAlert", {"adAlertId":adAlertId}, this.DeleteAdAlert.getArguments().slice(1));
	},
	DeleteAllAdAlerts: function() {
		return this.invoke("DeleteAllAdAlerts", {}, this.DeleteAllAdAlerts.getArguments().slice(0));
	},
	IncrementAdReplyCount: function(adId) {
		return this.invoke("IncrementAdReplyCount", {"adId":adId}, this.IncrementAdReplyCount.getArguments().slice(1));
	},
	IncrementAdViewCount: function(adId) {
		return this.invoke("IncrementAdViewCount", {"adId":adId}, this.IncrementAdViewCount.getArguments().slice(1));
	},
	IncrementAdForwardCount: function(adId) {
		return this.invoke("IncrementAdForwardCount", {"adId":adId}, this.IncrementAdForwardCount.getArguments().slice(1));
	},
	UpdateLocationFilter: function(locationFilter) {
		return this.invoke("UpdateLocationFilter", {"locationFilter":locationFilter}, this.UpdateLocationFilter.getArguments().slice(1));
	},
	DeleteAd: function(advertId) {
		return this.invoke("DeleteAd", {"advertId":advertId}, this.DeleteAd.getArguments().slice(1));
	},
	RecoverAd: function(advertId) {
		return this.invoke("RecoverAd", {"advertId":advertId}, this.RecoverAd.getArguments().slice(1));
	},
	DeleteAds: function(advertIds) {
		return this.invoke("DeleteAds", {"advertIds":advertIds}, this.DeleteAds.getArguments().slice(1));
	},
	DeleteAdBookmark: function(advertId) {
		return this.invoke("DeleteAdBookmark", {"advertId":advertId}, this.DeleteAdBookmark.getArguments().slice(1));
	},
	GetClassificationsByCategory: function(categoryId) {
		return this.invoke("GetClassificationsByCategory", {"categoryId":categoryId}, this.GetClassificationsByCategory.getArguments().slice(1));
	},
	RenewAd: function(advertId, durationCode) {
		return this.invoke("RenewAd", {"advertId":advertId, "durationCode":durationCode}, this.RenewAd.getArguments().slice(2));
	},
	url: '/ajaxpro/TwentyFour.Classifieds.Web.Ajax,App_Code.ashx'
}));
TwentyFour.Classifieds.Web.Ajax = new TwentyFour.Classifieds.Web.Ajax_class();

