RegisterNamespace("PowercatVision");
PowercatVision.EventsService = function(){};
PowercatVision.EventsService.GetWatchParties = function(startIndex, pageSize, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetWatchParties", data:'', onComplete: onCompleteHandler}).post({"startIndex":startIndex, "pageSize":pageSize});
}
PowercatVision.EventsService.GetAllWatchParties = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetAllWatchParties", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.EventsService.GetWatchPartiesByLocation = function(locationId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetWatchPartiesByLocation", data:'', onComplete: onCompleteHandler}).post({"locationId":locationId});
}
PowercatVision.EventsService.GetWatchPartiesByTypeId = function(watchPartyType, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetWatchPartiesByTypeId", data:'', onComplete: onCompleteHandler}).post({"watchPartyType":watchPartyType});
}
PowercatVision.EventsService.GetRecentWatchParties = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetRecentWatchParties", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.EventsService.GetEventTypes = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetEventTypes", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.EventsService.GetCatbackerChapters = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetCatbackerChapters", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.EventsService.GetCatbackerEvents = function(chapterId, fromDate, toDate, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetCatbackerEvents", data:'', onComplete: onCompleteHandler}).post({"chapterId":chapterId, "fromDate":fromDate, "toDate":toDate});
}
PowercatVision.EventsService.GetEventById = function(_id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetEventById", data:'', onComplete: onCompleteHandler}).post({"_id":_id});
}
PowercatVision.EventsService.InsertWatchParty = function(eventTypeId, locationId, chapterId, eventDate, startTime, endTime, details, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/InsertWatchParty", data:'', onComplete: onCompleteHandler}).post({"eventTypeId":eventTypeId, "locationId":locationId, "chapterId":chapterId, "eventDate":eventDate, "startTime":startTime, "endTime":endTime, "details":details});
}
PowercatVision.EventsService.UpdateEvent = function(eventId, eventTypeId, locationId, chapterId, eventDate, startTime, endTime, details, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/UpdateEvent", data:'', onComplete: onCompleteHandler}).post({"eventId":eventId, "eventTypeId":eventTypeId, "locationId":locationId, "chapterId":chapterId, "eventDate":eventDate, "startTime":startTime, "endTime":endTime, "details":details});
}
PowercatVision.EventsService.ShareEvent = function(watchPartyId, distributoremail, emailList, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/ShareEvent", data:'', onComplete: onCompleteHandler}).post({"watchPartyId":watchPartyId, "distributoremail":distributoremail, "emailList":emailList});
}
PowercatVision.EventsService.GetPurplewaveTrips = function(_url, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/EventsService.asmx/GetPurplewaveTrips", data:'', onComplete: onCompleteHandler}).post({"_url":_url});
}
