public NewsArticlesController(ILogger logger, INewsContext context, INewsArticlesService newsArticlesRepository, ICategoryService categoryRepository, INewsArticleTextService articleText)
 {
     _logger  = logger;
     _context = context;
     _newsArticlesRepository = newsArticlesRepository;
     _categoryRepository     = categoryRepository;
     _articleText            = articleText;
 }
        //

        public MainPageViewModel(INavigationService navigationService, INewsArticlesService newsArticlesService)
            : base(navigationService)
        {
            Title = "Homepage";

            _newsArticleService = newsArticlesService;
            _navigationService  = navigationService;
        }
예제 #3
0
        public NewsArticlesPageViewModel(INavigationService navigationService, INewsArticlesService newsArticlesService)
            : base(navigationService)
        {
            Title = "Homepage";

            _newsArticlesService = newsArticlesService;
            _navigationService   = navigationService;

            //Command instances
            GetNewsArticleCommand = new DelegateCommand <object>(MoreInfoNewsArticle);
        }
예제 #4
0
 public HomeBaseController(
     ICacheManager cacheManager,
     ILogger logger,
     IAreaService areaService,
     IHrDbContext hrDbContext,
     IDistributorConfigService distributorConfigService,
     INewsArticlesService articlesRepository
     )
 {
     _cacheManager             = cacheManager;
     _Logger                   = logger;
     _areaService              = areaService;
     _dbContext                = hrDbContext;
     _distributorConfigService = distributorConfigService;
     _articlesRepository       = articlesRepository;
 }
예제 #5
0
        public NewsArticleDetailPageViewModel(
            INavigationService navigationService,
            INewsArticlesService newsArticlesService,
            IPermissionManager permissionManager

            ) : base(navigationService)
        {
            _navigationService   = navigationService;
            _newsArticlesService = newsArticlesService;
            _permissionManager   = permissionManager;

            OnCategoryTappedCommand       = new Command(NavigateToNewsArticleCategory);
            OnBackNavigationCommand       = new Command(NavigateBack);
            NavigateToRedactorPageCommand = new DelegateCommand <object>(NavigateToRedactorPage);
            ShareItemCommand = new Command(ShareItemAsync);
        }
예제 #6
0
        //

        public MainPageViewModel(INavigationService navigationService, INewsArticlesService newsArticlesService , IRSSArticlesService RSSArticlesService)
            : base(navigationService)
        {
            Title = "Homepage";

            _newsArticleService = newsArticlesService;
            _RSSArticlesService = RSSArticlesService;
            _navigationService = navigationService;

            //Command Instances
            GetNewsArticleCommand = new DelegateCommand<object>(MoreInfoNewsArticle);
            
            OnNextRSSArticleCommand = new Command(OnNextRSSArticle);
            OnPrevRSSArticleCommand = new Command(OnPrevRSSArticle);


            //Navigation arrow settings
            IsArrowLeftVisible = false;
            IsArrowRightVisible = true;
        }
 public SearchNewsArticlesService(INewsArticlesService newsArticles)
 {
     _newsArticles = newsArticles;
 }
 public ArticlesController(INewsArticlesService newsArticlesService)
 {
     _NewsArticlesService = newsArticlesService;
 }
예제 #9
0
 public NewsArticlesController(INewsArticlesService newsArticles, IPubnubBroadcaster pubnub)
 {
     this.newsArticles = newsArticles;
     this.pubnub = pubnub;
 }
예제 #10
0
 public NewsArticlesController(INewsArticlesService newsArticles, IPubnubBroadcaster pubnub)
 {
     this.newsArticles = newsArticles;
     this.pubnub       = pubnub;
 }
예제 #11
0
 public HomeController()
 {
     _newsArticlesService = new NewsArticlesService();
 }
예제 #12
0
 public NewsArticlesController(INewsArticlesService newsArticles, IImagesService images)
 {
     this.newsArticles = newsArticles;
     this.images = images;
 }