private void MergeExtraPrograms(Channel channel, ChannelPrograms channelPrograms, DateTime fromDateTime, DateTime toDateTime) { if (toDateTime > fromDateTime) { var guidePrograms = Proxies.GuideService.GetChannelProgramsBetween(channel.GuideChannelId.Value, fromDateTime, toDateTime).Result; foreach (GuideProgramSummary guideProgram in guidePrograms) { channelPrograms.InsertProgram(guideProgram); } } }
private void MergeExtraPrograms(IGuideService tvGuideAgent, Channel channel, ChannelPrograms channelPrograms, DateTime fromDateTime, DateTime toDateTime) { if (toDateTime > fromDateTime) { GuideProgramSummary[] guidePrograms = tvGuideAgent.GetChannelProgramsBetween(channel.GuideChannelId.Value, fromDateTime, toDateTime); foreach (GuideProgramSummary guideProgram in guidePrograms) { channelPrograms.InsertProgram(guideProgram); } } }