UNPKG

mythtv-services-api

Version:
67 lines 2.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChannelService = void 0; const CommonTypes_1 = require("./CommonTypes"); const Communication_1 = require("./Communication"); var ChannelService; (function (ChannelService) { class Service extends Communication_1.AbstractService { constructor(baseUrl) { super(baseUrl, 'Channel'); } async GetChannelInfo(req) { const value = await this.serviceProvider.get('GetChannelInfo', req); return value.ChannelInfo; } async GetVideoSourceList() { const value = await this.serviceProvider.get('GetVideoSourceList'); return value.VideoSourceList; } async GetChannelInfoList(req) { const value = await this.serviceProvider.get('GetChannelInfoList', req); return value.ChannelInfoList; } async AddDBChannel(req) { return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'AddDBChannel', req); } async AddVideoSource(req) { return (0, CommonTypes_1.IntPost)(this.serviceProvider, 'AddVideoSource', req); } async FetchChannelsFromSource(req) { return (0, CommonTypes_1.IntGet)(this.serviceProvider, 'FetchChannelsFromSource', req); } async GetDDLineupList(req) { const value = await this.serviceProvider.get('GetDDLineupList', req); return value.LineupList.Lineups; } async GetVideoMultiplex(req) { const value = await this.serviceProvider.get('GetVideoMultiplex', req); return value.VideoMultiplex; } async GetVideoMultiplexList(req) { const value = await this.serviceProvider.get('GetVideoMultiplexList', req); return value.VideoMultiplexList; } async GetVideoSource(req) { const value = await this.serviceProvider.get('GetVideoSource', req); return value.VideoSource; } async GetXMLTVIdList(req) { return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetXMLTVIdList', req); } async RemoveDBChannel(req) { return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'RemoveDBChannel', req); } async RemoveVideoSource(req) { return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'RemoveVideoSource', req); } async UpdateDBChannel(req) { return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'UpdateDBChannel', req); } async UpdateVideoSource(req) { return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'UpdateVideoSource', req); } } ChannelService.Service = Service; })(ChannelService = exports.ChannelService || (exports.ChannelService = {})); //# sourceMappingURL=ChannelService.js.map