public async Task GetCurrentProfileId(OnGetCurrentProfileIdDelegate onGetCurrentProfileId) { _onGetCurrentProfileId = onGetCurrentProfileId ?? throw new ArgumentNullException(nameof(onGetCurrentProfileId)); _getCurrentProfileIdCommand.SetResponseDelegate(OnGetCurrentProfileIdResponse); _getCurrentProfileIdCommand.SendGetCurrentProfileIdCommand(); }
private async Task OnIsFoxArmedResponseAsync(bool isArmed) { _statusToLoad.IsFoxArmed = isArmed; _getCurrentProfileIdCommand.SetResponseDelegate(async(p) => await OnGetCurrentProfileIdResponseAsync(p)); _getCurrentProfileIdCommand.SendGetCurrentProfileIdCommand(); }