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

            MessengerInstance.Register <LoadEpisodesMessage>(this, async message => await LoadEpisodeAsync());
        }
Exemplo n.º 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));
            }
                );
        }
Exemplo n.º 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;
 }
Exemplo n.º 7
0
        public formMain()
        {
            InitializeComponent();

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

            lblVersion.Text = VersionTools.GetVersion();
        }
Exemplo n.º 8
0
 public PodcastController(
     IPodcastService podcastService,
     ITagService tagService,
     IUnitOfWork uow
     )
 {
     _podcastService = podcastService;
     _uow            = uow;
     _tagService     = tagService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 10
0
        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());
        }
Exemplo n.º 11
0
        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());
        }
Exemplo n.º 12
0
 public PodcastController(ILogger <PodcastController> logger, IPodcastService podcastSvc)
 {
     _logger     = logger;
     _podcastSvc = podcastSvc;
 }
 public PodcastController(IPodcastService podcastService)
 {
     _podcastService = podcastService;
 }
Exemplo n.º 14
0
 public HomeController(IPodcastParser podcastParser, IPodcastService podcastService, IConfigurationRoot configuration)
 {
     _podcastParser  = podcastParser;
     _podcastService = podcastService;
     _configuration  = configuration;
 }
 public SpecialController(IPodcastService podcastService)
 {
     _podcastService = podcastService;
 }
Exemplo n.º 16
0
 public Program(IPodcastService podcastService, IConfigurationService configurationService)
 {
     _configurationService = configurationService;
     _podcastService       = podcastService;
 }
Exemplo n.º 17
0
 public DownloadController(IPodcastService podcastService)
 {
     _podcastService = podcastService;
 }
Exemplo n.º 18
0
 public MainViewModel(IPodcastService podcastService, IDialogService dialogService)
 {
     _podcastService = podcastService;
     _dialogService  = dialogService;
 }