public async Task GetStaticFoxStatusAsync(OnGetStaticFoxStatusDelegate onGetStaticFoxStatus) { _onGetStaticFoxStatus = onGetStaticFoxStatus ?? throw new ArgumentNullException(nameof(onGetStaticFoxStatus)); _isFoxArmedCommand.SetResponseDelegate(OnIsFoxArmedResponse); _isFoxArmedCommand.SendIsFoxArmedCommand(); }
private async Task OnGetAntennaMatchingStatusAsync ( AntennaMatchingStatus status, bool isNewForApp, int totalMatcherPositions, int currentMatcherPosition, float currentAntennaVoltage, int currentBestMatchPosition, float currentBestMatchVoltage ) { _statusToLoad.AntennaMatchingStatus.Status = status; _statusToLoad.AntennaMatchingStatus.IsNewForApp = isNewForApp; _statusToLoad.AntennaMatchingStatus.TotalMatcherPositions = totalMatcherPositions; _statusToLoad.AntennaMatchingStatus.CurrentMatcherPosition = currentMatcherPosition; _statusToLoad.AntennaMatchingStatus.CurrentVoltage = currentAntennaVoltage; _statusToLoad.AntennaMatchingStatus.CurrentBestMatchPosition = currentBestMatchPosition; _statusToLoad.AntennaMatchingStatus.CurrentBestMatchVoltage = currentBestMatchVoltage; _isFoxArmedCommand.SetResponseDelegate(async(ia) => await OnIsFoxArmedResponseAsync(ia)); _isFoxArmedCommand.SendIsFoxArmedCommand(); }