public override void SetSafetyNumberVariable(int index, int value) { switch (index) { case 1: LeftSide = value; return; case 2: { var bytes = value.ToBytes(Endian.Environment); acceptStatus = new AcceptStatus(bytes[0]); IsWaitForInput = (bytes[0] & FlgWaitForInput) != 0; return; } default: throw new ArgumentOutOfRangeException( ErrorMessage.OutOfRange(nameof(index), 1, 2, index)); } }
private RpcMessage GenerateReply(AcceptStatus acceptStatus) => this.GenerateReply(new ReplyData { AcceptStatus = acceptStatus });