Exemple #1
0
 public PodcastViewModel(IPodcastService podcastService, IDialogService dialogService, IConnectService connectService, IRadioPlayer radioPlayer)
 {
     _podcastService = podcastService;
     _dialogService  = dialogService;
     _connectService = connectService;
     _radioPlayer    = radioPlayer;
 }
        public EpisodesViewModel(IPodcastService podcastService)
        {
            this.podcastService = podcastService;
            this.episodes       = new ObservableCollection <EpisodeViewModel>();

            MessengerInstance.Register <LoadEpisodesMessage>(this, async message => await LoadEpisodeAsync());
        }
Exemple #3
0
        public AppQuery(
            IAuthorService authorService,
            IPodcastService podcastService,
            IEpisodeService episodeService
            )
        {
            Field <ListGraphType <AuthorType> >(
                "authors",
                resolve: context => authorService.GetAll()
                );

            Field <AuthorType>(
                "author",
                arguments: new QueryArguments(
                    new QueryArgument <IdGraphType> {
                Name = "id"
            }
                    ),
                resolve: context => {
                var id = context.GetArgument <int>("id");
                return(authorService.GetAuthorById(id));
            }
                );

            Field <ListGraphType <PodcastType> >(
                "podcasts",
                resolve: context => podcastService.GetAll()
                );

            Field <PodcastType>(
                "podcast",
                arguments: new QueryArguments(
                    new QueryArgument <IdGraphType> {
                Name = "id"
            }
                    ),
                resolve: context => {
                var id = context.GetArgument <int>("id");
                return(podcastService.GetPodcastById(id));
            }
                );

            Field <ListGraphType <EpisodeType> >(
                "episodes",
                resolve: context => episodeService.GetAll()
                );

            Field <EpisodeType>(
                "episode",
                arguments: new QueryArguments(
                    new QueryArgument <IdGraphType> {
                Name = "id"
            }
                    ),
                resolve: context => {
                var id = context.GetArgument <int>("id");
                return(episodeService.GetEpisodeById(id));
            }
                );
        }
Exemple #4
0
 public PodcastController(ICommonService commonService, IPodcastService podcastService, IFolderService folderService, IFileService fileService)
 {
     this._commonService  = commonService;
     this._podcastService = podcastService;
     this._folderService  = folderService;
     this._fileService    = fileService;
 }
 public PodcastDownloaderService(IPodcastService podcastService, IPathService pathService, IFileService fileService, IHttpClientService httpClientService, ILoggerService loggerService)
 {
     _podcastService    = podcastService;
     _pathService       = pathService;
     _fileService       = fileService;
     _httpClientService = httpClientService;
     _loggerService     = loggerService;
 }
 public ProcessorService(IDataService dataService, IPodcastService podcastService, IFileService fileService,
                         ITransactionService transactionService)
 {
     this.dataService        = dataService;
     this.podcastService     = podcastService;
     this.fileService        = fileService;
     this.transactionService = transactionService;
 }
        public formMain()
        {
            InitializeComponent();

            _podcastService = new PodcastService();
            _podcasts       = new List <PodcastModel>();

            lblVersion.Text = VersionTools.GetVersion();
        }
 public PodcastController(
     IPodcastService podcastService,
     ITagService tagService,
     IUnitOfWork uow
     )
 {
     _podcastService = podcastService;
     _uow            = uow;
     _tagService     = tagService;
 }
Exemple #9
0
 public HomeController(ILogger <HomeController> logger, IPhotoService photoService, IPodcastService podcastService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService, IHomeService homeService)
 {
     _logger               = logger;
     this._photoService    = photoService;
     this._podcastService  = podcastService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._homeService     = homeService;
 }
        public PodcastsViewModel(IPodcastService podcastService, INavigationService navigationService, IMessageDialogService dialogService)
            : base()
        {
            this.podcastService = podcastService;
            this.navigationService = navigationService;
            this.dialogService = dialogService;
            this.podcasts = new ObservableCollection<PodcastViewModel>();
            this.AddPodcastCommand = new RelayCommand(AddPodcastAsync,CanAddPodcast);
            this.loadedPodcasts = false;

            MessengerInstance.Register<LoadPodcastsMessage>(this, message => LoadPodcastsAsync());
            MessengerInstance.Register<DeletePodcastMessage>(this, message => DeletePodcastAsync(message));
            MessengerInstance.Register<CheckForNewEpsiodesMessage>(this, message => CheckForNewEpisodesAsync());
        }
        public PodcastsViewModel(IPodcastService podcastService, INavigationService navigationService, IMessageDialogService dialogService)
            : base()
        {
            this.podcastService    = podcastService;
            this.navigationService = navigationService;
            this.dialogService     = dialogService;
            this.podcasts          = new ObservableCollection <PodcastViewModel>();
            this.AddPodcastCommand = new RelayCommand(AddPodcastAsync, CanAddPodcast);
            this.loadedPodcasts    = false;

            MessengerInstance.Register <LoadPodcastsMessage>(this, message => LoadPodcastsAsync());
            MessengerInstance.Register <DeletePodcastMessage>(this, message => DeletePodcastAsync(message));
            MessengerInstance.Register <CheckForNewEpsiodesMessage>(this, message => CheckForNewEpisodesAsync());
        }
 public PodcastController(ILogger <PodcastController> logger, IPodcastService podcastSvc)
 {
     _logger     = logger;
     _podcastSvc = podcastSvc;
 }
 public PodcastController(IPodcastService podcastService)
 {
     _podcastService = podcastService;
 }
Exemple #14
0
 public HomeController(IPodcastParser podcastParser, IPodcastService podcastService, IConfigurationRoot configuration)
 {
     _podcastParser  = podcastParser;
     _podcastService = podcastService;
     _configuration  = configuration;
 }
 public SpecialController(IPodcastService podcastService)
 {
     _podcastService = podcastService;
 }
Exemple #16
0
 public Program(IPodcastService podcastService, IConfigurationService configurationService)
 {
     _configurationService = configurationService;
     _podcastService       = podcastService;
 }
Exemple #17
0
 public DownloadController(IPodcastService podcastService)
 {
     _podcastService = podcastService;
 }
 public MainViewModel(IPodcastService podcastService, IDialogService dialogService)
 {
     _podcastService = podcastService;
     _dialogService  = dialogService;
 }