Ejemplo n.º 1
0
        public static StackHashFileCollection GetFilesApi(ref Login login, Product product)
        {
            ApplicationFileCollection apiFiles = product.GetApplicationFiles(ref login);

            StackHashFileCollection apiStackHashFiles = new StackHashFileCollection();

            foreach (ApplicationFile file in apiFiles)
            {
                StackHashFile stackHashFile = ObjectConversion.ConvertFile(file);
                apiStackHashFiles.Add(stackHashFile);
            }
            return(apiStackHashFiles);
        }
Ejemplo n.º 2
0
        public static StackHashFileCollection GetFilesAtom(AtomFeed feed, AtomProduct product)
        {
            // Get the list of files.
            AtomFileCollection atomFiles = feed.GetFiles(product);

            // Convert to a StackHashFileCollection.
            StackHashFileCollection atomStackHashFiles = new StackHashFileCollection();

            foreach (AtomFile atomFile in atomFiles)
            {
                atomStackHashFiles.Add(atomFile.File);
            }

            return(atomStackHashFiles);
        }