Пример #1
0
 /// <summary>
 /// construct a new feed element
 /// </summary>
 public FeedInfo(IControlFileGlobalDefaults controlFileGlobalDefaults)
 {
     _controlFileGlobalDefaults = controlFileGlobalDefaults;
     Format                 = new DefaultableValueTypeItem <PodcastFeedFormat>(_controlFileGlobalDefaults.GetDefaultFeedFormat);
     MaximumDaysOld         = new DefaultableValueTypeItem <int>(_controlFileGlobalDefaults.GetDefaultMaximumDaysOld);
     NamingStyle            = new DefaultableValueTypeItem <PodcastEpisodeNamingStyle>(_controlFileGlobalDefaults.GetDefaultNamingStyle);
     DownloadStrategy       = new DefaultableValueTypeItem <PodcastEpisodeDownloadStrategy>(_controlFileGlobalDefaults.GetDefaultDownloadStrategy);
     DeleteDownloadsDaysOld = new DefaultableValueTypeItem <int>(_controlFileGlobalDefaults.GetDefaultDeleteDownloadsDaysOld);
 }
Пример #2
0
 ///<summary>
 /// Podcast ctor
 ///</summary>
 public PodcastInfo(IControlFileGlobalDefaults controlFileGlobalDefaults)
 {
     _controlFileGlobalDefaults = controlFileGlobalDefaults;
     Pattern              = new DefaultableReferenceTypeItem <string>(_controlFileGlobalDefaults.GetDefaultFilePattern);
     DeleteEmptyFolder    = new DefaultableValueTypeItem <bool>(_controlFileGlobalDefaults.GetDefaultDeleteEmptyFolder);
     AscendingSort        = new DefaultableValueTypeItem <bool>(_controlFileGlobalDefaults.GetDefaultAscendingSort);
     SortField            = new DefaultableValueTypeItem <PodcastFileSortField>(_controlFileGlobalDefaults.GetDefaultSortField);
     MaximumNumberOfFiles = new DefaultableValueTypeItem <int>(_controlFileGlobalDefaults.GetDefaultNumberOfFiles);
 }