Ejemplo n.º 1
0
        public static bool GoToChannel(string ip, SkyCommands n1, SkyCommands n2, SkyCommands n3)
        {
            try
            {
                SkyRemote remote = new SkyRemote(ip, SkyRemote.SKY_Q);

                remote.Press(n1);
                Thread.Sleep(50);
                remote.Press(n2);
                Thread.Sleep(50);
                remote.Press(n3);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public static bool Dismiss(string ip)
        {
            try
            {
                SkyRemote remote = new SkyRemote(ip, SkyRemote.SKY_Q);

                remote.Press(SkyCommands.Dismiss);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
        public static bool TurnOff(string ip)
        {
            try
            {
                if (!IsSkyBoxOn(ip))
                {
                    return(true);
                }

                SkyRemote remote = new SkyRemote(ip, SkyRemote.SKY_Q);

                remote.Press(SkyCommands.Power);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }