RegisterNamespace("KupOfJoe");
KupOfJoe.EventsService = function(){};
KupOfJoe.EventsService.HelloWorld = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/HelloWorld", data:'', onComplete: onCompleteHandler}).post();
}
KupOfJoe.EventsService.GetEvents = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/GetEvents", data:'', onComplete: onCompleteHandler}).post();
}
KupOfJoe.EventsService.GetPagedEvents = function(_pageStart, _pageSize, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/GetPagedEvents", data:'', onComplete: onCompleteHandler}).post({"_pageStart":_pageStart, "_pageSize":_pageSize});
}
KupOfJoe.EventsService.GetEventTypes = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/GetEventTypes", data:'', onComplete: onCompleteHandler}).post();
}
KupOfJoe.EventsService.GetEventById = function(_eventId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/GetEventById", data:'', onComplete: onCompleteHandler}).post({"_eventId":_eventId});
}
KupOfJoe.EventsService.GetEventsByListingsId = function(_listingId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/GetEventsByListingsId", data:'', onComplete: onCompleteHandler}).post({"_listingId":_listingId});
}
KupOfJoe.EventsService.GetUpcomingEvents = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/GetUpcomingEvents", data:'', onComplete: onCompleteHandler}).post();
}
KupOfJoe.EventsService.InsertEvent = function(_eventTypeId, _listingId, _eventDate, _startTime, _endTime, _synopsis, _description, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/EventsService.asmx/InsertEvent", data:'', onComplete: onCompleteHandler}).post({"_eventTypeId":_eventTypeId, "_listingId":_listingId, "_eventDate":_eventDate, "_startTime":_startTime, "_endTime":_endTime, "_synopsis":_synopsis, "_description":_description});
}
