コード例 #1
0
        public VideoExtractorAndCommenter(IAdapter adapter, IVideoCommenter videoCommenter, long threshold)
        {
            Adapter = adapter;

            this.videoCommenter = videoCommenter;
            this.threshold      = threshold;
            searchStringPhrases.Add(adapter.getSearchString());
            threadCount++;
            threadNumber = threadCount;
        }
コード例 #2
0
        public VideoExtractorAndCommenter(IAdapter adapter, IVideoCommenter videoCommenter, IList <string> searchPhrases,
                                          long threshold)
        {
            Adapter = adapter;

            this.videoCommenter = videoCommenter;
            this.threshold      = threshold;
            foreach (var phrase in searchPhrases)
            {
                searchStringPhrases.Add(phrase);
            }
            threadCount++;
            threadNumber = threadCount;
        }