Exemple #1
0
 public ChannelVideoService(
     IConnectionFactory connectionFactory,
     IYoutubeService youtubeService)
 {
     _connectionFactory = connectionFactory;
     _youtubeService    = youtubeService;
 }
 public YoutubeCommands(IAudioService audioService, IYoutubeService youtubeService, IVideoToAudioConverter videoToAudioConverter)
 {
     _audioService          = audioService;
     _youtubeService        = youtubeService;
     _videoToAudioConverter = videoToAudioConverter;
     _tokenSource           = new CancellationTokenSource();
 }
Exemple #3
0
 public DeltaAudio(IAudioService audioService, IDECTalkService dECTalkService, IDataService dataService, IYoutubeService YTServ)
 {
     _audserv  = audioService;
     _DECserv  = dECTalkService;
     _dataserv = dataService;
     _ytserv   = YTServ;
 }
Exemple #4
0
 public SearchController(IYoutubeService youtubeService, IVkService vkService, IUserPostService userPostService)
 {
     _youtubeService  = youtubeService;
     _userPostService = userPostService;
     _vkService       = vkService;
     // Telegram api (TLSharp) does not work in ASP MVC, but it work through WCF Service
     _telegramService = new TelegramServiceClient();
 }
Exemple #5
0
        public static void Start(TestContext testContext)
        {
            using (var ctxF = new ServicesStart())
                ctxF.Create(ref service);

            youtubeApiService = (IYoutubeApiService)service.GetService(typeof(IYoutubeApiService));
            youtubeService    = (IYoutubeService)service.GetService(typeof(IYoutubeService));
        }
Exemple #6
0
        public YoutubeController(IYoutubeService service)
        {
            Service = service;

            if (Service.Count() == 0)
            {
                Task.Run(async() => await Service.LoadChannel("UC4V3oCikXeSqYQr0hBMARwg"));
            }
        }
Exemple #7
0
 public WyspaBotService(string channel, string botName, IMarkovService markovService, IYoutubeService youtubeService, ITaskService taskService)
 {
     this.channel        = channel;
     this.botName        = botName;
     this.markovService  = markovService;
     this.youtubeService = youtubeService;
     this.taskService    = taskService;
     this.user           = $"USER {this.botName} 0 * :{this.botName}";
 }
        public MainViewModel(IYoutubeService service)
        {
            _service = service;

#if DEBUG
            if (ViewModelLocator.UseDesignTimeData)
            {
                Refresh();
            }
#endif
        }
Exemple #9
0
 public StartService(ILogger <StartService> log,
                     IConfiguration config,
                     ILyricScraperService lyricScraper,
                     ITweetService tweetService,
                     IYoutubeService youtubeService)
 {
     _log            = log;
     _config         = config;
     _lyricScaper    = lyricScraper;
     _tweetService   = tweetService;
     _youtubeService = youtubeService;
 }
Exemple #10
0
        public RunnerService(ILogger <RunnerService> logger,
                             IHostApplicationLifetime applicationLifetime,
                             IYoutubeService youtubeService,
                             ISpotifyService spotifyService)
        {
            _logger = logger;
            _applicationLifetime = applicationLifetime;
            _youtubeService      = youtubeService;
            _spotifyService      = spotifyService;

            _taskCompletionSource    = new TaskCompletionSource <bool>();
            _cancellationTokenSource = new CancellationTokenSource();
        }
Exemple #11
0
        public void BrowseOnlyChannels(IYoutubeService service)
        {
            //var oldChannelsInDb = Sql.Execute<string>("select Id from Channels");

            var channelId = "UCjsdYhMIQ0-fJPqEjiHYlzA"; //efe aydal

            //channelId = "UCv6jcPwFujuTIwFQ11jt1Yw";
            _queue.Add(new KeyValuePair <string, string>(channelId, channelId));
            new Thread(WorkerThread).Start();
            YoutubeChannelInfo channel;
            //browse channels for popular categories
            //returns pairs as following: category name and list of channels
            var channels = service.BrowseChannels().ToArray();

            foreach (var keyValuePair in channels)
            {
                foreach (var channelInfo in keyValuePair.Value)
                {
                    channel = service.GetChannelInfo(channelInfo.Id);
                    SqlStorage.Save(channel);
                }
            }
        }
 public SearchVideoUseCase(IYoutubeService youtubeService)
 {
     this.youtubeService = youtubeService;
 }
Exemple #13
0
 public UpdateJob(IYoutubeService ytService, IRulesRepository rulesRepository)
 {
     this.ytService       = ytService;
     this.rulesRepository = rulesRepository;
 }
Exemple #14
0
 public AggregationService(IYoutubeService youtubeService, IOmdbService omdbService, IGuideboxService guideboxService)
 {
     _youtubeService  = youtubeService;
     _omdbService     = omdbService;
     _guideboxService = guideboxService;
 }
 public PlaylistsController(IYoutubeService youtubeService)
 {
     this._youtubeService = youtubeService;
 }
 public YoutubeAppService(IYoutubeService youtubeService, IMapper mapper)
 {
     _youtubeService = youtubeService;
     _mapper         = mapper;
 }
 public KaraokeService(KaraokeContext context, IYoutubeService youtubeService, YoutubeHub hub)
 {
     this.context        = context;
     this.youtubeService = youtubeService;
     this.hub            = hub;
 }
 public YoutubeController(IYoutubeService youtubeService, IMapper mapper)
 {
     this.youtubeService = youtubeService;
     this.mapper         = mapper;
 }
 public MainViewModel(IYoutubeService service)
 {
     _service = service;
 }
Exemple #20
0
 public BlogController(IBlogService blogService, IYoutubeService youtubeService)
 {
     this.blogService    = blogService;
     this.youtubeService = youtubeService;
 }
Exemple #21
0
 public YoutubeController(IYoutubeService service)
 {
     this.service = service;
 }
 public YoutubeApplication(IYoutubeService youtubeService, IYoutubeApiService youtubeApiService)
 {
     this.youtubeService    = youtubeService;
     this.youtubeApiService = youtubeApiService;
 }
Exemple #23
0
 public AuthController(IYoutubeService ytService)
 {
     this.ytService = ytService;
 }
Exemple #24
0
 public MovieService(IImdbService imdbService, IYoutubeService youtubeService)
 {
     this.imdbService    = imdbService;
     this.youtubeService = youtubeService;
 }
Exemple #25
0
 public YoutubeController(IYoutubeService youtubeService,
                          INotifier notifier) : base(notifier)
 {
     _youtubeService = youtubeService;
 }
Exemple #26
0
 public YoutubeController(IYoutubeService youtubeService)
 {
     _youtubeService = youtubeService;
 }
Exemple #27
0
 public SearchController(IYoutubeService service)
 {
     _service = service;
 }
Exemple #28
0
 public IndexModel(ILogger <IndexModel> logger, IYoutubeService youtubeService, IMemoryCache cache)
 {
     _logger         = logger;
     _youtubeService = youtubeService;
     _cache          = cache;
 }
 public VideosController(IYoutubeService youtubeService)
 {
     this._youtubeService = youtubeService;
 }
 /// <summary>Construct a new instance of this object.</summary>
 public VoicechatModule(IYoutubeService youtubeService, ILogger <VoicechatModule> logger)
 {
     _youtubeService = youtubeService;
     _logger         = logger;
 }