Beispiel #1
0
        public void CallWebTVNext(string[] str)
        {
            if (str.Length < 3)
            {
                return;
            }
            string channelname = str[1];
            string id          = str[2];

            WebTV_Channel channel = WebTV_Singleton.Find(channelname);
            WebTV_Media   media   = WebTV_Find.Next_Media(channel);

            if (media != null)
            {
                Add(new Msg_WebTV("WEBTVNEXT", id, media));
            }

            //******************************
            //Channel channel = Channels.Find(channelname);
            //if (channel != null)
            //{
            //    WebTVJSON webtvjson = channel.FindNext();
            //    if (webtvjson != null) Add(new MsgJSON_WebTV("WEBTVNEXT", id, webtvjson));
            //}
        }
Beispiel #2
0
        public void ChannelTV(string[] str)
        {
            if (str.Length < 3)
            {
                return;
            }
            string channelname = str[1];
            string id          = str[2];
            // Verif == null !!!!
            WebTV_Channel     channel;     // = WebTV_Singleton.Find(channelname);
            WebTV_Hourly      hourly;      // = channel.Current;
            WebTV_Media       media;       // = hourly.Current;
            WebTV_Proprietary proprietary; // = WebTV_Find.Proprietary(media.Name);

            channel     = WebTV_Singleton.Find(channelname);
            hourly      = channel.Current;
            media       = hourly.Current;
            proprietary = WebTV_Find.Proprietary(media.Name);

            Add(new Msg_WebTV("WEBTV", id, media));
            Add(new Msg_WebTV("CHANNEL", id, channel));
            Add(new Msg_WebTV("HOURLY", id, hourly));
            Add(new Msg_WebTV("PROPRIETARY", id, hourly));


            //WebTVJSON webtvjson = WebTV.Channels.FindChannel(channelname);
            //((WebTVInfo)PageInfo).Channel = channelname;
            //Add(new MsgJSON_String("CHANNEL", channelname));
            ////Add(new MsgJSON_Channel("CHANNEL", id, channelname));
            //if (webtvjson != null)
            //{
            //    Add(new MsgJSON_WebTV("WEBTV", id, webtvjson));
            //}
        }
Beispiel #3
0
        public void CallWebTV(string[] str)
        {
            if (str.Length < 3)
            {
                return;
            }
            string channelname = str[1];
            string id          = str[2];

            WebTV_Channel channel = WebTV_Singleton.Find(channelname);
            WebTV_Media   media   = WebTV_Find.Current_Media(channel);

            Add(new Msg_WebTV("WEBTV", id, media));

            //****************************
            //webtvjson = new WebTVJSON();
            //WebTVJSON webtvjson = WebTV.Channels.FindChannel(channelname);
            //if (webtvjson != null) Add(new MsgJSON_WebTV("WEBTV",id, webtvjson));
        }