Пример #1
0
        public Schedule CreateRecordOnceSchedule(Guid channelId, Guid guideProgramId)
        {
            GuideProgram guideProgram = Proxies.GuideService.GetProgramById(guideProgramId).Result;

            if (guideProgram != null)
            {
                return(GuideController.CreateRecordOnceSchedule(_model.ChannelType, channelId, guideProgram.Title, guideProgram.SubTitle, guideProgram.EpisodeNumberDisplay, guideProgram.StartTime));
            }
            return(null);
        }
Пример #2
0
        public Schedule CreateRecordOnceSchedule(ISchedulerService tvSchedulerAgent, IGuideService tvGuideAgent, Guid channelId, Guid guideProgramId)
        {
            GuideProgram guideProgram = tvGuideAgent.GetProgramById(guideProgramId);

            if (guideProgram != null)
            {
                return(GuideController.CreateRecordOnceSchedule(tvSchedulerAgent, _model.ChannelType, channelId, guideProgram.Title, guideProgram.SubTitle, guideProgram.EpisodeNumberDisplay, guideProgram.StartTime));
            }
            return(null);
        }