mythtv-services-api
Version:
Mythtv Service Api Bindings
165 lines • 7.42 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DvrService = void 0;
const CommonTypes_1 = require("./CommonTypes");
const Communication_1 = require("./Communication");
var DvrService;
(function (DvrService) {
class Service extends Communication_1.AbstractService {
constructor(baseUrl) {
super(baseUrl, 'Dvr');
}
async GetEncoderList() {
const ret = await this.serviceProvider.get('GetEncoderList');
return ret.EncoderList.Encoders;
}
async GetRecordedList(req) {
const ret = await this.serviceProvider.get('GetRecordedList', req);
return ret.ProgramList;
}
async GetUpcomingList(req) {
const ret = await this.serviceProvider.get('GetUpcomingList', req);
return ret.ProgramList;
}
async AddDontRecordSchedule(req) {
return (0, CommonTypes_1.BoolGet)(this.serviceProvider, 'AddDontRecordSchedule', req);
}
async AddRecordSchedule(req) {
return (0, CommonTypes_1.IntPost)(this.serviceProvider, 'AddRecordSchedule', req);
}
async DeleteRecording(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'DeleteRecording', req);
}
async DisableRecordSchedule(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'DisableRecordSchedule', req);
}
async DupInToDescription(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'DupInToDescription', req);
}
async DupInToString(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'DupInToString', req);
}
async DupMethodToDescription(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'DupMethodToDescription', req);
}
async DupMethodToString(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'DupMethodToString', req);
}
async EnableRecordSchedule(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'EnableRecordSchedule', req);
}
async GetConflictList(req) {
const ret = await this.serviceProvider.get('GetConflictList', req);
return ret.ProgramList;
}
async GetExpiringList(req) {
const ret = await this.serviceProvider.get('GetExpiringList', req);
return ret.ProgramList;
}
async GetInputList() {
const ret = await this.serviceProvider.get('GetInputList');
return ret.InputList.Inputs;
}
async GetOldRecordedList(req) {
const ret = await this.serviceProvider.get('GetOldRecordedList', req);
return ret.ProgramList;
}
async GetPlayGroupList() {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetPlayGroupList');
}
async GetRecGroupList() {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetRecGroupList');
}
async GetRecRuleFilterList() {
const ret = await this.serviceProvider.get('GetRecRuleFilterList');
return ret.RecRuleFilterList;
}
async GetRecStorageGroupList() {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetRecStorageGroupList');
}
async GetRecordSchedule(req) {
const ret = await this.serviceProvider.get('GetRecordSchedule', req);
return ret.RecRule;
}
async GetRecordScheduleList(req) {
const ret = await this.serviceProvider.get('GetRecordScheduleList', req);
return ret.RecRuleList;
}
async GetRecorded(req) {
const ret = await this.serviceProvider.get('GetRecorded', req);
return ret.Program;
}
async GetRecordedCommBreak(req) {
const ret = await this.serviceProvider.get('GetRecordedCommBreak', req);
return ret.CutList.Cuttings;
}
async GetRecordedCutList(req) {
const ret = await this.serviceProvider.get('GetRecordedCutList', req);
return ret.CutList.Cuttings;
}
async GetRecordedSeek(req) {
const ret = await this.serviceProvider.get('GetRecordedSeek', req);
return ret.CutList.Cuttings;
}
async GetSavedBookmark(req) {
return (0, CommonTypes_1.LongGet)(this.serviceProvider, 'GetSavedBookmark', req);
}
async GetTitleInfoList() {
const ret = await this.serviceProvider.get('GetTitleInfoList');
return ret.TitleInfoList.TitleInfos;
}
async GetTitleList(req) {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetTitleList', req);
}
async ReactivateRecording(req) {
return (0, CommonTypes_1.BoolGet)(this.serviceProvider, 'ReactivateRecording', req);
}
async RecStatusToDescription(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'RecStatusToDescription', req);
}
async RecStatusToString(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'RecStatusToString', req);
}
async RecTypeToDescription(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'RecTypeToDescription', req);
}
async RecTypeToString(req) {
return (0, CommonTypes_1.StringGet)(this.serviceProvider, 'RecTypeToString', req);
}
async RecordedIdForPathname(req) {
return (0, CommonTypes_1.IntGet)(this.serviceProvider, 'RecordedIdForPathname', req);
}
async RemoveRecordSchedule(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'RemoveRecordSchedule', req);
}
async RemoveRecorded(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'RemoveRecorded', req);
}
async RescheduleRecordings() {
return (0, CommonTypes_1.BoolGet)(this.serviceProvider, 'RescheduleRecordings');
}
async SetSavedBookmark(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'SetSavedBookmark', req);
}
async StopRecording(req) {
return (0, CommonTypes_1.BoolGet)(this.serviceProvider, 'StopRecording', req);
}
async UnDeleteRecording(req) {
return (0, CommonTypes_1.BoolGet)(this.serviceProvider, 'UnDeleteRecording', req);
}
async UpdateRecordSchedule(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'UpdateRecordSchedule', req);
}
async UpdateRecordedWatchedStatus(req) {
return (0, CommonTypes_1.BoolPost)(this.serviceProvider, 'UpdateRecordedWatchedStatus', req);
}
async GetProgramCategories(req) {
return (0, CommonTypes_1.StringListGet)(this.serviceProvider, 'GetProgramCategories', req);
}
async RecordedIdForKey(req) {
return (0, CommonTypes_1.IntGet)(this.serviceProvider, 'RecordedIdForKey', req);
}
}
DvrService.Service = Service;
})(DvrService = exports.DvrService || (exports.DvrService = {}));
//# sourceMappingURL=DvrService.js.map