private static Dictionary<Guid, UpcomingGuideProgram> BuildUpcomingDictionary(UpcomingGuideProgram[] upcomingGuidePrograms) { Dictionary<Guid, UpcomingGuideProgram> result = new Dictionary<Guid, UpcomingGuideProgram>(); foreach (UpcomingGuideProgram upcomingGuideProgram in upcomingGuidePrograms) { Guid upcomingProgramId = upcomingGuideProgram.GetUniqueUpcomingProgramId(); if (!result.ContainsKey(upcomingProgramId)) { result.Add(upcomingProgramId, upcomingGuideProgram); } } return result; }
public void SetTarget(Channel channel, Guid? guideProgramId, string title, string subTitle, string episodeNumberDisplay, DateTime startTime, ScheduleType? scheduleType, UpcomingProgram upcomingProgram, UpcomingGuideProgram upcomingGuideProgram) { SetTarget(channel, guideProgramId, title, subTitle, episodeNumberDisplay, startTime, scheduleType, upcomingProgram, upcomingGuideProgram, null); }
private void SetTarget(Channel channel, Guid? guideProgramId, string title, string subTitle, string episodeNumberDisplay, DateTime startTime, ScheduleType? scheduleType, UpcomingProgram upcomingProgram, UpcomingGuideProgram upcomingGuideProgram, ActiveRecording activeRecording) { _channel = channel; _guideProgramId = guideProgramId; _title = title; _subTitle = subTitle; _episodeNumberDisplay = episodeNumberDisplay; _startTime = startTime; _scheduleType = scheduleType; _upcomingProgram = upcomingProgram; _activeRecording = activeRecording; _upcomingGuideProgram = upcomingGuideProgram; }
public GuideUpcomingProgram(ScheduleType type, UpcomingGuideProgram upcomingGuideProgram) { _type = type; _upcomingGuideProgram = upcomingGuideProgram; }