public YouTubeLiveSiteContext(ICommentOptions options, IYouTubeLibeServer server, ILogger logger, IUserStoreManager userStoreManager)
     : base(options, userStoreManager, logger)
 {
     _options = options;
     _server  = server;
     _logger  = logger;
 }
 public MessageProvider(IDataServer server, ITwicasSiteOptions siteOptions, CookieContainer cc, IUserStoreManager userStoreManager, ICommentOptions options, ICommentProvider cp, ILogger logger)
 {
     _server           = server;
     _siteOptions      = siteOptions;
     _cc               = cc;
     _userStoreManager = userStoreManager;
     _options          = options;
     _cp               = cp;
     _logger           = logger;
 }
 public TestCommentProvider(ICommentOptions options, INicoSiteOptions siteOptions, IDataSource server, ILogger logger, IUserStoreManager userStoreManager) : base(logger, options)
 {
     _logger                 = logger;
     _userStoreManager       = userStoreManager;
     _siteOptions            = siteOptions;
     _server                 = server;
     _metaProvider           = new Metadata.MetaProvider();
     _metaProvider.Received += MetaProvider_Received;
     _chatProvider           = new Chat.ChatProvider(_logger);
     _chatProvider.Received += ChatProvider_Received;
 }
        public TwitchCommentProvider(IDataServer server, ILogger logger, ICommentOptions options, TwitchSiteOptions siteOptions, IUserStoreManager userStoreManager)
        {
            _server           = server;
            _logger           = logger;
            _options          = options;
            _siteOptions      = siteOptions;
            _userStoreManager = userStoreManager;

            CanConnect    = true;
            CanDisconnect = false;

            _elapsedTimer          = new System.Timers.Timer();
            _elapsedTimer.Interval = 500;
            _elapsedTimer.Elapsed += ElapsedTimer_Elapsed;
        }
 public CommentProviderInternalBase(ICommentOptions options, INicoSiteOptions siteOptions, IUserStoreManager userStoreManager, IDataSource dataSource, ILogger logger)
 {
     _options          = options;
     _siteOptions      = siteOptions;
     _userStoreManager = userStoreManager;
     _dataSource       = dataSource;
     _logger           = logger;
 }
        public TwicasCommentProvider(IDataServer server, ILogger logger, ICommentOptions options, TwicasSiteOptions siteOptions, IUserStoreManager userStoreManager)
        {
            _server           = server;
            _logger           = logger;
            _options          = options;
            _siteOptions      = siteOptions;
            _userStoreManager = userStoreManager;

            CanConnect    = true;
            CanDisconnect = false;
        }
Beispiel #7
0
        public CommentProvider(ICommentOptions options, OpenrecSiteOptions siteOptions, ILogger logger, IUserStoreManager userStoreManager)
        {
            _options              = options;
            _siteOptions          = siteOptions;
            _logger               = logger;
            _userStoreManager     = userStoreManager;
            _dataSource           = new DataSource();
            _500msTimer.Interval  = 500;
            _500msTimer.Elapsed  += _500msTimer_Elapsed;
            _500msTimer.AutoReset = true;

            CanConnect    = true;
            CanDisconnect = false;
        }
Beispiel #8
0
        //private readonly IUserStore _userStore;

        public NicoSiteContext(ICommentOptions options, IDataSource server, Func <string, int, int, ISplitBuffer, IStreamSocket> StreamSocketFactory, ILogger logger, IUserStoreManager userStoreManager)
        {
            _options             = options;
            _server              = server;
            _streamSocketFactory = StreamSocketFactory;
            _logger              = logger;
            _userStoreManager    = userStoreManager;
            //_userStore = CreateUserStore();
            userStoreManager.SetUserStore(SiteType.NicoLive, new SQLiteUserStore(_options.SettingsDirPath + "\\" + "users_" + DisplayName + ".db", _logger));
        }
