Beispiel #1
0
 public MainPageViewModel(INavigationService navigationService, ITextToSpeechService textToSpeechService, IQRScanService qrScanService, IAttendeeRepository attendeeRepository, ISoundService soundService)
     : base(navigationService)
 {
     Title = "MVP Conference 2019";
     this.textToSpeechService = textToSpeechService;
     this.qrScanService       = qrScanService;
     this.attendeeRepository  = attendeeRepository;
     this.soundService        = soundService;
     ScanCommand          = new DelegateCommand(Scan, HasSession).ObservesProperty(() => CurrentSession);
     SelectSessionCommand = new DelegateCommand(SelectSession);
     SettingsCommand      = new DelegateCommand(Settings);
 }
Beispiel #2
0
 public QRScanController(ILogger <QRScanController> logger, IQRScanService service)
 {
     _logger  = logger;
     _service = service;
 }