Exemplo n.º 1
0
 public SelectPatternViewModel(
     IViewModelNavigator navigator,
     PatternViewModelProvider patternViewModelProvider
     )
 {
     _navigator = navigator;
     _patternViewModelProvider = patternViewModelProvider;
 }
Exemplo n.º 2
0
 public MessageAdapter(
     IMappingEngine mappingEngine,
     QueueUtilizerFactory queueUtilizerFactory,
     ImagePrinter imagePrinter,
     ImageService imageService,
     PatternViewModelProvider patternViewModelProvider,
      ImageUtils imageUtils)
 {
     _mappingEngine = mappingEngine;
     _queueUtilizer = queueUtilizerFactory.CreateQueue<InstagramMessageDto>();
     _imagePrinter = imagePrinter;
     _imageService = imageService;
     _patternVmProvider = patternViewModelProvider;
     _imageUtils = imageUtils;
 }
        public InstagramExplorerViewModel(
            IViewModelNavigator navigator,
            InstagramExplorer instagramExplorer,
            SettingsProvider settings,
            ImagePrinter printer, PatternViewModelProvider patternVMProvider,
            ImageUtils imageUtils, IMappingEngine mappingEngine)
        {
            _navigator = navigator;
            _printer = printer;
            _patternVmProvider = patternVMProvider;
            _imageUtils = imageUtils;
            _mappingEngine = mappingEngine;
            _instagramExplorer = instagramExplorer;
            AppSettingsDto appSettings = settings.GetAppSettings();
            if (appSettings != null)
                _printerName = appSettings.PrinterName;

            IsHashTag = true;
            SearchAsyncOperation= new NotifyTaskCompletion<ImageResponse>(Task.FromResult(default(ImageResponse)));
            _searchTokenSource= new CancellationTokenSource();
        }