public MainOffersViewModel( IWebpageService webpageService, IBrowserService browserService, IMvxNavigationService navigationService, IUnitOfWork unitOfWork, ISnackbarMessageQueue snackbarMessageQueue, IMvxLog logger ) { _webpageService = webpageService; _browserService = browserService; _navigationService = navigationService; _unitOfWork = unitOfWork; SnackbarMessageQueue = snackbarMessageQueue; _logger = logger; Offers = new MvxObservableCollection <OfferViewModel>(); GetDataFromWebpageCommand = new MvxAsyncCommand(GetDataFromWebpage, CanGetDataFromWebpage); NavigateToOfferViewCommand = new MvxAsyncCommand(NavigateToOfferView); UpdatePricesCommand = new MvxAsyncCommand(UpdatePrices, CanUpdatePrices); DeleteCommand = new MvxAsyncCommand(DeleteOffer, CanDeleteOffer); InfoText = "Uruchomiono"; _logger.Debug("test uruchomiono MainOffersViewModel"); }
public BookmarkInsertedConsumer( BookmarkManagerContext context, IWebpageService webpageService, ILogger <BookmarkInsertedConsumer> logger) { _context = context; _webpageService = webpageService; _logger = logger; }
public OfferViewModel( IWebpageService webpageService, IBrowserService browserService, IMvxNavigationService navigationService, IUnitOfWork unitOfWork, Offer offer ) { NavigateToUrlCommand = new MvxAsyncCommand(NavigateToUrl); GoBackCommand = new MvxAsyncCommand(GoBack); UpdateAllCommand = new MvxAsyncCommand(UpdateAll); _webpageService = webpageService; _browserService = browserService; _navigationService = navigationService; _unitOfWork = unitOfWork; _offer = offer; _uri = new Uri(offer.ImageThumbnails?.OrderBy(x => x.Src)?.FirstOrDefault()?.Src ?? string.Empty); }