RegisterNamespace("PowercatVision");
PowercatVision.PageContentService = function(){};
PowercatVision.PageContentService.HelloWorld = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/HelloWorld", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetPageContents = function(_pageName, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetPageContents", data:'', onComplete: onCompleteHandler}).post({"_pageName":_pageName});
}
PowercatVision.PageContentService.GetPageContentsById = function(_pageId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetPageContentsById", data:'', onComplete: onCompleteHandler}).post({"_pageId":_pageId});
}
PowercatVision.PageContentService.GetRelatedLinks = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetRelatedLinks", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetPageNames = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetPageNames", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.UpdatePageContent = function(_pageId, _content, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/UpdatePageContent", data:'', onComplete: onCompleteHandler}).post({"_pageId":_pageId, "_content":_content});
}
PowercatVision.PageContentService.GetLinks = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetLinks", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetLinksByType = function(typeId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetLinksByType", data:'', onComplete: onCompleteHandler}).post({"typeId":typeId});
}
PowercatVision.PageContentService.GetNewsItems = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetNewsItems", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetNewsItemsTitles = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetNewsItemsTitles", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetNewsItemById = function(id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetNewsItemById", data:'', onComplete: onCompleteHandler}).post({"id":id});
}
PowercatVision.PageContentService.GetNewsItemContentById = function(id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetNewsItemContentById", data:'', onComplete: onCompleteHandler}).post({"id":id});
}
PowercatVision.PageContentService.GetActiveOutlook = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetActiveOutlook", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetOutlooks = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetOutlooks", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetOutlookById = function(id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetOutlookById", data:'', onComplete: onCompleteHandler}).post({"id":id});
}
PowercatVision.PageContentService.GetCableNetworks = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetCableNetworks", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetCityCableNetworksByCityId = function(cityId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetCityCableNetworksByCityId", data:'', onComplete: onCompleteHandler}).post({"cityId":cityId});
}
PowercatVision.PageContentService.GetWeeklyChannelGuides = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetWeeklyChannelGuides", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetWeeklyChannelGuidesByTypeId = function(id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetWeeklyChannelGuidesByTypeId", data:'', onComplete: onCompleteHandler}).post({"id":id});
}
PowercatVision.PageContentService.GetActiveWeeklyChannelGuide = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetActiveWeeklyChannelGuide", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetActiveWeeklyChannelGuideByType = function(_id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetActiveWeeklyChannelGuideByType", data:'', onComplete: onCompleteHandler}).post({"_id":_id});
}
PowercatVision.PageContentService.GetActiveWeeklyChannelGuideChannels = function(_weeklyChannelGuideId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetActiveWeeklyChannelGuideChannels", data:'', onComplete: onCompleteHandler}).post({"_weeklyChannelGuideId":_weeklyChannelGuideId});
}
PowercatVision.PageContentService.GetActiveChannelGuideCities = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetActiveChannelGuideCities", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetActiveWeeklyChannelGuideChannelsByCityId = function(cityId, _typeId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetActiveWeeklyChannelGuideChannelsByCityId", data:'', onComplete: onCompleteHandler}).post({"cityId":cityId, "_typeId":_typeId});
}
PowercatVision.PageContentService.GetWeeklyChannelGuideChannelsByCityId = function(cityId, weeklyChannelGuideId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetWeeklyChannelGuideChannelsByCityId", data:'', onComplete: onCompleteHandler}).post({"cityId":cityId, "weeklyChannelGuideId":weeklyChannelGuideId});
}
PowercatVision.PageContentService.GetWeeklyChannelGuideChannel = function(cityCableNetworkId, weeklyChannelGuideId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetWeeklyChannelGuideChannel", data:'', onComplete: onCompleteHandler}).post({"cityCableNetworkId":cityCableNetworkId, "weeklyChannelGuideId":weeklyChannelGuideId});
}
PowercatVision.PageContentService.GetChannelGuideTypes = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetChannelGuideTypes", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.GetGameShowings = function(onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/GetGameShowings", data:'', onComplete: onCompleteHandler}).post();
}
PowercatVision.PageContentService.InsertOutlook = function(zip, active, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertOutlook", data:'', onComplete: onCompleteHandler}).post({"zip":zip, "active":active});
}
PowercatVision.PageContentService.InsertOutlookLink = function(outlookId, name, path, linkTypeId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertOutlookLink", data:'', onComplete: onCompleteHandler}).post({"outlookId":outlookId, "name":name, "path":path, "linkTypeId":linkTypeId});
}
PowercatVision.PageContentService.InsertRelatedLink = function(typeId, title, linkUrl, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertRelatedLink", data:'', onComplete: onCompleteHandler}).post({"typeId":typeId, "title":title, "linkUrl":linkUrl});
}
PowercatVision.PageContentService.InsertWeeklyChannelGuide = function(type, name, active, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertWeeklyChannelGuide", data:'', onComplete: onCompleteHandler}).post({"type":type, "name":name, "active":active});
}
PowercatVision.PageContentService.InsertWeeklyChannel = function(channelGuideId, cableNetworkId, channel, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertWeeklyChannel", data:'', onComplete: onCompleteHandler}).post({"channelGuideId":channelGuideId, "cableNetworkId":cableNetworkId, "channel":channel});
}
PowercatVision.PageContentService.UpdateWeeklyChannel = function(channelId, channelGuideId, cableNetworkId, channel, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/UpdateWeeklyChannel", data:'', onComplete: onCompleteHandler}).post({"channelId":channelId, "channelGuideId":channelGuideId, "cableNetworkId":cableNetworkId, "channel":channel});
}
PowercatVision.PageContentService.InsertCableNetwork = function(name, description, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertCableNetwork", data:'', onComplete: onCompleteHandler}).post({"name":name, "description":description});
}
PowercatVision.PageContentService.InsertCityCableNetwork = function(cityId, cableNetworkId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertCityCableNetwork", data:'', onComplete: onCompleteHandler}).post({"cityId":cityId, "cableNetworkId":cableNetworkId});
}
PowercatVision.PageContentService.InsertNewsItem = function(title, synopsis, content, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertNewsItem", data:'', onComplete: onCompleteHandler}).post({"title":title, "synopsis":synopsis, "content":content});
}
PowercatVision.PageContentService.InsertGameShowing = function(gameName, gameDate, gameStartTime, gameActive, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertGameShowing", data:'', onComplete: onCompleteHandler}).post({"gameName":gameName, "gameDate":gameDate, "gameStartTime":gameStartTime, "gameActive":gameActive});
}
PowercatVision.PageContentService.InsertLocationShowing = function(gameShowingId, locationId, showing, sound, ask, watchparty, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/InsertLocationShowing", data:'', onComplete: onCompleteHandler}).post({"gameShowingId":gameShowingId, "locationId":locationId, "showing":showing, "sound":sound, "ask":ask, "watchparty":watchparty});
}
PowercatVision.PageContentService.ExportGameShowing = function(gameName, gameDate, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/ExportGameShowing", data:'', onComplete: onCompleteHandler}).post({"gameName":gameName, "gameDate":gameDate});
}
PowercatVision.PageContentService.UpdateNewsItem = function(title, synopsis, content, id, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/UpdateNewsItem", data:'', onComplete: onCompleteHandler}).post({"title":title, "synopsis":synopsis, "content":content, "id":id});
}
PowercatVision.PageContentService.CopyChannelGuide = function(newChannelGuideName, channelGuideTypeId, channelGuideId, onCompleteHandler){
var jsonRequest = new Request.JSON({url: "/PowercatVision/PageContentService.asmx/CopyChannelGuide", data:'', onComplete: onCompleteHandler}).post({"newChannelGuideName":newChannelGuideName, "channelGuideTypeId":channelGuideTypeId, "channelGuideId":channelGuideId});
}
