コード例 #1
0
        public VirtualFolderContents(string contents)
        {
            var parsed = new AttributedContents(contents);
            ImagePath = parsed.GetSingleAttribute(Image);

            var foundFolders = parsed.GetMultiAttribute(Folder);
            if (foundFolders != null) {
                this.folders.AddRange(foundFolders);
            }
        }
コード例 #2
0
        public VirtualFolderContents(string contents)
        {
            var parsed = new AttributedContents(contents);

            ImagePath = parsed.GetSingleAttribute(Image);

            var foundFolders = parsed.GetMultiAttribute(Folder);

            if (foundFolders != null)
            {
                this.folders.AddRange(foundFolders);
            }
        }
コード例 #3
0
        public VodcastContents(string contents) {
            AttributedContents data = new AttributedContents(contents);
            Url = data.GetSingleAttribute(VODCAST_URL);

            int filesToRetain;
            int.TryParse(data.GetSingleAttribute(FILES_TO_RETAIN), out filesToRetain);
            FilesToRetain = filesToRetain;

            try {
                DownloadPolicy = (DownloadPolicy)Enum.Parse(typeof(DownloadPolicy), data.GetSingleAttribute(DOWNLOAD_POLICY));
            } catch {
                DownloadPolicy = DownloadPolicy.Stream;
            }
        }
コード例 #4
0
        public VodcastContents(string contents)
        {
            AttributedContents data = new AttributedContents(contents);

            Url = data.GetSingleAttribute(VODCAST_URL);

            int filesToRetain;

            int.TryParse(data.GetSingleAttribute(FILES_TO_RETAIN), out filesToRetain);
            FilesToRetain = filesToRetain;

            try {
                DownloadPolicy = (DownloadPolicy)Enum.Parse(typeof(DownloadPolicy), data.GetSingleAttribute(DOWNLOAD_POLICY));
            } catch {
                DownloadPolicy = DownloadPolicy.Stream;
            }
        }