Beispiel #1
0
 private static OperationMessage BaseMessage(OPCodes opCode, byte[] args)
 {
     return(new OperationMessage()
     {
         OpCode = opCode,
         Args = args
     });
 }
Beispiel #2
0
 private static OperationMessage BaseMessage(OPCodes opCode, ushort homeDeviceAddress, byte[] args)
 {
     return(new OperationMessage()
     {
         OpCode = opCode,
         Args = homeDeviceAddress.UshortToByte().Concat(args).ToArray(),
     });
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode, byte[] args)
 {
     return(new OperationMessage
     {
         DestinationAddress = nodeAddress,
         OpCode = opCode,
         Args = args
     });
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode, ushort homeDeviceAddress, byte[] args)
 {
     return(BaseMessage(nodeAddress, opCode, homeDeviceAddress.UshortToByte().Concat(args).ToArray()));
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode, ushort homeDeviceAddress)
 {
     return(BaseMessage(nodeAddress, opCode, homeDeviceAddress.UshortToByte()));
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode)
 {
     return(BaseMessage(nodeAddress, opCode, null));
 }
 private static OperationMessage BaseMessage(OPCodes opCode, byte[] args)
 {
     return new OperationMessage()
     {
         OpCode = opCode,
         Args = args
     };
 }
 private static OperationMessage BaseMessage(OPCodes opCode, ushort homeDeviceAddress, byte[] args)
 {
     return new OperationMessage()
     {
         OpCode = opCode,
         Args = homeDeviceAddress.UshortToByte().Concat(args).ToArray(),
     };
 }
 private static OperationMessage BaseMessage(OPCodes opCode, ushort homeDeviceAddress)
 {
     return BaseMessage(opCode, homeDeviceAddress.UshortToByte());
 }
 private static OperationMessage BaseMessage(OPCodes opCode)
 {
     return BaseMessage(opCode, null);
 }
Beispiel #11
0
 private static OperationMessage BaseMessage(OPCodes opCode)
 {
     return(BaseMessage(opCode, null));
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode, byte[] args)
 {
     return new OperationMessage
     {
         DestinationAddress = nodeAddress,
         OpCode = opCode,
         Args = args
     };
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode, ushort homeDeviceAddress, byte[] args)
 {
     return BaseMessage(nodeAddress, opCode, homeDeviceAddress.UshortToByte().Concat(args).ToArray());
 }
 private static OperationMessage BaseMessage(ushort nodeAddress, OPCodes opCode)
 {
     return BaseMessage(nodeAddress, opCode, null);
 }