mythtv-services-api
Version:
Mythtv Service Api Bindings
46 lines • 1.97 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.GuideService = void 0;
const CommonTypes_1 = require("./CommonTypes");
const Communication_1 = require("./Communication");
var GuideService;
(function (GuideService) {
class Service extends Communication_1.AbstractService {
constructor(baseUrl) {
super(baseUrl, 'Guide');
}
async AddToChannelGroup(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'AddToChannelGroup', req);
}
async GetCategoryList() {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetCategoryList');
}
async GetChannelGroupList(req) {
const value = await this.serviceProvider.get('GetChannelGroupList', req);
return value.ChannelGroupList.ChannelGroups;
}
async GetChannelIcon(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'GetChannelIcon', req);
}
async GetProgramDetails(req) {
const value = await this.serviceProvider.get('GetProgramDetails', req);
return value.Program;
}
async GetProgramGuide(req) {
const value = await this.serviceProvider.get('GetProgramGuide', req);
return value.ProgramGuide;
}
async GetProgramList(req) {
const value = await this.serviceProvider.get('GetProgramList', req);
return value.ProgramList;
}
async GetStoredSearches(req) {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetStoredSearches', req);
}
async RemoveFromChannelGroup(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'RemoveFromChannelGroup', req);
}
}
GuideService.Service = Service;
})(GuideService = exports.GuideService || (exports.GuideService = {}));
//# sourceMappingURL=GuideService.js.map
;