示例#1
0
        public Schedule CreateRecordRepeatingSchedule(RepeatingType repeatingType, Guid?channelId, Guid guideProgramId)
        {
            GuideProgram guideProgram = Proxies.GuideService.GetProgramById(guideProgramId).Result;

            if (guideProgram != null)
            {
                return(GuideController.CreateRecordRepeatingSchedule(repeatingType, _model.ChannelType, channelId, guideProgram.Title, guideProgram.StartTime, string.Empty));
            }
            return(null);
        }
示例#2
0
        public Schedule CreateRecordRepeatingSchedule(ISchedulerService tvSchedulerAgent, IGuideService tvGuideAgent, RepeatingType repeatingType, Guid?channelId, Guid guideProgramId)
        {
            GuideProgram guideProgram = tvGuideAgent.GetProgramById(guideProgramId);

            if (guideProgram != null)
            {
                return(GuideController.CreateRecordRepeatingSchedule(tvSchedulerAgent, repeatingType, _model.ChannelType, channelId, guideProgram.Title, guideProgram.StartTime, string.Empty));
            }
            return(null);
        }