public LPD433MHzCodeSequence GetSequence(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode, RemoteSocketCommand command)
        {
            switch (systemCode)
            {
                case IntertechnoSystemCode.A:
                {
                    return GetSequenceA(unitCode, command);
                }

                case IntertechnoSystemCode.B:
                {
                    return GetSequenceB(unitCode, command);
                }

                case IntertechnoSystemCode.C:
                {
                    return GetSequenceC(unitCode, command);
                }

                case IntertechnoSystemCode.D:
                {
                    return GetSequenceD(unitCode, command);
                }
            }

            throw new NotSupportedException();
        }
Example #2
0
        public static Lpd433MhzCode GetCode(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode, RemoteSocketCommand command)
        {
            switch (systemCode)
            {
            case IntertechnoSystemCode.A:
            {
                return(GetCodeA(unitCode, command));
            }

            case IntertechnoSystemCode.B:
            {
                return(GetCodeB(unitCode, command));
            }

            case IntertechnoSystemCode.C:
            {
                return(GetCodeC(unitCode, command));
            }

            case IntertechnoSystemCode.D:
            {
                return(GetCodeD(unitCode, command));
            }
            }

            throw new NotSupportedException();
        }
        public LPD433MHzCodeSequence GetSequence(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode, RemoteSocketCommand command)
        {
            switch (systemCode)
            {
            case IntertechnoSystemCode.A:
            {
                return(GetSequenceA(unitCode, command));
            }

            case IntertechnoSystemCode.B:
            {
                return(GetSequenceB(unitCode, command));
            }

            case IntertechnoSystemCode.C:
            {
                return(GetSequenceC(unitCode, command));
            }

            case IntertechnoSystemCode.D:
            {
                return(GetSequenceD(unitCode, command));
            }
            }

            throw new NotSupportedException();
        }
 public LPD433MHzCodeSequencePair GetSequencePair(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode)
 {
     return new LPD433MHzCodeSequencePair(
         GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOn),
         GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOff));
 }
Example #5
0
 public static Lpd433MhzCodePair GetCodePair(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode)
 {
     return(new Lpd433MhzCodePair(
                GetCode(systemCode, unitCode, RemoteSocketCommand.TurnOn),
                GetCode(systemCode, unitCode, RemoteSocketCommand.TurnOff)));
 }
 public LPD433MHzCodeSequencePair GetSequencePair(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode)
 {
     return(new LPD433MHzCodeSequencePair(
                GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOn),
                GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOff)));
 }