Beispiel #9
0
 public MildomSiteContext(ICommentOptions options, IDataServer server, ILogger logger, IUserStoreManager userStoreManager)
     : base(options, userStoreManager, logger)
 {
     _options = options;
     _server  = server;
     _logger  = logger;
 }
        public NewLiveInternalProvider(ICommentOptions options, INicoSiteOptions siteOptions, IUserStoreManager userStoreManager, ILogger logger, IDataSource server)
            : base(options, siteOptions, userStoreManager, server, logger)
        {
            _server       = server;
            _metaProvider = new MetaProvider();
            _metaProvider.MessageReceived += MetaProvider_MessageReceived;

            _messageProvider = new MessageProvider();
            _messageProvider.ChatReceived   += MessageProvider_ChatReceived;
            _messageProvider.ThreadReceived += MessageProvider_ThreadReceived;
        }
Beispiel #11
0
        public IEnumerable <(string displayName, Guid guid)> LoadSitePlugins(ICommentOptions options, ILogger logger, IUserStoreManager userStoreManager, string userAgent)
        {
            var list = new List <ISiteContext>
            {
                new YouTubeLiveSitePlugin.Test2.YouTubeLiveSiteContext(options, new YouTubeLiveSitePlugin.Test2.YouTubeLiveServer(), logger, userStoreManager),
                new OpenrecSitePlugin.OpenrecSiteContext(options, logger, userStoreManager),
                new MixchSitePlugin.MixchSiteContext(options, logger, userStoreManager),
                new TwitchSitePlugin.TwitchSiteContext(options, new TwitchSitePlugin.TwitchServer(), logger, userStoreManager),
                new NicoSitePlugin.NicoSiteContext(options, new NicoSitePlugin.DataSource(userAgent), logger, userStoreManager),
                new TwicasSitePlugin.TwicasSiteContext(options, logger, userStoreManager),
                new LineLiveSitePlugin.LineLiveSiteContext(options, new LineLiveSitePlugin.LineLiveServer(), logger, userStoreManager),
                new WhowatchSitePlugin.WhowatchSiteContext(options, logger, userStoreManager),
                new MirrativSitePlugin.MirrativSiteContext(options, new MirrativSitePlugin.MirrativServer(), logger, userStoreManager),
                new PeriscopeSitePlugin.PeriscopeSiteContext(options, new PeriscopeSitePlugin.PeriscopeServer(), logger, userStoreManager),
                new ShowRoomSitePlugin.ShowRoomSiteContext(options, new ShowRoomSitePlugin.ShowRoomServer(), logger, userStoreManager),
                new MildomSitePlugin.MildomSiteContext(options, new MildomSitePlugin.MildomServer(), logger, userStoreManager),
                new BigoSitePlugin.BigoSiteContext(options, new BigoSitePlugin.BigoServer(), logger, userStoreManager),
#if DEBUG
                new TestSitePlugin.TestSiteContext(options),
#endif
            };

            foreach (var site in list)
            {
                site.Init();
                _dict.Add(site.Guid, site);
            }
            return(_dict.Select(kv => (kv.Value.DisplayName, kv.Key)));
        }
Beispiel #12
0
        public CommentProvider(ICommentOptions options, IBigoServer server, BigoSiteOptions siteOptions, ILogger logger, IUserStoreManager userStoreManager)
        {
            _options          = options;
            _siteOptions      = siteOptions;
            _logger           = logger;
            _userStoreManager = userStoreManager;
            _server           = server;

            CanConnect    = true;
            CanDisconnect = false;
        }
Beispiel #13
0
 //protected override ICommentData ParsePrivMsg(Result result)
 //{
 //    return CommentData;
 //}
 public C(IDataServer server, ILogger logger, ICommentOptions options, TwitchSiteOptions siteOptions, IUserStoreManager userStoreManager)
     : base(server, logger, options, siteOptions, userStoreManager)
 {
 }
Beispiel #14
0
 public PeriscopeCommentProvider(IDataServer server, ILogger logger, ICommentOptions options, PeriscopeSiteOptions siteOptions, IUserStoreManager userStoreManager)
     : base(logger, options)
 {
     _server           = server;
     _logger           = logger;
     _options          = options;
     _siteOptions      = siteOptions;
     _userStoreManager = userStoreManager;
 }