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 WebTV_Hourly(string[] str)
        {
            if (str.Length < 2)
            {
                return;
            }
            string        channelname = str[1];
            WebTV_Channel channel     = WebTV_Singleton.Find(channelname);
            WebTV_Hourly  hourly      = channel.Current;

            Add(new MsgJSON_Object("HOURLY", hourly));


            //**************************************
            //Channel channel = Channels.Find(str[1]);
            //if (channel == null) return;
            //Add(new MsgJSON_Object("HOURLY", channel.FindInfo()));
        }
Beispiel #4
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));
        }
Beispiel #5
0
        //public override void Loop(string[] str)
        //{
        //    base.Loop(str);
        //}
        //public void Home(string[] str)
        //{
        //    Redirect("Default.aspx");
        //}
        public override void Appearance(string[] str)
        {
            if (str.Length < 2)
            {
                return;
            }
            string        channelname = str[1];
            WebTV_Channel channel     = WebTV_Singleton.Find(channelname);

            if (channel != null)
            {
                Add(new MsgJSON_Object("APPEARANCE", channel.Appearances));
            }

            //******************
            //string name = str[1];
            //Channel channel = Channels.Find(name);
            //if (channel != null)
            //    Add(new MsgJSON_Object("APPEARANCE", channel.Appearances));
        }