コード例 #1
0
ファイル: JobQueue.cs プロジェクト: strohitv/stfu-save
 public void Fill(IYoutubeCategoryContainer catContainer, IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer)
 {
     categoryContainer = catContainer;
     languageContainer = langContainer;
     playlistContainer = plContainer;
     this.pscContainer = pscContainer;
 }
コード例 #2
0
        public LanguagePersistor(IYoutubeLanguageContainer container, string path)
        {
            LOGGER.Debug($"Creating language persistor for path '{path}'");

            Path      = path;
            Container = container;
        }
コード例 #3
0
ファイル: AddVideosForm.cs プロジェクト: strohitv/stfu-save
        public AddVideosForm(ITemplate[] templates, IPath[] pathInfos, IYoutubeCategoryContainer categoryContainer, IYoutubeLanguageContainer languageContainer, IYoutubePlaylistContainer playlistContainer, IPlaylistServiceConnectionContainer pscContainer, IYoutubeAccount account)
        {
            InitializeComponent();
            editVideoInformationGrid.IsNewUpload = true;

            DialogResult = DialogResult.Cancel;

            CategoryContainer = categoryContainer;
            LanguageContainer = languageContainer;
            PlaylistContainer = playlistContainer;
            PscContainer      = pscContainer;
            Account           = account;
            Templates         = templates;
            PathInfos         = pathInfos;
        }
コード例 #4
0
        private void RecreateSaved()
        {
            LOGGER.Debug($"Recreating cache of saved languages");
            Saved = new YoutubeLanguageContainer();
            foreach (var language in Container.RegisteredLanguages)
            {
                LOGGER.Debug($"Recreating cache for language '{language.Name}'");
                var newLanguage = new YoutubeLanguage()
                {
                    Hl   = language.Hl,
                    Id   = language.Id,
                    Name = language.Name
                };

                Saved.RegisterLanguage(newLanguage);
            }
        }
コード例 #5
0
        public void Fill(IYoutubeVideo video, INotificationSettings notificationSettings, bool hasMailPrivilegue, IYoutubeCategoryContainer catContainer,
                         IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer)
        {
            categoryContainer = catContainer;
            RefreshCategories();

            languageContainer = langContainer;
            RefreshLanguages();

            playlistContainer = plContainer;
            RefreshPlaylists();

            HasMailPrivilegue    = hasMailPrivilegue;
            Video                = video;
            NotificationSettings = notificationSettings;

            PscContainer = pscContainer;
        }
コード例 #6
0
        public EditVideoForm(IYoutubeVideo video, INotificationSettings notificationSettings, bool hasMailPrivilegue, IYoutubeCategoryContainer catContainer, IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer)
            : this()
        {
            Video = video;
            NotificationSettings = notificationSettings;

            uploadGrid.IsNewUpload = false;
            uploadGrid.Fill(video, notificationSettings, hasMailPrivilegue, catContainer, langContainer, plContainer, pscContainer);
        }