コード例 #1
0
ファイル: ExtensionMethods.cs プロジェクト: piet5211/RPLiveTV
 public static string MatchedChannelCallsign(this CommonEPG.TVProgramme tvp)
 {
     CommonEPG.TVService tvc = EPGManager.TVServiceWithIDOrNull(tvp.ServiceID);
     if (tvc == null)
     {
         return("Unknown");
     }
     return(tvc.Callsign);
 }
コード例 #2
0
ファイル: GuideInfo.cs プロジェクト: piet5211/RPLiveTV
        public static bool GetScheduleEventForTVProgramme(CommonEPG.TVProgramme tvp, ref ScheduleEvent matchingEvent, ref ScheduleRequest matchingRequest)
        {
            CommonEPG.TVService tvc = EPGManager.TVServiceWithIDOrNull(tvp.ServiceID);
            if (tvc == null)
            {
                return(false);
            }

            return(GetScheduleEventAtExactTimeOnChannel(tvp.StartTimeDT(), tvc.Callsign, false, "", ref matchingEvent, ref matchingRequest));
        }