public WelcomeViewModel(IPermissions permissionService, ISpeakerVerification verificationService) { _permissionService = permissionService; _verificationService = verificationService; CheckAndGoTrainCommand = new Command(async() => await CheckAndTrain()); CheckAndGoVerifyCommand = new Command(async() => await CheckAndVerify()); ClearCommand = new Command(Clear); }
public AudioVerifyViewModel(ISpeakerVerification verificationService) { StateMessage = "Hold on..."; _beeper = DependencyService.Get <IBeepPlayer>(); _verificationService = verificationService; Recorder.AudioInputReceived += async(object sender, string e) => { await Recorder_AudioInputReceived(sender, e); }; }