コード例 #1
0
ファイル: ZipMetaProvider.cs プロジェクト: tsingui/CHIMP
        protected IEnumerable <T> GetItems(string path, string productName)
        {
            var categoryName = ProductProvider.GetCategoryName(productName);
            var bootFileName = BootProvider.GetFileName(categoryName);

            using (var stream = File.OpenRead(path))
            {
                var fileName = Path.GetFileName(path);
                return(GetItems(stream, fileName, productName, bootFileName));
            }
        }
コード例 #2
0
        public virtual TCamera GetCamera(uint modelId, string platform, ListPlatformData list, TreePlatformData tree, string productName)
        {
            var categoryName = ProductProvider.GetCategoryName(productName);

            return(new TCamera
            {
                Models = new TModel[0],
                Encoding = GetEncoding(platform, tree.Encoding, categoryName),
                Boot = GetBoot(modelId, productName),
                Card = GetCard(modelId, tree.Card, productName),
            });
        }