示例#1
0
 public ChannelVideoService(
     IConnectionFactory connectionFactory,
     IYoutubeService youtubeService)
 {
     _connectionFactory = connectionFactory;
     _youtubeService    = youtubeService;
 }
示例#2
0
 public YoutubeCommands(IAudioService audioService, IYoutubeService youtubeService, IVideoToAudioConverter videoToAudioConverter)
 {
     _audioService          = audioService;
     _youtubeService        = youtubeService;
     _videoToAudioConverter = videoToAudioConverter;
     _tokenSource           = new CancellationTokenSource();
 }
示例#3
0
 public DeltaAudio(IAudioService audioService, IDECTalkService dECTalkService, IDataService dataService, IYoutubeService YTServ)
 {
     _audserv  = audioService;
     _DECserv  = dECTalkService;
     _dataserv = dataService;
     _ytserv   = YTServ;
 }
示例#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();
 }
示例#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));
        }
示例#6
0
        public YoutubeController(IYoutubeService service)
        {
            Service = service;

            if (Service.Count() == 0)
            {
                Task.Run(async() => await Service.LoadChannel("UC4V3oCikXeSqYQr0hBMARwg"));
            }
        }
示例#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
        }
示例#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;
 }
示例#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();
        }
示例#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;
 }
示例#13
0
 public UpdateJob(IYoutubeService ytService, IRulesRepository rulesRepository)
 {
     this.ytService       = ytService;
     this.rulesRepository = rulesRepository;
 }
示例#14
0
 public AggregationService(IYoutubeService youtubeService, IOmdbService omdbService, IGuideboxService guideboxService)
 {
     _youtubeService  = youtubeService;
     _omdbService     = omdbService;
     _guideboxService = guideboxService;
 }
 public PlaylistsController(IYoutubeService youtubeService)
 {
     this._youtubeService = youtubeService;
 }
示例#16
0
 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;
 }
示例#18
0
 public YoutubeController(IYoutubeService youtubeService, IMapper mapper)
 {
     this.youtubeService = youtubeService;
     this.mapper         = mapper;
 }
 public MainViewModel(IYoutubeService service)
 {
     _service = service;
 }
示例#20
0
 public BlogController(IBlogService blogService, IYoutubeService youtubeService)
 {
     this.blogService    = blogService;
     this.youtubeService = youtubeService;
 }
示例#21
0
 public YoutubeController(IYoutubeService service)
 {
     this.service = service;
 }
示例#22
0
 public YoutubeApplication(IYoutubeService youtubeService, IYoutubeApiService youtubeApiService)
 {
     this.youtubeService    = youtubeService;
     this.youtubeApiService = youtubeApiService;
 }
示例#23
0
 public AuthController(IYoutubeService ytService)
 {
     this.ytService = ytService;
 }
示例#24
0
 public MovieService(IImdbService imdbService, IYoutubeService youtubeService)
 {
     this.imdbService    = imdbService;
     this.youtubeService = youtubeService;
 }
示例#25
0
 public YoutubeController(IYoutubeService youtubeService,
                          INotifier notifier) : base(notifier)
 {
     _youtubeService = youtubeService;
 }
示例#26
0
 public YoutubeController(IYoutubeService youtubeService)
 {
     _youtubeService = youtubeService;
 }
示例#27
0
 public SearchController(IYoutubeService service)
 {
     _service = service;
 }
示例#28
0
 public IndexModel(ILogger <IndexModel> logger, IYoutubeService youtubeService, IMemoryCache cache)
 {
     _logger         = logger;
     _youtubeService = youtubeService;
     _cache          = cache;
 }
示例#29
0
 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;
 }