public MainViewModel() { visionService = DependencyService.Get <IVisionAPIService>(); getDniPhotoCommand = new Command(async() => await GetDniPhotoExecuteAsync()); getFacePhotoCommand = new Command(async() => await GetFacePhotoExecuteAsync()); getResultsCommand = new Command(async() => await GetResultsExecuteAsync()); }
public ResultsViewModel() { visionService = DependencyService.Get <IVisionAPIService>(); }