private LPD433MHzCodeSequence GetSequenceB(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4194325U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4194324U, LENGTH, REPEATS))); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4210709U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4210708U, LENGTH, REPEATS))); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4198421U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4198420U, LENGTH, REPEATS))); } default: { throw new NotSupportedException(); } } }
private LPD433MHzCodeSequence GetSequenceD(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5242901U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5242900U, LENGTH, REPEATS))); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5259285U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5259284U, LENGTH, REPEATS))); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5246997U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5246996U, LENGTH, REPEATS))); } default: { 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(); }
private LPD433MHzCodeSequence GetSequenceC(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1048597U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1048596U, LENGTH, REPEATS))); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1064981U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1064980U, LENGTH, REPEATS))); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1052693U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1052692U, LENGTH, REPEATS))); } default: { throw new NotSupportedException(); } } }
private Lpd433MhzCode GetCodeB(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(4194325U, Length, Protocol, Repeats) : new Lpd433MhzCode(4194324U, Length, Protocol, Repeats)); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(4210709U, Length, Protocol, Repeats) : new Lpd433MhzCode(4210708U, Length, Protocol, Repeats)); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(4198421U, Length, Protocol, Repeats) : new Lpd433MhzCode(4198420U, Length, Protocol, Repeats)); } default: { throw new NotSupportedException(); } } }
private Lpd433MhzCode GetCodeD(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(5242901U, Length, Protocol, Repeats) : new Lpd433MhzCode(5242900U, Length, Protocol, Repeats)); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(5259285U, Length, Protocol, Repeats) : new Lpd433MhzCode(5259284U, Length, Protocol, Repeats)); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(5246997U, Length, Protocol, Repeats) : new Lpd433MhzCode(5246996U, Length, Protocol, Repeats)); } default: { throw new NotSupportedException(); } } }
private Lpd433MhzCode GetCodeC(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(1048597U, Length, Protocol, Repeats) : new Lpd433MhzCode(1048596U, Length, Protocol, Repeats)); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(1064981U, Length, Protocol, Repeats) : new Lpd433MhzCode(1064980U, Length, Protocol, Repeats)); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode(1052693U, Length, Protocol, Repeats) : new Lpd433MhzCode(1052692U, Length, Protocol, Repeats)); } default: { throw new NotSupportedException(); } } }
private LPD433MHzCodeSequence GetSequenceB(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4194325U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4194324U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit2: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4210709U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4210708U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit3: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4198421U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4198420U, LENGTH, REPEATS)); } default: { throw new NotSupportedException(); } } }
private LPD433MHzCodeSequence GetSequenceA(IntertechnoUnitCode unitCode, RemoteSwitchCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return command == RemoteSwitchCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(21U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(20U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit2: { return command == RemoteSwitchCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(16405U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(16404U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit3: { return command == RemoteSwitchCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4117U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(4116U, LENGTH, REPEATS)); } default: { 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 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(); }
private static Lpd433MhzCode GetCodeA(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode { Value = 21U, Length = Length, Protocol = Protocol, Repeats = Repeats } : new Lpd433MhzCode { Value = 20U, Length = Length, Protocol = Protocol, Repeats = Repeats }); } case IntertechnoUnitCode.Unit2: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode { Value = 16405U, Length = Length, Protocol = Protocol, Repeats = Repeats } : new Lpd433MhzCode { Value = 16404U, Length = Length, Protocol = Protocol, Repeats = Repeats }); } case IntertechnoUnitCode.Unit3: { return(command == RemoteSocketCommand.TurnOn ? new Lpd433MhzCode { Value = 4117U, Length = Length, Protocol = Protocol, Repeats = Repeats } : new Lpd433MhzCode { Value = 4116U, Length = Length, Protocol = Protocol, Repeats = Repeats }); } default: { throw new NotSupportedException(); } } }
public LPD433MHzCodeSequencePair GetSequencePair(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode) { return(new LPD433MHzCodeSequencePair( GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOn), GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOff))); }
public LPD433MHzCodeSequencePair GetSequencePair(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode) { return new LPD433MHzCodeSequencePair( GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOn), GetSequence(systemCode, unitCode, RemoteSocketCommand.TurnOff)); }
private LPD433MHzCodeSequence GetSequenceD(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5242901U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5242900U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit2: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5259285U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5259284U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit3: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5246997U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(5246996U, LENGTH, REPEATS)); } default: { throw new NotSupportedException(); } } }
private LPD433MHzCodeSequence GetSequenceC(IntertechnoUnitCode unitCode, RemoteSocketCommand command) { switch (unitCode) { case IntertechnoUnitCode.Unit1: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1048597U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1048596U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit2: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1064981U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1064980U, LENGTH, REPEATS)); } case IntertechnoUnitCode.Unit3: { return command == RemoteSocketCommand.TurnOn ? new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1052693U, LENGTH, REPEATS)) : new LPD433MHzCodeSequence().WithCode(new LPD433MHzCode(1052692U, LENGTH, REPEATS)); } default: { throw new NotSupportedException(); } } }
public static Lpd433MhzCodePair GetCodePair(IntertechnoSystemCode systemCode, IntertechnoUnitCode unitCode) { return(new Lpd433MhzCodePair( GetCode(systemCode, unitCode, RemoteSocketCommand.TurnOn), GetCode(systemCode, unitCode, RemoteSocketCommand.TurnOff))); }