public Services(string path, IReadBookService bookService, IReadHistoryService historyService, IWriteHistoryService writeHistory) { _path = path; _lastBookPath = null; _bookService = bookService; _historyService = historyService; _writeHistory = writeHistory; }
public DetailsPageVm(INavigator navigator, IAlert alert, IWorksService worksService, IFavoriteService favoriteService, IReadHistoryService readHistoryService) : base(navigator, alert) { _worksService = worksService; _favoriteService = favoriteService; _historyService = readHistoryService; SelectChapter = new Command(async() => await LoadChapter()); FavoriteCommand = new Command <WorkIndexing>(async(work) => await FavoriteWork(work.getAs <Work>())); }