/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(IStorageService storageService, IPhotoService photoService, INfcService nfcService) { this.storageService = storageService; this.photoService = photoService; this.nfcService = nfcService; ExistInformation = this.storageService.ExistInformation(); if (this.storageService.ExistInformation()) { Information = this.storageService.LoadPersonalInformation(); ViewState = ScreenStates.Viewing; this.nfcService.StartPeerFinder(Information); } else { ViewState = ScreenStates.Editing; } InitializeCommand(); }
public OpenDoorViewModel( IAuthenticationService authenticationService) { _authenticationService = authenticationService; _nfcService = DependencyService.Get <INfcService>(); }
public CardDetailsViewModel(ICardService cardService, INfcService nfcService) { _cardService = cardService; _nfcService = nfcService; }